public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "aurelien at aurel32 dot net" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sources.redhat.com
Subject: [Bug libc/5479] gethostbyname() fails on IPv6 numeric addresses
Date: Mon, 07 Apr 2008 18:41:00 -0000	[thread overview]
Message-ID: <20080407184041.2564.qmail@sourceware.org> (raw)
In-Reply-To: <20071212172414.5479.aurelien@aurel32.net>


------- 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.


  parent reply	other threads:[~2008-04-07 18:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-12 17:24 [Bug libc/5479] New: " 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 [this message]
2008-04-07 19:08 ` drepper at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080407184041.2564.qmail@sourceware.org \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).