From 733530a8509e7511df49ece1cc0a4700138f650d Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 23 Jun 2017 15:26:44 +0200 Subject: Increase EDI expected MTU to 1400 Configurable would be better though --- src/dabOutput/edi/PFT.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/dabOutput/edi/PFT.cpp b/src/dabOutput/edi/PFT.cpp index 4bce1f1..1c885f9 100644 --- a/src/dabOutput/edi/PFT.cpp +++ b/src/dabOutput/edi/PFT.cpp @@ -172,7 +172,9 @@ vector< vector > PFT::ProtectAndFragment(AFPacket af_packet) } else { // No RS, only fragmentation // TS 102 821 7.2.2: s_max = MTU - h - const size_t max_payload_size = 1000; // TODO define properly + // Ethernet MTU is 1500, but maybe you are routing over a network which + // has some sort of packet encapsulation. Add some margin. + const size_t max_payload_size = 1400; // Calculate fragment count and size // TS 102 821 7.2.2: ceil((l + c*p + z) / s_max) -- cgit v1.2.3