diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-05-08 13:50:10 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-05-08 14:26:37 +0200 |
commit | 66d6623137e0ce6965b733b0b343772cfaa5c15d (patch) | |
tree | d7fbda7702e3fa23b09cf5e6be3f99cdfb254372 /tests/shell/testcases | |
parent | a819871655d803ea139225ea05dbdf055758bf18 (diff) |
tests: shell: add size to meters
Otherwise, 65535 is used and testsuite reports dump mismatch.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases')
-rwxr-xr-x | tests/shell/testcases/sets/0022type_selective_flush_0 | 2 | ||||
-rw-r--r-- | tests/shell/testcases/sets/dumps/0022type_selective_flush_0.nft | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/shell/testcases/sets/0022type_selective_flush_0 b/tests/shell/testcases/sets/0022type_selective_flush_0 index 0c39cbad..a20a863a 100755 --- a/tests/shell/testcases/sets/0022type_selective_flush_0 +++ b/tests/shell/testcases/sets/0022type_selective_flush_0 @@ -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 diff --git a/tests/shell/testcases/sets/dumps/0022type_selective_flush_0.nft b/tests/shell/testcases/sets/dumps/0022type_selective_flush_0.nft index 3dd97602..58c213ff 100644 --- a/tests/shell/testcases/sets/dumps/0022type_selective_flush_0.nft +++ b/tests/shell/testcases/sets/dumps/0022type_selective_flush_0.nft @@ -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} } } |