git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[SK_BUFF]: Introduce ip_hdr(), remove skb->nh.iph
[safe/jmp/linux-2.6]
/
net
/
ipv4
/
netfilter
/
ipt_tos.c
diff --git
a/net/ipv4/netfilter/ipt_tos.c
b/net/ipv4/netfilter/ipt_tos.c
index
5d33b51
..
d314844
100644
(file)
--- a/
net/ipv4/netfilter/ipt_tos.c
+++ b/
net/ipv4/netfilter/ipt_tos.c
@@
-30,7
+30,7
@@
match(const struct sk_buff *skb,
{
const struct ipt_tos_info *info = matchinfo;
- return (
skb->nh.iph
->tos == info->tos) ^ info->invert;
+ return (
ip_hdr(skb)
->tos == info->tos) ^ info->invert;
}
static struct xt_match tos_match = {