19b3356ec360b7f75980a1637f5110ac69677280
[feed/routing.git] / batman-adv / patches / 0001-batman-adv-fix-batman-adv-header-overhead-calculatio.patch
1 From d72756b97529b3c6afa08933216aaa912bb16ce6 Mon Sep 17 00:00:00 2001
2 From: Marek Lindner <mareklindner@neomailbox.ch>
3 Date: Wed, 15 Jan 2014 20:31:18 +0800
4 Subject: [PATCH] batman-adv: fix batman-adv header overhead calculation
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Batman-adv prepends a full ethernet header in addition to its own
10 header. This has to be reflected in the MTU calculation.
11
12 Introduced by f1f310d5c261f0214f85afea95d5cd11d49d64c6
13 ("batman-adv: consider network coding overhead when calculating required mtu")
14
15 Reported-by: cmsv <cmsv@wirelesspt.net>
16 Reported-by: Martin Hundebøll <martin@hundeboll.net>
17 Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
18 ---
19 main.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22 diff --git a/main.c b/main.c
23 index 4547bf0..fd85205 100644
24 --- a/main.c
25 +++ b/main.c
26 @@ -277,7 +277,7 @@ int batadv_max_header_len(void)
27 sizeof(struct batadv_coded_packet));
28 #endif
29
30 - return header_len;
31 + return header_len + ETH_HLEN;
32 }
33
34 /**
35 --
36 1.8.4.4
37