From 881cb4e8e4a489245367c292940d8975b11b8591 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 13 Nov 2023 11:38:32 +0100 Subject: ebtables: better error message when -j is missing ~# ebtables -t broute -A BROUTING -i xyz0 --mark-set 0 Unknown argument: don't forget the -t option. But I have -t already! `t->name` is the target name, not a table name (there is no built-in table "standard"), so we need to show -j, not -t. Signed-off-by: Jan Engelhardt --- ebtables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebtables.c b/ebtables.c index c1f5c2b..d0d206b 100644 --- a/ebtables.c +++ b/ebtables.c @@ -1086,7 +1086,7 @@ big_iface_length: ebt_print_error2("Unknown argument: '%s'", argv[optind - 1], (char)optopt, (char)c); else if (w == NULL) { if (!strcmp(t->name, "standard")) - ebt_print_error2("Unknown argument: don't forget the -t option"); + ebt_print_error2("Unknown argument: don't forget the -j option"); else ebt_print_error2("Target-specific option does not correspond with specified target"); } -- cgit v1.2.3