Repository : ssh://git@open-mesh.org/batman-adv
On branch : master
commit 925be3ea3615400ebd79c3a4a269b02dd4894272 Author: Antonio Quartulli ordex@autistici.org Date: Sun May 12 21:57:09 2013 +0200
batman-adv: use VLAN_ETH_HLEN instead of sizeof(struct vlan_eth_hdr)
Signed-off-by: Antonio Quartulli ordex@autistici.org Signed-off-by: Marek Lindner lindner_marek@yahoo.de
925be3ea3615400ebd79c3a4a269b02dd4894272 bridge_loop_avoidance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bridge_loop_avoidance.c b/bridge_loop_avoidance.c index e9d8e0b..9e691b0 100644 --- a/bridge_loop_avoidance.c +++ b/bridge_loop_avoidance.c @@ -1376,7 +1376,7 @@ int batadv_bla_is_backbone_gw(struct sk_buff *skb, ethhdr = (struct ethhdr *)(((uint8_t *)skb->data) + hdr_size);
if (ntohs(ethhdr->h_proto) == ETH_P_8021Q) { - if (!pskb_may_pull(skb, hdr_size + sizeof(struct vlan_ethhdr))) + if (!pskb_may_pull(skb, hdr_size + VLAN_ETH_HLEN)) return 0;
vhdr = (struct vlan_ethhdr *)(skb->data + hdr_size);