From 3870f16f6eb8959319629fdf7d4eb1f5583ed942 Mon Sep 17 00:00:00 2001 From: michael-west Date: Tue, 21 Mar 2017 14:29:23 -0700 Subject: UDP: Set default socket buffer size to number of frames * 9000 (maximum Ethernet MTU) --- host/lib/transport/udp_common.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'host/lib/transport/udp_common.hpp') 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 socket_sptr; /*! -- cgit v1.2.3