diff options
author | Phil Sutter <phil@nwl.cc> | 2023-04-21 15:52:14 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2023-05-03 19:11:55 +0200 |
commit | 4c923250269f9ef4a7b4235f4dc127b04932a8eb (patch) | |
tree | 9a370a1990ac6c22f7c43e2b630c7bb66ee1edfb /iptables/nft-ruleparse.h | |
parent | 674e7c0f639f2322dcc7eee67aa9c3d52fa3ee65 (diff) |
nft: ruleparse: Create family-specific source files
Extract the remaining nftnl rule parsing code from
nft-<family>.c sources into dedicated ones to complete the separation.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/nft-ruleparse.h')
-rw-r--r-- | iptables/nft-ruleparse.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/iptables/nft-ruleparse.h b/iptables/nft-ruleparse.h index 69e98817..fd083c08 100644 --- a/iptables/nft-ruleparse.h +++ b/iptables/nft-ruleparse.h @@ -109,6 +109,11 @@ struct nft_ruleparse_ops { struct iptables_command_state *cs); }; +extern struct nft_ruleparse_ops nft_ruleparse_ops_arp; +extern struct nft_ruleparse_ops nft_ruleparse_ops_bridge; +extern struct nft_ruleparse_ops nft_ruleparse_ops_ipv4; +extern struct nft_ruleparse_ops nft_ruleparse_ops_ipv6; + void *nft_create_match(struct nft_xt_ctx *ctx, struct iptables_command_state *cs, const char *name, bool reuse); |