diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-12-15 19:02:45 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:06:03 -0800 |
commit | 5adde5ab9c369e9c0389949c82804e9f23e39541 (patch) | |
tree | 217c4333df3ffcde60eafe51c2c9d44c2a86d7a7 /host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.hpp | |
parent | 6af41376c18c62ca7bfe8cccdd6564922d3fdd6a (diff) | |
download | uhd-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_liberio.hpp')
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.hpp b/host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.hpp index 76bb88f03..52fc6ae48 100644 --- a/host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.hpp +++ b/host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.hpp @@ -35,6 +35,10 @@ public: const mpmd_xport_mgr::xport_info_t& xport_info ) const; + size_t get_mtu( + const uhd::direction_t dir + ) const ; + private: /*! Create a muxed liberio transport for control packets */ uhd::transport::muxed_zero_copy_if::sptr make_muxed_liberio_xport( |