From 66d6623137e0ce6965b733b0b343772cfaa5c15d Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 8 May 2018 13:50:10 +0200 Subject: tests: shell: add size to meters Otherwise, 65535 is used and testsuite reports dump mismatch. Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/sets/0022type_selective_flush_0 | 2 +- tests/shell/testcases/sets/dumps/0022type_selective_flush_0.nft | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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} } } -- cgit v1.2.3