diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2013-05-08 13:31:59 +0800 |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2013-10-12 17:17:09 +0200 |
commit | 411d6ed93a5d0601980d3e5ce75de07c98e3a7de (patch) | |
tree | 00a52bc5c70d465129c85d48e52ced2186649660 /net/batman-adv/types.h | |
parent | 0bf84c160a4b3b75bb911b79c3972f64dfb0b039 (diff) |
batman-adv: consider network coding overhead when calculating required mtu
The module prints a warning when the MTU on the hard interface is too
small to transfer payload traffic without fragmentation. The required
MTU is calculated based on the encapsulation header size. If network
coding is compild into the module its header size is taken into
account as well.
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Diffstat (limited to 'net/batman-adv/types.h')
-rw-r--r-- | net/batman-adv/types.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h index d517d5dde6ad..5cbb0d09a9b5 100644 --- a/net/batman-adv/types.h +++ b/net/batman-adv/types.h @@ -24,13 +24,6 @@ #include "bitarray.h" #include <linux/kernel.h> -/** - * Maximum overhead for the encapsulation for a payload packet - */ -#define BATADV_HEADER_LEN \ - (ETH_HLEN + max(sizeof(struct batadv_unicast_packet), \ - sizeof(struct batadv_bcast_packet))) - #ifdef CONFIG_BATMAN_ADV_DAT /* batadv_dat_addr_t is the type used for all DHT addresses. If it is changed, |