aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJeremy Visser <jeremy@visser.name>2014-08-14 23:44:46 +0200
committerDimitri Stolnikov <horiz0n@gmx.net>2014-08-14 23:44:46 +0200
commit58d95b5164ca5f26fb8d16e85d6e91b191cbad2b (patch)
tree56ba9eaed4863a936c55b9dca74776993768dcca /apps
parent225faa2e6a969207461201e1221d8bec2a683749 (diff)
Allows connecting to IPv6 hosts if an AAAA record is present
and /etc/gai.conf is not configured to prefer IPv4 hosts. The current logic handling the output of getaddrinfo() is flawed in that it only ever attempts to connect() to the first address returned. This is a problem for both round-robin and dual-stack hosts. Furthermore, rtl_tcp_source_c::rtl_tcp_source_c() assumes a colon in the device string is a port number. This prevents the use of raw IPv6 addresses. The function will need to be taught how to handle IPv6 addresses contained within square brackets, e.g. "rtl_tcp=[2001:db8::1]:1234". Therefore further work is required to improve the handling of multiple addresses, and also device strings containing raw IPv6 addresses. Signed-off-by: Jeremy Visser <jeremy@visser.name>
Diffstat (limited to 'apps')
0 files changed, 0 insertions, 0 deletions