aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/udp_common.hpp
diff options
context:
space:
mode:
authormichael-west <michael.west@ettus.com>2017-03-21 14:29:23 -0700
committerMartin Braun <martin.braun@ettus.com>2017-03-21 18:02:08 -0700
commit3870f16f6eb8959319629fdf7d4eb1f5583ed942 (patch)
tree372339b4f6f1c15063dea0789ed4e1c6db2ed77a /host/lib/transport/udp_common.hpp
parent75495138932ba8536d7771409c26f4d3d98b7dff (diff)
downloaduhd-3870f16f6eb8959319629fdf7d4eb1f5583ed942.tar.gz
uhd-3870f16f6eb8959319629fdf7d4eb1f5583ed942.tar.bz2
uhd-3870f16f6eb8959319629fdf7d4eb1f5583ed942.zip
UDP: Set default socket buffer size to number of frames * 9000 (maximum Ethernet MTU)
Diffstat (limited to 'host/lib/transport/udp_common.hpp')
-rw-r--r--host/lib/transport/udp_common.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/lib/transport/udp_common.hpp b/host/lib/transport/udp_common.hpp
index bf4712613..3ee568432 100644
--- a/host/lib/transport/udp_common.hpp
+++ b/host/lib/transport/udp_common.hpp
@@ -23,6 +23,9 @@
namespace uhd{ namespace transport{
+ // Jumbo frames are limited to 9000;
+ static const size_t MAX_ETHERNET_MTU = 9000;
+
typedef boost::shared_ptr<boost::asio::ip::udp::socket> socket_sptr;
/*!