chiark / gitweb /
eglibc (2.11.3-4+deb6u3) squeeze-lts; urgency=medium
[eglibc.git] / debian / patches / any / local-gai-rfc1918-scope-global.patch
1 ---
2  posix/gai.conf              |    3 ---
3  sysdeps/posix/getaddrinfo.c |    4 ----
4  2 files changed, 7 deletions(-)
5
6 --- a/sysdeps/posix/getaddrinfo.c
7 +++ b/sysdeps/posix/getaddrinfo.c
8 @@ -1098,10 +1098,6 @@
9      /* Link-local addresses: scope 2.  */
10      { { { 169, 254, 0, 0 } }, htonl_c (0xffff0000), 2 },
11      { { { 127, 0, 0, 0 } }, htonl_c (0xff000000), 2 },
12 -    /* Site-local addresses: scope 5.  */
13 -    { { { 10, 0, 0, 0 } }, htonl_c (0xff000000), 5 },
14 -    { { { 172, 16, 0, 0 } }, htonl_c (0xfff00000), 5 },
15 -    { { { 192, 168, 0, 0 } }, htonl_c (0xffff0000), 5 },
16      /* Default: scope 14.  */
17      { { { 0, 0, 0, 0 } }, htonl_c (0x00000000), 14 }
18    };
19 --- a/posix/gai.conf
20 +++ b/posix/gai.conf
21 @@ -62,9 +62,6 @@
22  #
23  #scopev4 ::ffff:169.254.0.0/112  2
24  #scopev4 ::ffff:127.0.0.0/104    2
25 -#scopev4 ::ffff:10.0.0.0/104     5
26 -#scopev4 ::ffff:172.16.0.0/108   5
27 -#scopev4 ::ffff:192.168.0.0/112  5
28  #scopev4 ::ffff:0.0.0.0/96       14
29  #
30  #    For sites which use site-local IPv4 addresses behind NAT there is