From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4346 invoked by alias); 7 Apr 2008 18:41:26 -0000 Received: (qmail 2565 invoked by uid 48); 7 Apr 2008 18:40:41 -0000 Date: Mon, 07 Apr 2008 18:41:00 -0000 Message-ID: <20080407184041.2564.qmail@sourceware.org> From: "aurelien at aurel32 dot net" To: glibc-bugs@sources.redhat.com In-Reply-To: <20071212172414.5479.aurelien@aurel32.net> References: <20071212172414.5479.aurelien@aurel32.net> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/5479] gethostbyname() fails on IPv6 numeric addresses X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2008-04/txt/msg00033.txt.bz2 ------- Additional Comments From aurelien at aurel32 dot net 2008-04-07 18:40 ------- Please consider the following testcase: #include #include 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.