Browse Source

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>
David S. Miller 11 years ago
parent
commit
8c12ec7411
1 changed files with 1 additions and 1 deletions
  1. 1 1
      net/batman-adv/main.c

+ 1 - 1
net/batman-adv/main.c

@@ -277,7 +277,7 @@ int batadv_max_header_len(void)
 			   sizeof(struct batadv_coded_packet));
 			   sizeof(struct batadv_coded_packet));
 #endif
 #endif
 
 
-	return header_len;
+	return header_len + ETH_HLEN;
 }
 }
 
 
 /**
 /**