summaryrefslogtreecommitdiffstats
path: root/iptables
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-02-07 22:08:54 +0100
committerFlorian Westphal <fw@strlen.de>2019-02-08 17:14:09 +0100
commitb06cc4e0f67f4beba7560fc329d20f108c87b5fb (patch)
treec19511f76a127a02e75e6937f85d0640138a9286 /iptables
parentd1df0a36b0486c780211cfa574301132bf55f194 (diff)
nft: Introduce UDATA_TYPE_EBTABLES_POLICY
This will be used later to identify ebtables user-defined chain policy rules. Signed-off-by: Phil Sutter <phil@nwl.cc> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables')
-rw-r--r--iptables/nft.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/iptables/nft.c b/iptables/nft.c
index 8d0d1017..4010ccd5 100644
--- a/iptables/nft.c
+++ b/iptables/nft.c
@@ -1115,6 +1115,7 @@ int add_counters(struct nftnl_rule *r, uint64_t packets, uint64_t bytes)
enum udata_type {
UDATA_TYPE_COMMENT,
+ UDATA_TYPE_EBTABLES_POLICY,
__UDATA_TYPE_MAX,
};
#define UDATA_TYPE_MAX (__UDATA_TYPE_MAX - 1)
@@ -1131,6 +1132,8 @@ static int parse_udata_cb(const struct nftnl_udata *attr, void *data)
if (value[len - 1] != '\0')
return -1;
break;
+ case UDATA_TYPE_EBTABLES_POLICY:
+ break;
default:
return 0;
}