]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
statement: connlimit: remove extra whitespace in print function
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 2 Jun 2021 23:25:32 +0000 (01:25 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 3 Jun 2021 23:12:13 +0000 (01:12 +0200)
Instead of:

 ct count 2  accept
           ^^

simply print:

 ct count 2 accept

While at it, add incomplete reference 'ct count' to manpage.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
doc/payload-expression.txt
src/statement.c

index a338dcf044505393b594d213d87e38ef403a143d..bc31e81c19a749f589441315b1d4b9ec64b9743b 100644 (file)
@@ -699,7 +699,7 @@ is true for the *zone*, if a direction is given, the zone is only matched if the
 zone id is tied to the given direction. +
 
 [verse]
-*ct* {*state* | *direction* | *status* | *mark* | *expiration* | *helper* | *label*}
+*ct* {*state* | *direction* | *status* | *mark* | *expiration* | *helper* | *label* | *count*}
 *ct* [*original* | *reply*] {*l3proto* | *protocol* | *bytes* | *packets* | *avgpkt* | *zone* | *id*}
 *ct* {*original* | *reply*} {*proto-src* | *proto-dst*}
 *ct* {*original* | *reply*} {*ip* | *ip6*} {*saddr* | *daddr*}
index f7f1c0c4d553ebaba3cf200c2eebfa65d8676694..7537c07f495c502f763373e0e3c40da3d03f6112 100644 (file)
@@ -201,7 +201,7 @@ struct stmt *meter_stmt_alloc(const struct location *loc)
 
 static void connlimit_stmt_print(const struct stmt *stmt, struct output_ctx *octx)
 {
-       nft_print(octx, "ct count %s%u ",
+       nft_print(octx, "ct count %s%u",
                  stmt->connlimit.flags ? "over " : "", stmt->connlimit.count);
 }