xtables-nft-multi.c 1.92 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "xshared.h"

#include "xtables-multi.h"

static const struct subcommand multi_subcommands[] = {
	{"iptables-xml",		iptables_xml_main},
	{"xml",				iptables_xml_main},
	{"iptables",			xtables_ip4_main},
12
	{"iptables-nft",		xtables_ip4_main},
13
14
15
16
17
	{"main4",			xtables_ip4_main},
	{"save4",			xtables_ip4_save_main},
	{"restore4",			xtables_ip4_restore_main},
	{"iptables-save",		xtables_ip4_save_main},
	{"iptables-restore",		xtables_ip4_restore_main},
18
19
	{"iptables-nft-save",	xtables_ip4_save_main},
	{"iptables-nft-restore",	xtables_ip4_restore_main},
20
	{"ip6tables",			xtables_ip6_main},
21
	{"ip6tables-nft",		xtables_ip6_main},
22
23
24
25
26
	{"main6",			xtables_ip6_main},
	{"save6",			xtables_ip6_save_main},
	{"restore6",			xtables_ip6_restore_main},
	{"ip6tables-save",		xtables_ip6_save_main},
	{"ip6tables-restore",		xtables_ip6_restore_main},
27
28
	{"ip6tables-nft-save",	xtables_ip6_save_main},
	{"ip6tables-nft-restore",	xtables_ip6_restore_main},
29
30
31
32
	{"iptables-translate",		xtables_ip4_xlate_main},
	{"ip6tables-translate",		xtables_ip6_xlate_main},
	{"iptables-restore-translate",	xtables_ip4_xlate_restore_main},
	{"ip6tables-restore-translate",	xtables_ip6_xlate_restore_main},
33
	{"arptables",			xtables_arp_main},
34
35
36
37
38
39
40
41
42
43
44
45
46
	{"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},
	{"ebtables-save",		xtables_eb_save_main},
	{"ebtables-nft",		xtables_eb_main},
	{"ebtables-nft-restore",	xtables_eb_restore_main},
	{"ebtables-nft-save",		xtables_eb_save_main},
	{"xtables-monitor",		xtables_monitor_main},
47
48
49
50
51
52
53
	{NULL},
};

int main(int argc, char **argv)
{
	return subcmd_main(argc, argv, multi_subcommands);
}