diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-11-20 00:41:22 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-11-20 00:41:22 +0000 |
commit | ee72b97189983768c306bcd7a8b5a7bfdfbf8aae (patch) | |
tree | 544ddd351f8f8091d296697c4d403b7a84008e0b /posix/gai.conf | |
parent | f4a797657875d920157b0a2fe087a60b6d7c8e0d (diff) | |
download | glibc-ee72b97189983768c306bcd7a8b5a7bfdfbf8aae.tar.gz glibc-ee72b97189983768c306bcd7a8b5a7bfdfbf8aae.tar.xz glibc-ee72b97189983768c306bcd7a8b5a7bfdfbf8aae.zip |
* sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
(get_scope): For IPv4 scope, use scopes table. (fini): Free scopes table if necessary. (free_scopelist): New function. (scopecmp): New function. (gaiconf_init): Also handle scopev4 entries. * posix/tst-rfc3484.c (do_test): Initialize scopes. * posix/tst-rfc3484-2.c (do_test): Likewise. * posix/gai.conf: Document scopev4 defaults. * posix/Makefile (tests): Add tst-rfc3484-3. * posix/tst-rfc3484-3.c: New file.
Diffstat (limited to 'posix/gai.conf')
-rw-r--r-- | posix/gai.conf | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/posix/gai.conf b/posix/gai.conf index fe5774b026..b4abfc1f90 100644 --- a/posix/gai.conf +++ b/posix/gai.conf @@ -52,3 +52,17 @@ # For sites which prefer IPv4 connections change the last line to # #precedence ::ffff:0:0/96 100 + +# +# scopev4 <mask> <value> +# 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: +# +#scopev4 ::ffff:169.254.0.0/112 2 +#scopev4 ::ffff:127.0.0.0/104 2 +#scopev4 ::ffff:10.0.0.0/104 5 +#scopev4 ::ffff:172.16.0.0/108 5 +#scopev4 ::ffff:192.168.0.0/112 5 +#scopev4 ::ffff:0.0.0.0 14 |