From b06cc4e0f67f4beba7560fc329d20f108c87b5fb Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 7 Feb 2019 22:08:54 +0100 Subject: nft: Introduce UDATA_TYPE_EBTABLES_POLICY This will be used later to identify ebtables user-defined chain policy rules. Signed-off-by: Phil Sutter Acked-by: Pablo Neira Ayuso Signed-off-by: Florian Westphal --- iptables/nft.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'iptables') 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; } -- cgit v1.2.3