]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Assign global scope to RFC 1918 addresses
authorUlrich Drepper <drepper@redhat.com>
Tue, 6 Apr 2010 10:27:58 +0000 (12:27 +0200)
committerAndreas Schwab <schwab@redhat.com>
Tue, 6 Apr 2010 11:42:00 +0000 (13:42 +0200)
ChangeLog
posix/gai.conf
sysdeps/posix/getaddrinfo.c

index db3026f0f3dd5c4886ea0e0c0eb74bf295271dd3..082130d76168bd882c8c9daa4dc93619a548baba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-04-06  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/posix/getaddrinfo.c (default_scopes): Assign global
+       scope to RFC 1918 addresses.
+       * posix/gai.conf: Document difference from RFC 3484.
+
 2010-04-05  Thomas Schwinge  <thomas@schwinge.name>
 
        * sysdeps/gnu/unwind-resume.c: New, moved from nptl/sysdeps/pthread/.
index 195287e1c88f3d104e8876b21b9e3204d5eb7bb2..bd406843005aa4c562e873ef90d6090df0e07043 100644 (file)
@@ -41,7 +41,7 @@
 #
 # precedence  <mask>   <value>
 #    Add another rule to the RFC 3484 precedence table.  See section 2.1
-#    and 10.3 in RFC 3484.  The default is:
+#    and 10.3 in RFC 3484.  The RFC requires:
 #
 #precedence  ::1/128       50
 #precedence  ::/0          40
@@ -58,7 +58,7 @@
 #    Add another rule to the RFC 3484 scope table for IPv4 addresses.
 #    By default the scope IDs described in section 3.2 in RFC 3484 are
 #    used.  Changing these defaults should hardly ever be necessary.
-#    The defaults are equivalent to:
+#    The definitions in RFC 1918 are equivalent to:
 #
 #scopev4 ::ffff:169.254.0.0/112  2
 #scopev4 ::ffff:127.0.0.0/104    2
@@ -75,3 +75,5 @@
 #scopev4 ::ffff:169.254.0.0/112  2
 #scopev4 ::ffff:127.0.0.0/104    2
 #scopev4 ::ffff:0.0.0.0/96       14
+#
+#    This is what the Red Hat setting currently uses.
index 2e0c7248f09e60976fe91dfbe6724564bd0b5c31..3eb59712f68db400fb34a273b49b982c0e55e938 100644 (file)
@@ -1099,10 +1099,12 @@ static const struct scopeentry
     /* Link-local addresses: scope 2.  */
     { { { 169, 254, 0, 0 } }, htonl_c (0xffff0000), 2 },
     { { { 127, 0, 0, 0 } }, htonl_c (0xff000000), 2 },
+#if 0
     /* Site-local addresses: scope 5.  */
     { { { 10, 0, 0, 0 } }, htonl_c (0xff000000), 5 },
     { { { 172, 16, 0, 0 } }, htonl_c (0xfff00000), 5 },
     { { { 192, 168, 0, 0 } }, htonl_c (0xffff0000), 5 },
+#endif
     /* Default: scope 14.  */
     { { { 0, 0, 0, 0 } }, htonl_c (0x00000000), 14 }
   };