diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-09-19 15:25:43 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-09-20 17:52:13 +0200 |
commit | 7360ab610164c7457b1024419ee046a4d05a6e2f (patch) | |
tree | 1b3443e6ce5174c84d2436d5a1f89ba5cd02459e /src | |
parent | b450c12223c4fc3fd8389809dace7dbccd513e95 (diff) |
limit: display default burst when listing ruleset
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')
-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 72173949..66424eb4 100644 --- a/src/statement.c +++ b/src/statement.c @@ -486,9 +486,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); |