diff options
author | Florian Westphal <fw@strlen.de> | 2018-07-04 15:10:12 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-07-04 22:01:14 +0200 |
commit | 1dc9be8445265498a2db534ae254260b6e7dd75b (patch) | |
tree | 5bb5068752c72674fe7a1301d1e780e59f6d481c /src/rule.c | |
parent | 6cebd48bfc365b39cb65b6b46cee3f0482408202 (diff) |
rule: limit: don't print default burst value
limit http-traffic { rate 1/second } gets printed as
limit http-traffic { rate 1/second burst 5 packets }
caused tests/shell/run-tests.sh tests/shell/testcases/sets/0026named_limit_0
to return 'DUMP FAIL'.
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/rule.c')
-rw-r--r-- | src/rule.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1479,7 +1479,7 @@ static void obj_print_data(const struct obj *obj, nft_print(octx, "rate %s%" PRIu64 "/%s", inv ? "over " : "", obj->limit.rate, get_unit(obj->limit.unit)); - if (obj->limit.burst > 0) + if (obj->limit.burst > 0 && obj->limit.burst != 5) nft_print(octx, " burst %u packets", obj->limit.burst); break; |