* posix/gai.conf: Fix comment for scope nullbits.

* sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
	default to 128 bits for v4 mapped addresses.
This commit is contained in:
Ulrich Drepper 2008-03-26 17:45:14 +00:00
parent c28175ecce
commit fde15fdc5b
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2008-03-25 Jakub Jelinek <jakub@redhat.com>
* posix/gai.conf: Fix comment for scope nullbits.
* sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
default to 128 bits for v4 mapped addresses.
2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
* sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER

View File

@ -1775,6 +1775,7 @@ gaiconf_init (void)
*cp++ = '\0';
if (inet_pton (AF_INET6, val1, &prefix))
{
bits = 128;
if (IN6_IS_ADDR_V4MAPPED (&prefix)
&& (cp == NULL
|| (bits = strtoul (cp, &endp, 10)) != ULONG_MAX