diff options
author | Martin Szulecki | 2020-06-07 02:21:01 +0200 |
---|---|---|
committer | Nikias Bassen | 2020-06-07 11:34:14 +0200 |
commit | ee02dea462326879e9cf3293cd31172c25335be3 (patch) | |
tree | 5bfeee3b4f5b0735099b06cc2e4d731a11862783 /common/collection.c | |
parent | 033202c9b1df142139358edec77709aa9ede4f16 (diff) | |
download | libusbmuxd-ee02dea462326879e9cf3293cd31172c25335be3.tar.gz libusbmuxd-ee02dea462326879e9cf3293cd31172c25335be3.tar.bz2 |
socket: Fix socket_connect_addr() not connecting using IPv6 in some cases
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.
Diffstat (limited to 'common/collection.c')
0 files changed, 0 insertions, 0 deletions