Commit Graph
5 Commits
Author SHA1 Message Date
Florian Fainelli 0847706597 socketlib: properly fix the IPv6 to IPv4 fallback code.
With the current code, we do have the following on a system where IPv6
is completely disabled:

socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = -1 EAFNOSUPPORT (Address
family not supported by protocol)
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(3, {sa_family=AF_INET6, sin6_port=htons(5002), inet_pton(AF_INET6,
"::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1
EAFNOSUPPORT (Address family not supported by protocol)

The correct fix is to make a new call to getAddr() to ensure that the
entire struct addrinfo will be correctly filled out again with AF_INET
this time. This patch fixes.
2013-02-22 15:52:26 +01:00
Dan McGee 7fcfd3ddac Small socketlib static and return value tweaks 2012-02-24 14:17:30 -06:00
Walter Goossens a07282b13c socketlib: Fallback to IPv4 when IPv6 not present.
This fixes systems where IPv6 is available in libraries but just not enabled
in the kernel.
2011-05-10 23:33:43 +02:00
Andrew Webster 18c6c57321 fixed places in code that expected TRUE to be > 0.
fixed some base64 decoder/padding issues.
Updates for iTunes compatability (via James Pearce)
2011-05-04 18:51:03 -04:00
Andrew Webster df4a540dc9 Adds an alternative startup, that eliminates the need for Perl.
Requires airport.pem to load the airplay key.
2011-04-30 05:32:26 -04:00