[Bug 5042] New: busybox fails to connect to IPv6-and-V4 targets from v4-only hosts
bugzilla at busybox.net
bugzilla at busybox.net
Thu Apr 5 11:29:53 UTC 2012
https://bugs.busybox.net/show_bug.cgi?id=5042
Summary: busybox fails to connect to IPv6-and-V4 targets from
v4-only hosts
Product: Busybox
Version: 1.19.x
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Networking
AssignedTo: unassigned at busybox.net
ReportedBy: mjt+busybox at tls.msk.ru
CC: busybox-cvs at busybox.net
Estimated Hours: 0.0
This is http://bugs.debian.org/658616 , initially reported about wget but it is
seemingly more generic than wget.
Apparently when getaddrinfo() returns a v6 addresss before v4 one, and the host
from which we're trying to connect does not have v6 routing, the connection
fails.
As far as I can see, this is due to str2sockaddr() function returning only
first address, even if it uses getaddrinfo() which returns a list. Next that
single address gets passed to connect routine which, on a
v6-enabled-but-not-configured host will fail.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list