diff options
author | Florian Westphal <fw@strlen.de> | 2018-04-13 17:46:27 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-04-13 20:09:00 +0200 |
commit | 5024efe926378e096ee496c93d0779c0f649f35c (patch) | |
tree | 3b50c45ed28cfc647725f507f6e6cd2ea9ccf0c8 /extensions | |
parent | ce3c7808c2110d8b587cc5c54951232e50fe0636 (diff) |
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 <fw@strlen.de>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/libebt_limit.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |