From 63c3dae305cf27cabe5577da5599ddc26f4af36c Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Mon, 6 Aug 2018 17:21:57 +0200 Subject: xtables: Implement arptables-{save,restore} This adds C implementations for arptables-save and -restore in compat layer based on the two perl scripts in legacy arptables repository. To share common code, introduce nft_init_arp() analogous to nft_init_eb() introduced earlier. Signed-off-by: Phil Sutter Signed-off-by: Florian Westphal --- iptables/nft.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'iptables/nft.h') diff --git a/iptables/nft.h b/iptables/nft.h index d16ded09..eb14e908 100644 --- a/iptables/nft.h +++ b/iptables/nft.h @@ -145,7 +145,8 @@ const char *nft_strerror(int err); /* For xtables.c */ int do_commandx(struct nft_handle *h, int argc, char *argv[], char **table, bool restore); /* For xtables-arptables.c */ -int do_commandarp(struct nft_handle *h, int argc, char *argv[], char **table); +int nft_init_arp(struct nft_handle *h, const char *pname); +int do_commandarp(struct nft_handle *h, int argc, char *argv[], char **table, bool restore); /* For xtables-eb.c */ int nft_init_eb(struct nft_handle *h, const char *pname); int ebt_get_current_chain(const char *chain); -- cgit v1.2.3