From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21364 invoked by alias); 26 Feb 2013 08:28:19 -0000 Received: (qmail 20993 invoked by uid 48); 26 Feb 2013 08:27:49 -0000 From: "psimerda at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug network/14967] getaddrinfo(NULL) with AI_PASSIVE returns 0.0.0.0 and :: (in this order) Date: Tue, 26 Feb 2013 08:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: network X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: psimerda at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: 2013-02/txt/msg00148.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=3D14967 --- Comment #10 from Pavel =C5=A0imerda 2013-0= 2-26 08:27:48 UTC --- (In reply to comment #9) > Well, I can oppose that validating source address with connect() for addr= esses > supposed to be used by bind() is an ugly hack :). Who are you opposing, though? I don't know of anybody. > getaddrinfo() cannot know whether you're going to use V6ONLY option or no= t, and with that option both You have a point here. But I guess you should use AF_INET6 if you are going= to do V6ONLY. > returned addresses are valid and bind()-able. >>From another point of view, we might ask the developers to always use V6ON= LY for IPv6. But something should be done to resolve it. > Sorry, preparing patch takes longer than I expected, will try to finish t= ill > that evening. Don't worry, we're not in hurry for this one (at least that's what I think). --=20 Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=3Demail ------- You are receiving this mail because: ------- You are on the CC list for the bug.