public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/5479] New: gethostbyname() fails on IPv6 numeric addresses
@ 2007-12-12 17:24 aurelien at aurel32 dot net
2007-12-15 9:36 ` [Bug libc/5479] " ismail at pardus dot org dot tr
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: aurelien at aurel32 dot net @ 2007-12-12 17:24 UTC (permalink / raw)
To: glibc-bugs
gethostbyname() is able to do IPv6 resolutions (eg. ip6-localhost), and is
working on IPv4 numeric addresses by returning the address unchanged.
However, it doesn't work on IPv6 numeric addresses. In that cases, it returns a
NULL pointer, while I think it should return the IPv6 numeric address
unchanged.
--
Summary: gethostbyname() fails on IPv6 numeric addresses
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: aurelien at aurel32 dot net
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/5479] gethostbyname() fails on IPv6 numeric addresses
2007-12-12 17:24 [Bug libc/5479] New: gethostbyname() fails on IPv6 numeric addresses aurelien at aurel32 dot net
@ 2007-12-15 9:36 ` ismail at pardus dot org dot tr
2008-04-07 18:19 ` drepper at redhat dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: ismail at pardus dot org dot tr @ 2007-12-15 9:36 UTC (permalink / raw)
To: glibc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |ismail at pardus dot org dot
| |tr
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/5479] gethostbyname() fails on IPv6 numeric addresses
2007-12-12 17:24 [Bug libc/5479] New: gethostbyname() fails on IPv6 numeric addresses aurelien at aurel32 dot net
2007-12-15 9:36 ` [Bug libc/5479] " ismail at pardus dot org dot tr
@ 2008-04-07 18:19 ` drepper at redhat dot com
2008-04-07 18:41 ` aurelien at aurel32 dot net
2008-04-07 19:08 ` drepper at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: drepper at redhat dot com @ 2008-04-07 18:19 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2008-04-07 18:19 -------
What exactly doesn't work? The only thing I see not being done is handling
IPv6-mapped-IPv4 addresses for AF_INET queries. That's hardly worth the
complications, people have to jump through hoops to create such strings.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/5479] gethostbyname() fails on IPv6 numeric addresses
2007-12-12 17:24 [Bug libc/5479] New: gethostbyname() fails on IPv6 numeric addresses aurelien at aurel32 dot net
2007-12-15 9:36 ` [Bug libc/5479] " ismail at pardus dot org dot tr
2008-04-07 18:19 ` drepper at redhat dot com
@ 2008-04-07 18:41 ` aurelien at aurel32 dot net
2008-04-07 19:08 ` drepper at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: aurelien at aurel32 dot net @ 2008-04-07 18:41 UTC (permalink / raw)
To: glibc-bugs
------- 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/5479] gethostbyname() fails on IPv6 numeric addresses
2007-12-12 17:24 [Bug libc/5479] New: gethostbyname() fails on IPv6 numeric addresses aurelien at aurel32 dot net
` (2 preceding siblings ...)
2008-04-07 18:41 ` aurelien at aurel32 dot net
@ 2008-04-07 19:08 ` drepper at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: drepper at redhat dot com @ 2008-04-07 19:08 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2008-04-07 19:07 -------
(In reply to comment #2)
> Please consider the following testcase:
> [...]
That's not worth the extra complexity. This never worked, people hardly ever
use mapped addresses, and gethostby* should not *EVER* be used in the first
place. Anything to get people away from gethostby* is a good thing.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-04-07 19:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-12 17:24 [Bug libc/5479] New: gethostbyname() fails on IPv6 numeric addresses aurelien at aurel32 dot net
2007-12-15 9:36 ` [Bug libc/5479] " ismail at pardus dot org dot tr
2008-04-07 18:19 ` drepper at redhat dot com
2008-04-07 18:41 ` aurelien at aurel32 dot net
2008-04-07 19:08 ` drepper at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).