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/12398] AI_ADDRCONFIG breaks getaddrinfo() calls for loopback names and addresses


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

--- Comment #8 from Tore Anderson <tore at fud dot no> 2012-12-16 13:47:03 UTC ---
Created attachment 6781
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6781
Move AI_ADDRCONFIG into gaih_inet()

Attached patch moves AI_ADDCONFIG processing into gaih_inet(). This improves
things by making it not apply to literal IP addresses. However, AI_ADDCONFIG
will still be able to suppress results from both address families for things
coming out of /etc/hosts like for example "localhost". In order to prevent that
I think we'd need to move AI_ADDRCONFIG into _nss_dns_gethostbyname*(), which
is beyond my programmings skills to implement I'm afraid.

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