This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug network/14967] getaddrinfo(NULL) with AI_PASSIVE returns 0.0.0.0 and :: (in this order)


http://sourceware.org/bugzilla/show_bug.cgi?id=14967

--- Comment #10 from Pavel Åimerda <psimerda at redhat dot com> 2013-02-26 08:27:48 UTC ---
(In reply to comment #9)
> Well, I can oppose that validating source address with connect() for addresses
> 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 not, 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 V6ONLY
for IPv6. But something should be done to resolve it.

> Sorry, preparing patch takes longer than I expected, will try to finish till
> that evening.

Don't worry, we're not in hurry for this one (at least that's what I think).

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]