diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-05-31 17:15:09 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-05-31 17:15:09 +0000 |
commit | 43b23185843a754f67a1181399e66aebf9b26cbe (patch) | |
tree | e1c07caa9317da7655fa7b0a06b36ff177446f2a /package | |
parent | b6e5025f1533d917c67e0756e23ff61c884cfedc (diff) | |
download | upstream-43b23185843a754f67a1181399e66aebf9b26cbe.tar.gz upstream-43b23185843a754f67a1181399e66aebf9b26cbe.tar.bz2 upstream-43b23185843a754f67a1181399e66aebf9b26cbe.zip |
madwifi: handle frame classification properly if eth->h_proto contains the protocol number directly (without offset)
SVN-Revision: 16237
Diffstat (limited to 'package')
-rw-r--r-- | package/madwifi/patches/390-frame_type.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/madwifi/patches/390-frame_type.patch b/package/madwifi/patches/390-frame_type.patch index 130f3b6d61..71d658b4e5 100644 --- a/package/madwifi/patches/390-frame_type.patch +++ b/package/madwifi/patches/390-frame_type.patch @@ -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); } |