projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7f8ed5
)
batman-adv: use VLAN_ETH_HLEN instead of sizeof(struct vlan_eth_hdr)
author
Antonio Quartulli
<
[email protected]
>
Sun, 12 May 2013 19:57:09 +0000
(21:57 +0200)
committer
Antonio Quartulli
<
[email protected]
>
Sat, 12 Oct 2013 09:58:33 +0000
(11:58 +0200)
Signed-off-by: Antonio Quartulli <
[email protected]
>
Signed-off-by: Marek Lindner <
[email protected]
>
net/batman-adv/bridge_loop_avoidance.c
patch
|
blob
|
history
diff --git
a/net/batman-adv/bridge_loop_avoidance.c
b/net/batman-adv/bridge_loop_avoidance.c
index 264de88db3208290b940cc27b09e44f79e1616c9..70da18ab41c3369aa52040be75972cf54c426089 100644
(file)
--- a/
net/batman-adv/bridge_loop_avoidance.c
+++ b/
net/batman-adv/bridge_loop_avoidance.c
@@
-1380,7
+1380,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);