From: Marek Lindner Date: Wed, 15 Jan 2014 22:48:32 +0000 (+0800) Subject: batman-adv: fix batman-adv header overhead calculation X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c7e942386fe31d5041c2e3eb20c58f17a12e9396;p=feed%2Frouting.git batman-adv: fix batman-adv header overhead calculation Signed-off-by: Marek Lindner --- diff --git a/batman-adv/patches/0001-batman-adv-fix-batman-adv-header-overhead-calculatio.patch b/batman-adv/patches/0001-batman-adv-fix-batman-adv-header-overhead-calculatio.patch new file mode 100644 index 0000000..19b3356 --- /dev/null +++ b/batman-adv/patches/0001-batman-adv-fix-batman-adv-header-overhead-calculatio.patch @@ -0,0 +1,37 @@ +From d72756b97529b3c6afa08933216aaa912bb16ce6 Mon Sep 17 00:00:00 2001 +From: Marek Lindner +Date: Wed, 15 Jan 2014 20:31:18 +0800 +Subject: [PATCH] batman-adv: fix batman-adv header overhead calculation +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Batman-adv prepends a full ethernet header in addition to its own +header. This has to be reflected in the MTU calculation. + +Introduced by f1f310d5c261f0214f85afea95d5cd11d49d64c6 +("batman-adv: consider network coding overhead when calculating required mtu") + +Reported-by: cmsv +Reported-by: Martin Hundebøll +Signed-off-by: Marek Lindner +--- + main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/main.c b/main.c +index 4547bf0..fd85205 100644 +--- a/main.c ++++ b/main.c +@@ -277,7 +277,7 @@ int batadv_max_header_len(void) + sizeof(struct batadv_coded_packet)); + #endif + +- return header_len; ++ return header_len + ETH_HLEN; + } + + /** +-- +1.8.4.4 +