From: Pablo Neira Ayuso Date: Tue, 29 May 2018 11:52:08 +0000 (+0200) Subject: statement: don't print burst if equals 5 X-Git-Tag: v0.9.0~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3dddef928d80d;p=thirdparty%2Fnftables.git statement: don't print burst if equals 5 This is the default value we use if not specified, don't print it just like we do in iptables. Signed-off-by: Pablo Neira Ayuso --- diff --git a/src/statement.c b/src/statement.c index d2910018..fa0cd77c 100644 --- a/src/statement.c +++ b/src/statement.c @@ -358,7 +358,7 @@ static void limit_stmt_print(const struct stmt *stmt, struct output_ctx *octx) nft_print(octx, "limit rate %s%" PRIu64 "/%s", inv ? "over " : "", stmt->limit.rate, get_unit(stmt->limit.unit)); - if (stmt->limit.burst > 0) + if (stmt->limit.burst != 5) nft_print(octx, " burst %u packets", stmt->limit.burst); break;