[MAC80211]: Improve sanity checks on injected packets
authorAndy Green <andy@warmcat.com>
Fri, 27 Jul 2007 13:43:24 +0000 (15:43 +0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:47:41 +0000 (16:47 -0700)
commit9b8a74e3482f9fc077a88c13fa0ceca8feb0b772
tree0e55e12e233d534de8df14854cdf36ae8391fc5d
parentdfe6e81deaa79c85086c0cc8d85b229e444ab97f
[MAC80211]: Improve sanity checks on injected packets

Michael Wu noticed that the skb length checking is not taken care of enough when
a packet is presented on the Monitor interface for injection.

This patch improves the sanity checking and removes fake offsets placed
into the skb network and transport header.

Signed-off-by: Andy Green <andy@warmcat.com>
Signed-off-by: Jiri Benc <jbenc@suse.cz>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/tx.c