diff options
author | Liping Zhang <liping.zhang@spreadtrum.com> | 2016-06-08 20:20:10 +0800 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-06-23 14:15:33 +0200 |
commit | 62131e5d735226074cba53095545d76b491e5003 (patch) | |
tree | 0f7183d2ccc0ab5f4f2968f4705327892bd11cb0 /net/netfilter | |
parent | 6cafaf4764a32597c2195aa5411b87728e1fde8a (diff) | |
download | op-kernel-dev-62131e5d735226074cba53095545d76b491e5003.zip op-kernel-dev-62131e5d735226074cba53095545d76b491e5003.tar.gz |
netfilter: nft_meta: set skb->nf_trace appropriately
When user add a nft rule to set nftrace to zero, for example:
# nft add rule ip filter input nftrace set 0
We should set nf_trace to zero also.
Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter')
-rw-r--r-- | net/netfilter/nft_meta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nft_meta.c b/net/netfilter/nft_meta.c index 16c50b0..f4bad9d 100644 --- a/net/netfilter/nft_meta.c +++ b/net/netfilter/nft_meta.c @@ -227,7 +227,7 @@ void nft_meta_set_eval(const struct nft_expr *expr, skb->pkt_type = value; break; case NFT_META_NFTRACE: - skb->nf_trace = 1; + skb->nf_trace = !!value; break; default: WARN_ON(1); |