6 int iptables_main(int argc, char **argv);
7 int iptables_save_main(int argc, char **argv);
8 int iptables_restore_main(int argc, char **argv);
9 int iptables_xml_main(int argc, char **argv);
11 int main(int argc, char **argv) {
15 fprintf(stderr, "no argv[0]?");
18 progname = basename(argv[0]);
20 if (!strcmp(progname, "iptables"))
21 return iptables_main(argc, argv);
23 if (!strcmp(progname, "iptables-save"))
24 return iptables_save_main(argc, argv);
26 if (!strcmp(progname, "iptables-restore"))
27 return iptables_restore_main(argc, argv);
29 if (!strcmp(progname, "iptables-xml"))
30 return iptables_xml_main(argc, argv);
32 fprintf(stderr, "iptables multi-purpose version: unknown applet name %s\n", progname);