diff options
author | Florian Westphal <fw@strlen.de> | 2025-04-08 16:21:31 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2025-06-22 21:40:36 +0200 |
commit | 8ff87c8fd483eb3fdab5839cccaf100b593fe92e (patch) | |
tree | 0164551e8546857f5cb240cd35c899429732321e /tests/shell/testcases/sets | |
parent | 6063a4644746d12bebb39f3ca93e76de6392f5ec (diff) |
src: print count variable in normal set listings
Also print the number of allocated set elements if the set provided
an upper size limit and there is at least one element.
Example:
table ip t {
set s {
type ipv4_addr
size 65535 # count 1
flags dynamic
counter
elements = { 1.1.1.1 counter packets 1 bytes 11 }
}
...
JSON output is unchanged as this only has informational purposes.
This change breaks tests, followup patch addresses this.
Suggested-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell/testcases/sets')
0 files changed, 0 insertions, 0 deletions