Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361450
b: refs/heads/master
c: 17b682a
h: refs/heads/master
v: v3
  • Loading branch information
Rich Lane authored and Jesse Gross committed Feb 23, 2013
1 parent 4d22ba7 commit a0a3915
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a15ff76c955d17cf58313097e4a24124da022b1d
refs/heads/master: 17b682a04841233f827073b327c6533e478dfcd4
6 changes: 5 additions & 1 deletion trunk/net/openvswitch/flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,11 @@ static __be16 parse_ethertype(struct sk_buff *skb)
return htons(ETH_P_802_2);

__skb_pull(skb, sizeof(struct llc_snap_hdr));
return llc->ethertype;

if (ntohs(llc->ethertype) >= 1536)
return llc->ethertype;

return htons(ETH_P_802_2);
}

static int parse_icmpv6(struct sk_buff *skb, struct sw_flow_key *key,
Expand Down

0 comments on commit a0a3915

Please sign in to comment.