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_base.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_base.hpp')
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_xport_ctrl_base.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_xport_ctrl_base.hpp b/host/lib/usrp/mpmd/mpmd_xport_ctrl_base.hpp index e5a3b7e31..c3e71d495 100644 --- a/host/lib/usrp/mpmd/mpmd_xport_ctrl_base.hpp +++ b/host/lib/usrp/mpmd/mpmd_xport_ctrl_base.hpp @@ -38,6 +38,10 @@ public: virtual bool is_valid( const mpmd_xport_mgr::xport_info_t& xport_info ) const = 0; + + virtual size_t get_mtu( + const uhd::direction_t dir + ) const = 0; }; }}} /* namespace uhd::mpmd::xport */ |