From 5024efe926378e096ee496c93d0779c0f649f35c Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Fri, 13 Apr 2018 17:46:27 +0200 Subject: libebt_limit: print 'minute' and 'seconds', not 'min' and 'secs' nft xlate needs the full name, for ebtables it makes no difference, 'minute' would work too. Also fixup ' ' placement in xlate. Signed-off-by: Florian Westphal --- extensions/libebt_limit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extensions') diff --git a/extensions/libebt_limit.c b/extensions/libebt_limit.c index 75c066bf..e8da2a15 100644 --- a/extensions/libebt_limit.c +++ b/extensions/libebt_limit.c @@ -133,8 +133,8 @@ static struct rates g_rates[] = { { "day", EBT_LIMIT_SCALE*24*60*60 }, { "hour", EBT_LIMIT_SCALE*60*60 }, - { "min", EBT_LIMIT_SCALE*60 }, - { "sec", EBT_LIMIT_SCALE } + { "minute", EBT_LIMIT_SCALE*60 }, + { "second", EBT_LIMIT_SCALE } }; static void print_rate(uint32_t period) @@ -179,7 +179,7 @@ static int brlimit_xlate(struct xt_xlate *xl, xt_xlate_add(xl, "limit rate "); print_rate_xlate(xl, r->avg); if (r->burst != 0) - xt_xlate_add(xl, " burst %u packets", r->burst); + xt_xlate_add(xl, "burst %u packets ", r->burst); return 1; } -- cgit v1.2.3