summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0060set_multistmt_1
Commit message (Collapse)AuthorAgeFilesLines
* tests: shell: add feature probe for sets with more than one elementFlorian Westphal2023-09-211-0/+2
| | | | | | | | | | Kernels < 5.11 can handle only one expression per element, e.g. its possible to attach a counter per key, or a rate limiter, or a quota, but not two at the same time. Add a probe file and skip the relevant tests if the feature is absent. Signed-off-by: Florian Westphal <fw@strlen.de>
* parser_bison: allow to use quota in setsPablo Neira Ayuso2023-03-011-0/+38
src: support for restoring element quota This patch allows you to restore quota in dynamic sets. table ip x { set y { type ipv4_addr size 65535 flags dynamic,timeout counter quota 500 bytes timeout 1h elements = { 8.8.8.8 counter packets 9 bytes 756 quota 500 bytes used 500 bytes timeout 1h expires 56m57s47ms } } chain z { type filter hook output priority filter; policy accept; update @y { ip daddr } counter packets 6 bytes 507 } } Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>