diff options
author | Jan Engelhardt <jengelh@inai.de> | 2023-11-13 11:38:32 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@inai.de> | 2023-11-13 11:41:13 +0100 |
commit | 881cb4e8e4a489245367c292940d8975b11b8591 (patch) | |
tree | fe007e51c443de3146d259337ce0078f63269203 | |
parent | f5cc74be6a48f77a69e72f31bdf90e40002a196f (diff) |
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 <jengelh@inai.de>
-rw-r--r-- | ebtables.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } |