Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228190
b: refs/heads/master
c: c9c556b
h: refs/heads/master
v: v3
  • Loading branch information
Marek Lindner authored and Greg Kroah-Hartman committed Nov 29, 2010
1 parent 54e3938 commit a29adc0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6c3a42db6ca46204b35f0cdb8abfa9e4771641ef
refs/heads/master: c9c556b63b19c8b52de5c5ea6f47ab16fc540e47
8 changes: 8 additions & 0 deletions trunk/drivers/staging/batman-adv/gateway_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,14 @@ int gw_is_target(struct bat_priv *bat_priv, struct sk_buff *skb)
ethhdr = (struct ethhdr *)skb->data;
header_len += ETH_HLEN;

/* check for initial vlan header */
if (ntohs(ethhdr->h_proto) == ETH_P_8021Q) {
if (!pskb_may_pull(skb, header_len + VLAN_HLEN))
return 0;
ethhdr = (struct ethhdr *)(skb->data + VLAN_HLEN);
header_len += VLAN_HLEN;
}

/* check for ip header */
if (ntohs(ethhdr->h_proto) != ETH_P_IP)
return 0;
Expand Down

0 comments on commit a29adc0

Please sign in to comment.