aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2019-09-16 18:33:08 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2019-09-20 10:20:02 +0200
commitad652f3811d8644d547506154ec9a9c22c8771cd (patch)
treeed7bdff7807b9b09142d899c55581c564801167d /include/net
parentselftests: Add test cases for `ip nexthop flush proto XX` (diff)
downloadlinux-dev-ad652f3811d8644d547506154ec9a9c22c8771cd.tar.xz
linux-dev-ad652f3811d8644d547506154ec9a9c22c8771cd.zip
netfilter: nf_tables: add NFT_CHAIN_POLICY_UNSET and use it
Default policy is defined as a unsigned 8-bit field, do not use a negative value to leave it unset, use this new NFT_CHAIN_POLICY_UNSET instead. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/netfilter/nf_tables.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h
index 2655e03dbe1b..a26d64056fc8 100644
--- a/include/net/netfilter/nf_tables.h
+++ b/include/net/netfilter/nf_tables.h
@@ -889,6 +889,8 @@ enum nft_chain_flags {
NFT_CHAIN_HW_OFFLOAD = 0x2,
};
+#define NFT_CHAIN_POLICY_UNSET U8_MAX
+
/**
* struct nft_chain - nf_tables chain
*