]> git.ipfire.org Git - thirdparty/iptables.git/commit
ip(6)tables-multi: unify subcommand handling
authorStefan Tomanek <stefan.tomanek@wertarbyte.de>
Mon, 7 Mar 2011 17:30:27 +0000 (18:30 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Mon, 7 Mar 2011 19:07:55 +0000 (20:07 +0100)
commit9cc4f24e72f87ca191c2e723e7cd293f6477481c
tree04d0e4229715449f1c5786535d14e7142c809e24
parentf96cb8094ceffb9ffe8e94b4ee6800aa581dd021
ip(6)tables-multi: unify subcommand handling

I found the subcommand handling and naming done by iptables-multi and
ip6tables-multi very confusing and complicated; this patch
reorganizes the subcommands in a single table, allowing both variants
of them to be used (iptables/main) and also prints a list of the
allowed commands if an unknown command is entered by the user.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
ip6tables-multi.c
iptables-multi.c
xshared.c
xshared.h