This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5479] gethostbyname() fails on IPv6 numeric addresses
- From: "aurelien at aurel32 dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 7 Apr 2008 18:40:41 -0000
- Subject: [Bug libc/5479] gethostbyname() fails on IPv6 numeric addresses
- References: <20071212172414.5479.aurelien@aurel32.net>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From aurelien at aurel32 dot net 2008-04-07 18:40 -------
Please consider the following testcase:
#include <netdb.h>
#include <stdio.h>
int main()
{
if( gethostbyname( "127.0.0.1" ) == NULL )
printf( "error: %d\n", (int)h_errno );
else
printf( "found\n" );
if( gethostbyname( "::1" ) == NULL )
printf( "error: %d\n", (int)h_errno );
else
printf( "found\n" );
}
Numeric IPv4 addresses are left unchanged. That's not the case for IPv6
addresses.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
http://sourceware.org/bugzilla/show_bug.cgi?id=5479
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.