diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-06-07 14:02:37 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-06-07 14:02:37 +0200 |
commit | 033e25a3ad215ee3f5a07f0a3315f74c4abfaced (patch) | |
tree | 09dd915a800c5276663d3688768e9cb960538515 /xtables-multi.c | |
parent | 5c8f5b60aa8e24da0bd25824f0f85bf7a4a39ea7 (diff) |
src: move all iptables pieces into a separate directory
(Unclutter top-level dir)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'xtables-multi.c')
-rw-r--r-- | xtables-multi.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/xtables-multi.c b/xtables-multi.c deleted file mode 100644 index 8014d5fb..00000000 --- a/xtables-multi.c +++ /dev/null @@ -1,41 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include "xshared.h" - -#include "xtables-multi.h" - -#ifdef ENABLE_IPV4 -#include "iptables-multi.h" -#endif - -#ifdef ENABLE_IPV6 -#include "ip6tables-multi.h" -#endif - -static const struct subcommand multi_subcommands[] = { -#ifdef ENABLE_IPV4 - {"iptables", iptables_main}, - {"main4", iptables_main}, - {"iptables-save", iptables_save_main}, - {"save4", iptables_save_main}, - {"iptables-restore", iptables_restore_main}, - {"restore4", iptables_restore_main}, -#endif - {"iptables-xml", iptables_xml_main}, - {"xml", iptables_xml_main}, -#ifdef ENABLE_IPV6 - {"ip6tables", ip6tables_main}, - {"main6", ip6tables_main}, - {"ip6tables-save", ip6tables_save_main}, - {"save6", ip6tables_save_main}, - {"ip6tables-restore", ip6tables_restore_main}, - {"restore6", ip6tables_restore_main}, -#endif - {NULL}, -}; - -int main(int argc, char **argv) -{ - return subcmd_main(argc, argv, multi_subcommands); -} |