]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add missing IPv6 address definitions.
authorlpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 14 Jun 2012 18:16:01 +0000 (18:16 +0000)
committerlpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 14 Jun 2012 18:16:01 +0000 (18:16 +0000)
Signed-off-by: lpleahy
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13455 6f19259b-4bc3-4df7-8a09-765794883524

StdLib/BsdSocketLib/BsdSocketLib.inf
StdLib/BsdSocketLib/Ip6Addr_Any.c [new file with mode: 0644]
StdLib/BsdSocketLib/Ip6Addr_LinkLocal_AllNodes.c [new file with mode: 0644]
StdLib/BsdSocketLib/Ip6Addr_LinkLocal_AllRouters.c [new file with mode: 0644]
StdLib/BsdSocketLib/Ip6Addr_Loopback.c [new file with mode: 0644]
StdLib/BsdSocketLib/Ip6Addr_NodeLocal_AllNodes.c [new file with mode: 0644]

index d095e5337d5424e4ed865b20b1c343f189f93151..df699b19db887cbf6c5857799f5e9e1926bcfad0 100644 (file)
   inet_net_pton.c\r
   inet_neta.c\r
   inet_pton.c\r
+  Ip6Addr_Any.c\r
+  Ip6Addr_Loopback.c\r
+  Ip6Addr_NodeLocal_AllNodes.c\r
+  Ip6Addr_LinkLocal_AllNodes.c\r
+  Ip6Addr_LinkLocal_AllRouters.c\r
   listen.c\r
   map_v4v6.c\r
   ns_addr.c\r
diff --git a/StdLib/BsdSocketLib/Ip6Addr_Any.c b/StdLib/BsdSocketLib/Ip6Addr_Any.c
new file mode 100644 (file)
index 0000000..b1bbe26
--- /dev/null
@@ -0,0 +1,18 @@
+/** @file\r
+  IP6 address: any\r
+\r
+  Copyright (c) 2011, Intel Corporation\r
+  All rights reserved. This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#include <netinet/in.h>\r
+\r
+const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT;\r
+\r
diff --git a/StdLib/BsdSocketLib/Ip6Addr_LinkLocal_AllNodes.c b/StdLib/BsdSocketLib/Ip6Addr_LinkLocal_AllNodes.c
new file mode 100644 (file)
index 0000000..358055d
--- /dev/null
@@ -0,0 +1,18 @@
+/** @file\r
+  IP6 address: link local, all nodes\r
+\r
+  Copyright (c) 2011, Intel Corporation\r
+  All rights reserved. This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#include <netinet/in.h>\r
+\r
+const struct in6_addr in6addr_linklocal_allnodes = IN6ADDR_LINKLOCAL_ALLNODES_INIT;\r
+\r
diff --git a/StdLib/BsdSocketLib/Ip6Addr_LinkLocal_AllRouters.c b/StdLib/BsdSocketLib/Ip6Addr_LinkLocal_AllRouters.c
new file mode 100644 (file)
index 0000000..ca8b847
--- /dev/null
@@ -0,0 +1,18 @@
+/** @file\r
+  IP6 address: link local, all routers\r
+\r
+  Copyright (c) 2011, Intel Corporation\r
+  All rights reserved. This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#include <netinet/in.h>\r
+\r
+const struct in6_addr in6addr_linklocal_allrouters = IN6ADDR_LINKLOCAL_ALLROUTERS_INIT;\r
+\r
diff --git a/StdLib/BsdSocketLib/Ip6Addr_Loopback.c b/StdLib/BsdSocketLib/Ip6Addr_Loopback.c
new file mode 100644 (file)
index 0000000..cc073f2
--- /dev/null
@@ -0,0 +1,18 @@
+/** @file\r
+  IP6 address: loopback\r
+\r
+  Copyright (c) 2011, Intel Corporation\r
+  All rights reserved. This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#include <netinet/in.h>\r
+\r
+const struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT;\r
+\r
diff --git a/StdLib/BsdSocketLib/Ip6Addr_NodeLocal_AllNodes.c b/StdLib/BsdSocketLib/Ip6Addr_NodeLocal_AllNodes.c
new file mode 100644 (file)
index 0000000..b597e11
--- /dev/null
@@ -0,0 +1,18 @@
+/** @file\r
+  IP6 address: node local, all nodes\r
+\r
+  Copyright (c) 2011, Intel Corporation\r
+  All rights reserved. This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#include <netinet/in.h>\r
+\r
+const struct in6_addr in6addr_nodelocal_allnodes = IN6ADDR_NODELOCAL_ALLNODES_INIT;\r
+\r