summary refs log tree commit diff
path: root/posix/tst-rfc3484.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2012-09-28 10:15:05 -0600
committerJeff Law <law@redhat.com>2012-09-28 10:15:05 -0600
commit115411772b189e9e41a97618816edd66f0a9a620 (patch)
tree9b369d4cf5223eb0b4a855381d0ae37f4964b129 /posix/tst-rfc3484.c
parent8cf6a02e77b49f24640d6c255e6148d941314f06 (diff)
downloadglibc-115411772b189e9e41a97618816edd66f0a9a620.tar.gz
glibc-115411772b189e9e41a97618816edd66f0a9a620.tar.xz
glibc-115411772b189e9e41a97618816edd66f0a9a620.zip
[BZ #11438]
        * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918
        * addresses
        to global scope.
        * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
        addresses are in the same scope as 192.0.2/24.
        * posix/gai.conf: Document new scope table defaults.
Diffstat (limited to 'posix/tst-rfc3484.c')
-rw-r--r--posix/tst-rfc3484.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/posix/tst-rfc3484.c b/posix/tst-rfc3484.c
index 29e1461e11..db3ae1b7bb 100644
--- a/posix/tst-rfc3484.c
+++ b/posix/tst-rfc3484.c
@@ -71,6 +71,9 @@ service_user *__nss_hosts_database attribute_hidden;
 
 struct sockaddr_in addrs[] =
 {
+  { .sin_family = AF_INET, .sin_addr = { h (0x0aa85f19) } },
+  { .sin_family = AF_INET, .sin_addr = { h (0xac105f19) } },
+  { .sin_family = AF_INET, .sin_addr = { h (0xc0000219) } },
   { .sin_family = AF_INET, .sin_addr = { h (0xc0a86d1d) } },
   { .sin_family = AF_INET, .sin_addr = { h (0xc0a85d03) } },
   { .sin_family = AF_INET, .sin_addr = { h (0xc0a82c3d) } },
@@ -86,7 +89,7 @@ static size_t order[naddrs];
 
 static int expected[naddrs] =
   {
-    6, 1, 0, 3, 2, 4, 5
+    9, 4, 3, 6, 5, 7, 8, 2, 0, 1
   };