diff options
author | Ashish Chaudhari <ashish@ettus.com> | 2014-10-03 14:27:29 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2014-10-09 14:06:09 +0200 |
commit | ff7ede9685a4cf0ee4ffd5863b1ad1818e0c2401 (patch) | |
tree | ab3f2ea66e238a07dd2f6526fff42a5cfd9bbac6 /host/lib/transport/nirio/rpc | |
parent | f07ce4dc32c64d306368b80395cc6084d844cebe (diff) | |
download | uhd-ff7ede9685a4cf0ee4ffd5863b1ad1818e0c2401.tar.gz uhd-ff7ede9685a4cf0ee4ffd5863b1ad1818e0c2401.tar.bz2 uhd-ff7ede9685a4cf0ee4ffd5863b1ad1818e0c2401.zip |
x300: Bugfix#602: X3x0 not found over PCIe with no Eth interfaces
- X3x0 not found over PCIe when only a loopback network interface exists on the host
Diffstat (limited to 'host/lib/transport/nirio/rpc')
-rw-r--r-- | host/lib/transport/nirio/rpc/rpc_client.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/host/lib/transport/nirio/rpc/rpc_client.cpp b/host/lib/transport/nirio/rpc/rpc_client.cpp index 0c4b8fe3c..cf8e9c1a9 100644 --- a/host/lib/transport/nirio/rpc/rpc_client.cpp +++ b/host/lib/transport/nirio/rpc/rpc_client.cpp @@ -48,7 +48,12 @@ rpc_client::rpc_client ( try { //Synchronous resolve + connect tcp::resolver resolver(_io_service); - tcp::resolver::query query(tcp::v4(), server, port); + //Create flags object with all special flags disabled. Especially the following: + //- address_configured: Only return addresses if a non-loopback address is configured for the system. + //- numeric_host: No name resolution should be attempted for host + //- numeric_service: No name resolution should be attempted for service + tcp::resolver::query::flags query_flags; + tcp::resolver::query query(tcp::v4(), server, port, query_flags); tcp::resolver::iterator iterator = resolver.resolve(query); #if BOOST_VERSION < 104700 |