[PATCH 7/7] ebtables: better error message when -j is missing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



	~# 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@xxxxxxx>
---
 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");
 			}
-- 
2.42.1




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux