]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: add size to meters
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 8 May 2018 11:50:10 +0000 (13:50 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 8 May 2018 12:26:37 +0000 (14:26 +0200)
Otherwise, 65535 is used and testsuite reports dump mismatch.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/testcases/sets/0022type_selective_flush_0
tests/shell/testcases/sets/dumps/0022type_selective_flush_0.nft

index 0c39cbad9352a8a0124d4d959f57d9b5fa47c3c3..a20a863a696649f35f547ead67c8a3ee51f97eb9 100755 (executable)
@@ -8,7 +8,7 @@ add table t
 add chain t c
 add set t s {type ipv4_addr;}
 add map t m {type ipv4_addr : inet_service;}
-add rule t c tcp dport 80 meter f {ip saddr limit rate 10/second}
+add rule t c tcp dport 80 meter f size 1024 {ip saddr limit rate 10/second}
 "
 
 $NFT -f - <<< $RULESET
index 3dd97602268c7d0d3d666fc49b51234b3d5abbc0..58c213ffd582ca83f00298da5c595415c5665676 100644 (file)
@@ -8,6 +8,6 @@ table ip t {
        }
 
        chain c {
-               tcp dport http meter f { ip saddr limit rate 10/second} 
+               tcp dport http meter f size 1024 { ip saddr limit rate 10/second} 
        }
 }