]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xtables: Support nft suffix for arptables and ebtables
authorPhil Sutter <phil@nwl.cc>
Wed, 11 Jul 2018 10:09:05 +0000 (12:09 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 11 Jul 2018 10:32:13 +0000 (12:32 +0200)
Since the names without suffix clash with legacy tools, support the
suffixed versions as well to help distributions packaging for parallel
installation of both nft and legacy variants.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/Makefile.am
iptables/xtables-nft-multi.c

index 9e6f3f4be508ec5de973a1cae8abd18c8a85117c..800dd13a4f29a9ae4914d9cd44b161171be56300 100644 (file)
@@ -80,7 +80,9 @@ x_sbin_links  = iptables-nft iptables-nft-restore iptables-nft-save \
                ip6tables-nft ip6tables-nft-restore ip6tables-nft-save \
                iptables-translate ip6tables-translate \
                iptables-restore-translate ip6tables-restore-translate \
-               arptables ebtables xtables-monitor
+               arptables-nft arptables \
+               ebtables-nft ebtables \
+               xtables-monitor
 endif
 
 iptables-extensions.8: iptables-extensions.8.tmpl ../extensions/matches.man ../extensions/targets.man
index 187da81e9f59b0b55e9c894b71d6bfcae451e590..03690a56edb72ac15f05e1f08c444a6d625bb7e2 100644 (file)
@@ -31,8 +31,10 @@ static const struct subcommand multi_subcommands[] = {
        {"iptables-restore-translate",  xtables_ip4_xlate_restore_main},
        {"ip6tables-restore-translate", xtables_ip6_xlate_restore_main},
        {"arptables",                   xtables_arp_main},
+       {"arptables-nft",               xtables_arp_main},
        {"ebtables-translate",          xtables_eb_xlate_main},
        {"ebtables",                    xtables_eb_main},
+       {"ebtables-nft",                xtables_eb_main},
        {"xtables-monitor",             xtables_monitor_main},
        {NULL},
 };