aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorBrent Stapleton <brent.stapleton@ettus.com>2018-08-22 09:45:08 -0700
committerBrent Stapleton <bstapleton@g.hmc.edu>2018-08-29 11:37:12 -0700
commit639797e5924b42764711b69b09e48ee07ed3d683 (patch)
tree87b15090afa25c1a75d3d134d9a90a52588b03f8 /host
parentca25198540badb337cb0aeee237c8e51e0b5dea5 (diff)
downloaduhd-639797e5924b42764711b69b09e48ee07ed3d683.tar.gz
uhd-639797e5924b42764711b69b09e48ee07ed3d683.tar.bz2
uhd-639797e5924b42764711b69b09e48ee07ed3d683.zip
uhd: udp: 'all_matching' endpoint resolution
By default, Boost.ASIO uses 'address_configured' mode for UDP endpoint resolution, which "only return[s] IPv4 addresses if a non-loopback IPv4 address is configured for the system". This changes the resolver to use 'all_matching', which instead returns "all matching IPv6 and IPv4 addresses".
Diffstat (limited to 'host')
-rw-r--r--host/lib/transport/udp_simple.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/transport/udp_simple.cpp b/host/lib/transport/udp_simple.cpp
index 27d8ba29f..e3936afc2 100644
--- a/host/lib/transport/udp_simple.cpp
+++ b/host/lib/transport/udp_simple.cpp
@@ -25,7 +25,8 @@ public:
//resolve the address
asio::ip::udp::resolver resolver(_io_service);
- asio::ip::udp::resolver::query query(asio::ip::udp::v4(), addr, port);
+ asio::ip::udp::resolver::query query(asio::ip::udp::v4(), addr, port,
+ asio::ip::resolver_query_base::all_matching);
_send_endpoint = *resolver.resolve(query);
//create and open the socket