Age | Commit message (Collapse) | Author | Files | Lines |
|
The lookup logic preferred to return the last suitable scope id match.
This became a problem if there was already a suitable scope id match before
that was higher in the interface list. This now chooses the higher last
scope id interface match and thus probably in the routing preference.
|
|
This extends the socket helper with functions to determine the "scope" and a
suitable "scope id" of an IPv6 address. While socket_connect_addr() prefers
any initially supplied "scope id" to maintain routing information if possible,
it will attempt to determine the best suitable route with the new helpers.
This became a requirement during testing with remote usbmux connections that
provide a different "scope id" and thus might cause IPv6 routing to not work
at all. Thus the "scope id" is only valid per host.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if peer closed the socket
Returning -EAGAIN would indicate the caller can try again, but if the peer
closed the socket that wouldn't make any sense. Thanks to sctol for reporting.
|
|
socket_check_fd()
Depending on the platform, select() may modify the timeval structure to
indicate the amount left on the timer, so we reset the timeout before calling
select() again. Thanks to sctol for reporting.
|
|
|
|
|
|
By using USBMUXD_SOCKET_ADDRESS environment variable, it is possible
to make libusbmuxd connect to the specified address. The value needs
to be in format ADDRESS:PORT (or UNIX:PATH on unix systems). If no port
number is specified or parsing fails, the standard socket address (or
unix domain socket file path) will be used silently.
|
|
|
|
socket address
|
|
|
|
|
|
This avoids the iproxy tool from relying on undocumented library ABI.
|