Commit Graph
4 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
Albert Zeyer 2776a4e47e change default port to 5002 as in #90.
this doesn't fix #34 though -- this should still be added, i.e. some automatic fallback to just any random free port.
2011-05-30 15:37:36 +02:00
Albert Zeyer 2e4a080d58 some fixes 2011-04-30 17:22:01 +02: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