From: Pablo Neira Ayuso Date: Tue, 8 May 2018 11:50:10 +0000 (+0200) Subject: tests: shell: add size to meters X-Git-Tag: v0.8.5~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=66d6623137e0ce6965b733b0b343772cfaa5c15d;p=thirdparty%2Fnftables.git tests: shell: add size to meters Otherwise, 65535 is used and testsuite reports dump mismatch. Signed-off-by: Pablo Neira Ayuso --- 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} } }