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
);
10 int main(int argc
, char **argv
) {
14 fprintf(stderr
, "no argv[0]?");
17 progname
= basename(argv
[0]);
19 if (!strcmp(progname
, "iptables"))
20 return iptables_main(argc
, argv
);
22 if (!strcmp(progname
, "iptables-save"))
23 return iptables_save_main(argc
, argv
);
25 if (!strcmp(progname
, "iptables-restore"))
26 return iptables_restore_main(argc
, argv
);
28 fprintf(stderr
, "iptables multi-purpose version: unknown applet name %s\n", progname
);