mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 19:49:54 +02:00
madwifi: handle frame classification properly if eth->h_proto contains the protocol number directly (without offset)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16237 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
8ad47a5623
commit
cbfd6ccc24
@ -5,7 +5,7 @@
|
||||
skb->pkt_type = PACKET_OTHERHOST;
|
||||
|
||||
- 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 htons(ETH_P_802_2);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user