diff options
author | Josh Blum <josh@joshknows.com> | 2010-07-07 23:48:09 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-07-07 23:48:09 -0700 |
commit | c72bc56ba6d5b0457f03967a8f8d8e5602fdf14d (patch) | |
tree | 13acfd23ac9906977c8364044e4cf0f90fb389a7 /host/include | |
parent | be430761fb7e526e80b67d70e3cf488c6dd02495 (diff) | |
download | uhd-c72bc56ba6d5b0457f03967a8f8d8e5602fdf14d.tar.gz uhd-c72bc56ba6d5b0457f03967a8f8d8e5602fdf14d.tar.bz2 uhd-c72bc56ba6d5b0457f03967a8f8d8e5602fdf14d.zip |
usrp2: moved common defined for udp mtu and implemented change.
The uhp mtu is now defined in uhd_simple.hpp.
The fw common code does not need to know this information.
Fixed a calculation bug in the usrp2 impl code for max samples.
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/transport/udp_simple.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/host/include/uhd/transport/udp_simple.hpp b/host/include/uhd/transport/udp_simple.hpp index 793ec4fd7..98dca02f0 100644 --- a/host/include/uhd/transport/udp_simple.hpp +++ b/host/include/uhd/transport/udp_simple.hpp @@ -29,6 +29,9 @@ class UHD_API udp_simple : boost::noncopyable{ public: typedef boost::shared_ptr<udp_simple> sptr; + //! The maximum number of bytes per udp packet. + static const size_t mtu = 1500 - 20 - 8; //default ipv4 mtu - ipv4 header - udp header + /*! * Make a new connected udp transport: * This transport is for sending and receiving |