[SK_BUFF]: Introduce ip_hdr(), remove skb->nh.iph

Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Arnaldo Carvalho de Melo 2007-04-20 22:47:35 -07:00 • committed by David S. Miller
commit eddc9ec53b
132 changed files with 565 additions and 564 deletions

View file

@ -228,7 +228,7 @@ static int ieee80211_classify(struct sk_buff *skb)
if (eth->h_proto != htons(ETH_P_IP))
return 0;
ip = skb->nh.iph;
ip = ip_hdr(skb);
switch (ip->tos & 0xfc) {
case 0x20:
return 2;