From 4c923250269f9ef4a7b4235f4dc127b04932a8eb Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 21 Apr 2023 15:52:14 +0200 Subject: nft: ruleparse: Create family-specific source files Extract the remaining nftnl rule parsing code from nft-.c sources into dedicated ones to complete the separation. Signed-off-by: Phil Sutter --- iptables/nft-ruleparse.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'iptables/nft-ruleparse.h') 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); -- cgit v1.2.1