diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-09-19 15:25:43 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-11-03 12:23:37 +0100 |
commit | 2837ca31aff94022d453a2126710edf51d53bad5 (patch) | |
tree | d27695288b84728e67fa0df3cd712e69b7a88c5c /src/statement.c | |
parent | c6b749958d54ff74af39e0271b5f615dc14f743c (diff) |
limit: display default burst when listing ruleset
commit 7360ab610164c7457b1024419ee046a4d05a6e2f upstream.
Default burst for limit is 5 for historical reasons but it is not
displayed when listing the ruleset.
Update listing to display the default burst to disambiguate.
man nft(8) has been recently updated to document this, no action in this
front is therefore required.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/statement.c')
-rw-r--r-- | src/statement.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/statement.c b/src/statement.c index eafc51c4..c15c027f 100644 --- a/src/statement.c +++ b/src/statement.c @@ -455,9 +455,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 && stmt->limit.burst != 5) - nft_print(octx, " burst %u packets", - stmt->limit.burst); + nft_print(octx, " burst %u packets", stmt->limit.burst); break; case NFT_LIMIT_PKT_BYTES: data_unit = get_rate(stmt->limit.rate, &rate); |