aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/mpmd/mpmd_xport_ctrl_udp.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-12-15 19:02:45 -0800
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:06:03 -0800
commit5adde5ab9c369e9c0389949c82804e9f23e39541 (patch)
tree217c4333df3ffcde60eafe51c2c9d44c2a86d7a7 /host/lib/usrp/mpmd/mpmd_xport_ctrl_udp.hpp
parent6af41376c18c62ca7bfe8cccdd6564922d3fdd6a (diff)
downloaduhd-5adde5ab9c369e9c0389949c82804e9f23e39541.tar.gz
uhd-5adde5ab9c369e9c0389949c82804e9f23e39541.tar.bz2
uhd-5adde5ab9c369e9c0389949c82804e9f23e39541.zip
mpmd: Add get_mtu() API and MTU discovery for UDP transports
The mpmd_xport_mgr classes can now return their own MTU. The UDP xport manager is a special case, it doesn't actually know its MTU, and thus runs an MTU discovery, using the MPM-ECHO command to discover MTU by sending variable-size packets as a probing mechanism. Reviewed-by: Trung Tran <trung.tran@ettus.com>
Diffstat (limited to 'host/lib/usrp/mpmd/mpmd_xport_ctrl_udp.hpp')
-rw-r--r--host/lib/usrp/mpmd/mpmd_xport_ctrl_udp.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_xport_ctrl_udp.hpp b/host/lib/usrp/mpmd/mpmd_xport_ctrl_udp.hpp
index 0c8c19479..fad775c39 100644
--- a/host/lib/usrp/mpmd/mpmd_xport_ctrl_udp.hpp
+++ b/host/lib/usrp/mpmd/mpmd_xport_ctrl_udp.hpp
@@ -34,11 +34,18 @@ public:
const mpmd_xport_mgr::xport_info_t& xport_info
) const;
+ size_t get_mtu(
+ const uhd::direction_t dir
+ ) const;
+
private:
const uhd::device_addr_t _mb_args;
const uhd::dict<std::string, std::string> _recv_args;
const uhd::dict<std::string, std::string> _send_args;
+ //! A list of IP addresses we can connect our CHDR connections to
const std::vector<std::string> _available_addrs;
+ //! MTU
+ size_t _mtu;
};
}}} /* namespace uhd::mpmd::xport */