summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-06-23 15:26:44 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-06-23 15:26:44 +0200
commit733530a8509e7511df49ece1cc0a4700138f650d (patch)
tree3d501e934367cc4ad8ef89d4f0e74a2350c051d3 /src
parent2c98da85df1d33e220a6c661670099ac7bc1c86e (diff)
downloaddabmux-733530a8509e7511df49ece1cc0a4700138f650d.tar.gz
dabmux-733530a8509e7511df49ece1cc0a4700138f650d.tar.bz2
dabmux-733530a8509e7511df49ece1cc0a4700138f650d.zip
Increase EDI expected MTU to 1400
Configurable would be better though
Diffstat (limited to 'src')
-rw-r--r--src/dabOutput/edi/PFT.cpp4
1 files changed, 3 insertions, 1 deletions
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<uint8_t> > 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)