Bugzilla – Bug 2775
UdpClient packet size attribute is too restrictive
Last modified: 2018-05-30 00:16:25 UTC
The attribute UdpClient::PacketSize limits to 1500 bytes, which is too limiting (MTUs may be larger, or fragmentation may be tolerated). I propose to raise the limit to the value of 65507 bytes. diff -r f010860857bd src/applications/model/udp-client.cc --- a/src/applications/model/udp-client.cc Wed Aug 16 19:13:57 2017 +0300 +++ b/src/applications/model/udp-client.cc Wed Aug 16 15:53:04 2017 -0700 @@ -68,7 +68,7 @@ "Size of packets generated. The minimum packet size is 12 bytes which is the size of the header carrying the sequence number and the time stamp.", UintegerValue (1024), MakeUintegerAccessor (&UdpClient::m_size), - MakeUintegerChecker<uint32_t> (12,1500)) + MakeUintegerChecker<uint32_t> (12,65507)) ; return tid; }
+1
pushed in changeset 13606:585dab8f400f