aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2014-01-16 17:16:43 -0800
committerDavid S. Miller <davem@davemloft.net>2014-01-16 17:16:43 -0800
commit8c12ec741174668d80d7301c298d1d183f92b937 (patch)
tree4d83a2c9030bde22372f3a961a079837c5806915
parente1000e: Fix compilation warning when !CONFIG_PM_SLEEP (diff)
parentbatman-adv: fix batman-adv header overhead calculation (diff)
downloadlinux-dev-8c12ec741174668d80d7301c298d1d183f92b937.tar.xz
linux-dev-8c12ec741174668d80d7301c298d1d183f92b937.zip
Merge tag 'batman-adv-fix-for-davem' of git://git.open-mesh.org/linux-merge
Included change: - properly compute the batman-adv header overhead. Such result is later used to initialize the hard_header_len member of the soft-interface netdev object Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/batman-adv/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/main.c b/net/batman-adv/main.c
index 1511f64a6cea..faba0f61ad53 100644
--- a/net/batman-adv/main.c
+++ b/net/batman-adv/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;
}
/**