Mailinglist Archive: opensuse-bugs (5385 mails)

< Previous Next >
[Bug 684534] New: getaddrinfo-ipv6-sanity.diff no longer works
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 1 Apr 2011 14:48:01 +0000
  • Message-id: <bug-684534-21960@http.bugzilla.novell.com/>

https://bugzilla.novell.com/show_bug.cgi?id=684534

https://bugzilla.novell.com/show_bug.cgi?id=684534#c0


Summary: getaddrinfo-ipv6-sanity.diff no longer works
Classification: openSUSE
Product: openSUSE 11.4
Version: Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: pbaudis@xxxxxxxxxx
ReportedBy: mls@xxxxxxxxxx
QAContact: qa@xxxxxxx
Found By: Customer
Blocker: ---


The getaddrinfo-ipv6-sanity.diff makes glibc not do IPv6 AAAA requests if ipv6
is disabled (i.e. there's no ipv6 interface config).

The current glibc code calls gethostbyname4() if AF_UNSPEC is used, it ignores
the usable_ipv6 parameter introduced with the getaddrinfo-ipv6-sanity.diff.

I propose to only use gethostbyname4() if usable_ipv6 is true, i.e. change

if (fct4 != NULL)
to
if (fct4 != NULL && usable_ipv6)

in sysdeps/posix/getaddrinfo.c

Side note:
The debian version of getaddrinfo-ipv6-sanity.diff contains a slightly
different getaddrinfo-ipv6-sanity.diff, it skips interfaces where there is only
a link=local ipv6 address defined when doing the ipv6 usability check. That's
good for people with routers running a broken DNS server, but it forbids
link-local IPv6 networks. So I'm not sure if it's a good idea or not.

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

< Previous Next >
Follow Ups