From: lpleahy Date: Thu, 14 Jun 2012 18:16:01 +0000 (+0000) Subject: Add missing IPv6 address definitions. X-Git-Tag: edk2-stable201903~13323 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=3e37da2f9df1e3fcd45f5fc38036a9afe942ec4f Add missing IPv6 address definitions. Signed-off-by: lpleahy git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13455 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/StdLib/BsdSocketLib/BsdSocketLib.inf b/StdLib/BsdSocketLib/BsdSocketLib.inf index d095e5337d..df699b19db 100644 --- a/StdLib/BsdSocketLib/BsdSocketLib.inf +++ b/StdLib/BsdSocketLib/BsdSocketLib.inf @@ -57,6 +57,11 @@ inet_net_pton.c inet_neta.c inet_pton.c + Ip6Addr_Any.c + Ip6Addr_Loopback.c + Ip6Addr_NodeLocal_AllNodes.c + Ip6Addr_LinkLocal_AllNodes.c + Ip6Addr_LinkLocal_AllRouters.c listen.c map_v4v6.c ns_addr.c diff --git a/StdLib/BsdSocketLib/Ip6Addr_Any.c b/StdLib/BsdSocketLib/Ip6Addr_Any.c new file mode 100644 index 0000000000..b1bbe26100 --- /dev/null +++ b/StdLib/BsdSocketLib/Ip6Addr_Any.c @@ -0,0 +1,18 @@ +/** @file + IP6 address: any + + Copyright (c) 2011, Intel Corporation + All rights reserved. This program and the accompanying materials + are licensed and made available under the terms and conditions of the BSD License + which accompanies this distribution. The full text of the license may be found at + http://opensource.org/licenses/bsd-license. + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +#include + +const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT; + diff --git a/StdLib/BsdSocketLib/Ip6Addr_LinkLocal_AllNodes.c b/StdLib/BsdSocketLib/Ip6Addr_LinkLocal_AllNodes.c new file mode 100644 index 0000000000..358055de4d --- /dev/null +++ b/StdLib/BsdSocketLib/Ip6Addr_LinkLocal_AllNodes.c @@ -0,0 +1,18 @@ +/** @file + IP6 address: link local, all nodes + + Copyright (c) 2011, Intel Corporation + All rights reserved. This program and the accompanying materials + are licensed and made available under the terms and conditions of the BSD License + which accompanies this distribution. The full text of the license may be found at + http://opensource.org/licenses/bsd-license. + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +#include + +const struct in6_addr in6addr_linklocal_allnodes = IN6ADDR_LINKLOCAL_ALLNODES_INIT; + diff --git a/StdLib/BsdSocketLib/Ip6Addr_LinkLocal_AllRouters.c b/StdLib/BsdSocketLib/Ip6Addr_LinkLocal_AllRouters.c new file mode 100644 index 0000000000..ca8b847ee7 --- /dev/null +++ b/StdLib/BsdSocketLib/Ip6Addr_LinkLocal_AllRouters.c @@ -0,0 +1,18 @@ +/** @file + IP6 address: link local, all routers + + Copyright (c) 2011, Intel Corporation + All rights reserved. This program and the accompanying materials + are licensed and made available under the terms and conditions of the BSD License + which accompanies this distribution. The full text of the license may be found at + http://opensource.org/licenses/bsd-license. + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +#include + +const struct in6_addr in6addr_linklocal_allrouters = IN6ADDR_LINKLOCAL_ALLROUTERS_INIT; + diff --git a/StdLib/BsdSocketLib/Ip6Addr_Loopback.c b/StdLib/BsdSocketLib/Ip6Addr_Loopback.c new file mode 100644 index 0000000000..cc073f2e63 --- /dev/null +++ b/StdLib/BsdSocketLib/Ip6Addr_Loopback.c @@ -0,0 +1,18 @@ +/** @file + IP6 address: loopback + + Copyright (c) 2011, Intel Corporation + All rights reserved. This program and the accompanying materials + are licensed and made available under the terms and conditions of the BSD License + which accompanies this distribution. The full text of the license may be found at + http://opensource.org/licenses/bsd-license. + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +#include + +const struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT; + diff --git a/StdLib/BsdSocketLib/Ip6Addr_NodeLocal_AllNodes.c b/StdLib/BsdSocketLib/Ip6Addr_NodeLocal_AllNodes.c new file mode 100644 index 0000000000..b597e11f3c --- /dev/null +++ b/StdLib/BsdSocketLib/Ip6Addr_NodeLocal_AllNodes.c @@ -0,0 +1,18 @@ +/** @file + IP6 address: node local, all nodes + + Copyright (c) 2011, Intel Corporation + All rights reserved. This program and the accompanying materials + are licensed and made available under the terms and conditions of the BSD License + which accompanies this distribution. The full text of the license may be found at + http://opensource.org/licenses/bsd-license. + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +#include + +const struct in6_addr in6addr_nodelocal_allnodes = IN6ADDR_NODELOCAL_ALLNODES_INIT; +