mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-18 22:43:53 +01:00
madwifi: handle frame classification properly if eth->h_proto contains the protocol number directly (without offset)
SVN-Revision: 16237
This commit is contained in:
parent
b6e5025f15
commit
43b2318584
@ -5,7 +5,7 @@
|
|||||||
skb->pkt_type = PACKET_OTHERHOST;
|
skb->pkt_type = PACKET_OTHERHOST;
|
||||||
|
|
||||||
- return eth->h_proto;
|
- return eth->h_proto;
|
||||||
+ if (ntohs(eth->h_proto) >= 1536)
|
+ if ((ntohs(eth->h_proto) >= 1536) || (ntohs(eth->h_proto) < 38))
|
||||||
+ return eth->h_proto;
|
+ return eth->h_proto;
|
||||||
+ return htons(ETH_P_802_2);
|
+ return htons(ETH_P_802_2);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user