summaryrefslogtreecommitdiffstats
path: root/iptables/ip6tables.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2023-11-19 12:23:47 +0100
committerPhil Sutter <phil@nwl.cc>2023-12-05 16:35:37 +0100
commit6e870112174289840867605a245ea07d5f704e44 (patch)
tree9b2924bfa63623ec8790daf8914fb6d65cf06a78 /iptables/ip6tables.c
parente224f0b10ef01e3e2081054e7fa4f64601726646 (diff)
xshared: Introduce print_help callback (again)
Prep work for ebtables parser to use do_parse(). Adding more special casing to xtables_printhelp() causes a mess, so work with a callback again. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/ip6tables.c')
-rw-r--r--iptables/ip6tables.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/ip6tables.c b/iptables/ip6tables.c
index 96603756..4b5d4ac6 100644
--- a/iptables/ip6tables.c
+++ b/iptables/ip6tables.c
@@ -671,6 +671,7 @@ int do_command6(int argc, char *argv[], char **table,
.option_name = ip46t_option_name,
.option_invert = ip46t_option_invert,
.command_default = command_default,
+ .print_help = xtables_printhelp,
};
struct xt_cmd_parse p = {
.table = *table,