diff options
author | Phil Sutter <phil@nwl.cc> | 2023-11-24 20:22:44 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2023-12-05 16:35:37 +0100 |
commit | 803c57c7c7ab7f76dba6016ed7ff4e6d8e296179 (patch) | |
tree | fe85a58ec984eadfffc12ae77c5eb763a33bf6cb /iptables/xshared.h | |
parent | e48eecc13b855c50261a7b37f3d7f9670ef653d4 (diff) |
ebtables: Make 'h' case just a call to print_help()
Move the special ebtables help parameter handling into its print_help()
function to prepare for it turning into a callback. Add new field 'argc'
to struct iptables_command_state to make this possible. It is actually
kind of consistent as it holds 'argv' already.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/xshared.h')
-rw-r--r-- | iptables/xshared.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/xshared.h b/iptables/xshared.h index 68acfb4b..de32198f 100644 --- a/iptables/xshared.h +++ b/iptables/xshared.h @@ -137,6 +137,7 @@ struct iptables_command_state { char *protocol; int proto_used; const char *jumpto; + int argc; char **argv; bool restore; }; |