aboutsummaryrefslogtreecommitdiff
path: root/net/ipv4/netfilter/ipt_tos.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/netfilter/ipt_tos.c')
-rw-r--r--net/ipv4/netfilter/ipt_tos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ipt_tos.c b/net/ipv4/netfilter/ipt_tos.c
index 5d33b51d49d..d314844af12 100644
--- 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 = {