summaryrefslogtreecommitdiffstats
path: root/iptables/nft-shared.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-08-21 00:19:25 +0200
committerPhil Sutter <phil@nwl.cc>2019-11-25 23:30:58 +0100
commit441d80c4cfa713b8261947a2cb0e780537454e71 (patch)
treea5d9e0f42a46a2b858e06731a3802bcc54c71d6f /iptables/nft-shared.h
parent1e8ef6a5847549af6fa2edc4fd642cf259ef2ba1 (diff)
nft: Keep nft_handle pointer in nft_xt_ctx
Instead of carrying the family value, carry the handle (which contains the family value) and relieve expression parsers from having to call nft_family_ops_lookup(). Signed-off-by: Phil Sutter <phil@nwl.cc> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft-shared.h')
-rw-r--r--iptables/nft-shared.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h
index a85d5442..e79323c8 100644
--- a/iptables/nft-shared.h
+++ b/iptables/nft-shared.h
@@ -48,7 +48,7 @@ enum {
struct nft_xt_ctx {
struct iptables_command_state *cs;
struct nftnl_expr_iter *iter;
- int family;
+ struct nft_handle *h;
uint32_t flags;
uint32_t reg;