batman-adv: 2014.0.0 updated stability fixes
[feed/routing.git] / batman-adv / patches / 0001-batman-adv-fix-batman-adv-header-overhead-calculatio.patch
1 From 746d6436f88899a79c1cb3b27af0614510368bb7 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 1/5] 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, especially
11 since the value is used to set dev->hard_header_len.
12
13 Introduced by f1f310d5c261f0214f85afea95d5cd11d49d64c6
14 ("batman-adv: consider network coding overhead when calculating required mtu")
15
16 Reported-by: cmsv <cmsv@wirelesspt.net>
17 Reported-by: Martin Hundebøll <martin@hundeboll.net>
18 Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
19 ---
20 main.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23 diff --git a/main.c b/main.c
24 index 4547bf0..fd85205 100644
25 --- a/main.c
26 +++ b/main.c
27 @@ -277,7 +277,7 @@ int batadv_max_header_len(void)
28 sizeof(struct batadv_coded_packet));
29 #endif
30
31 - return header_len;
32 + return header_len + ETH_HLEN;
33 }
34
35 /**
36 --
37 1.8.5.3
38