summaryrefslogtreecommitdiffstats
path: root/iptables/nft-shared.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2021-09-27 16:59:49 +0200
committerPhil Sutter <phil@nwl.cc>2021-10-20 11:32:54 +0200
commitcfdda18044d81ca2e8a4f9df8a518290e2e94a07 (patch)
tree6ffd74661a974fbdbd06c658e7a7580f3376835b /iptables/nft-shared.h
parent65b150ae382a8b5d1fc7f2465b3ac590c1601ce1 (diff)
nft-shared: Introduce init_cs family ops callback
Arptables sets a few defaults in struct iptables_command_state upon initialization. Introduce a callback to do that. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/nft-shared.h')
-rw-r--r--iptables/nft-shared.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h
index cc8f3a79..71094a28 100644
--- a/iptables/nft-shared.h
+++ b/iptables/nft-shared.h
@@ -106,6 +106,7 @@ struct nft_family_ops {
struct xtables_args *args);
void (*parse_match)(struct xtables_match *m, void *data);
void (*parse_target)(struct xtables_target *t, void *data);
+ void (*init_cs)(struct iptables_command_state *cs);
void (*rule_to_cs)(struct nft_handle *h, const struct nftnl_rule *r,
struct iptables_command_state *cs);
void (*clear_cs)(struct iptables_command_state *cs);