* [B.A.T.M.A.N.] [PATCH] batman-adv: use VLAN_ETH_HLEN instead of sizeof(struct vlan_eth_hdr)
@ 2013-05-12 19:57 Antonio Quartulli
2013-05-18 10:14 ` Marek Lindner
0 siblings, 1 reply; 2+ messages in thread
From: Antonio Quartulli @ 2013-05-12 19:57 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Antonio Quartulli
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
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 0582b7d..124a743 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);
--
1.8.1.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: use VLAN_ETH_HLEN instead of sizeof(struct vlan_eth_hdr)
2013-05-12 19:57 [B.A.T.M.A.N.] [PATCH] batman-adv: use VLAN_ETH_HLEN instead of sizeof(struct vlan_eth_hdr) Antonio Quartulli
@ 2013-05-18 10:14 ` Marek Lindner
0 siblings, 0 replies; 2+ messages in thread
From: Marek Lindner @ 2013-05-18 10:14 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Antonio Quartulli
On Monday, May 13, 2013 03:57:09 Antonio Quartulli wrote:
> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
> ---
> bridge_loop_avoidance.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied in revision 925be3e.
Thanks,
Marek
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-18 10:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-12 19:57 [B.A.T.M.A.N.] [PATCH] batman-adv: use VLAN_ETH_HLEN instead of sizeof(struct vlan_eth_hdr) Antonio Quartulli
2013-05-18 10:14 ` Marek Lindner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox