]> git.ipfire.org Git - people/ms/network.git/commitdiff
batman-adv-port: Increase MTU to 1560 as suggested by the batman guys
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 26 Aug 2014 09:22:52 +0000 (11:22 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 26 Aug 2014 09:22:52 +0000 (11:22 +0200)
"The MTU of interface batp0 is too small (1528) to handle the transport
of batman-adv packets. Packets going over this interface will be
fragmented on layer2 which could impact the performance.
Setting the MTU to 1560 would solve the problem."

src/hooks/ports/batman-adv-port

index a9304684e8627e7f50355c5ea97bd0a7329cbe66..3019c9277350111825d2563e6ddcd99f4805de9c 100644 (file)
@@ -30,8 +30,8 @@ MESH_ID=
 SSID=
 
 # batman-adv inserts an additional header of 28 bytes, so we set the MTU
-# to 1528, that normal ethernet packets with 1500 bytes can pass the network.
-MTU=1528
+# to 1560, that normal ethernet packets with 1500 bytes can pass the network.
+MTU=1560
 
 function hook_check() {
        assert isset ADDRESS