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/xtables-nft-multi.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'iptables/xtables-nft-multi.c') diff --git a/iptables/xtables-nft-multi.c b/iptables/xtables-nft-multi.c index d9cca088..e2b7c641 100644 --- a/iptables/xtables-nft-multi.c +++ b/iptables/xtables-nft-multi.c @@ -32,6 +32,10 @@ static const struct subcommand multi_subcommands[] = { {"ip6tables-restore-translate", xtables_ip6_xlate_restore_main}, {"arptables", xtables_arp_main}, {"arptables-nft", xtables_arp_main}, + {"arptables-restore", xtables_arp_restore_main}, + {"arptables-nft-restore", xtables_arp_restore_main}, + {"arptables-save", xtables_arp_save_main}, + {"arptables-nft-save", xtables_arp_save_main}, {"ebtables-translate", xtables_eb_xlate_main}, {"ebtables", xtables_eb_main}, {"ebtables-restore", xtables_eb_restore_main}, -- cgit v1.2.3