Hann-Huei Chiou | e8665f8 | 2007-10-31 11:48:04 +0000 | [diff] [blame] | 1 | #include <stdio.h> |
| 2 | #include <stdlib.h> |
| 3 | #include <string.h> |
Stefan Tomanek | 9cc4f24 | 2011-03-07 18:30:27 +0100 | [diff] [blame] | 4 | #include "xshared.h" |
Hann-Huei Chiou | e8665f8 | 2007-10-31 11:48:04 +0000 | [diff] [blame] | 5 | |
| 6 | int ip6tables_main(int argc, char **argv); |
| 7 | int ip6tables_save_main(int argc, char **argv); |
| 8 | int ip6tables_restore_main(int argc, char **argv); |
| 9 | |
Stefan Tomanek | 9cc4f24 | 2011-03-07 18:30:27 +0100 | [diff] [blame] | 10 | static const struct subcommand multi6_subcommands[] = { |
| 11 | {"ip6tables", ip6tables_main}, |
| 12 | {"main", ip6tables_main}, |
| 13 | {"ip6tables-save", ip6tables_save_main}, |
| 14 | {"save", ip6tables_save_main}, |
| 15 | {"ip6tables-restore", ip6tables_restore_main}, |
| 16 | {"restore", ip6tables_restore_main}, |
| 17 | {NULL}, |
| 18 | }; |
| 19 | |
Jan Engelhardt | de054f7 | 2009-07-25 14:28:07 +0200 | [diff] [blame] | 20 | int main(int argc, char **argv) |
| 21 | { |
Stefan Tomanek | 9cc4f24 | 2011-03-07 18:30:27 +0100 | [diff] [blame] | 22 | return subcmd_main(argc, argv, multi6_subcommands); |
Hann-Huei Chiou | e8665f8 | 2007-10-31 11:48:04 +0000 | [diff] [blame] | 23 | } |