diff options
author | Florian Westphal <fw@strlen.de> | 2018-05-02 14:50:12 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-05-02 16:43:38 +0200 |
commit | 2cced3146918163c383432fa40488280f3f87371 (patch) | |
tree | d60efb1a96f3dbbc5f33eb6bfb4da67755ea2070 /tests/py | |
parent | a502ba00e44a03cbce9b5769274e1b604d3f08ad (diff) |
meter: enforce presence of a max size
meters are updated dynamically, so we don't know in advance
how large this structure can be.
Add a 'size' keyword to specifiy an upper limit and update
the old syntax to assume a default max value of 65535.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py')
-rw-r--r-- | tests/py/ip/flowtable.t | 2 | ||||
-rw-r--r-- | tests/py/ip6/flowtable.t | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/py/ip/flowtable.t b/tests/py/ip/flowtable.t index 4427fab8..7a68788a 100644 --- a/tests/py/ip/flowtable.t +++ b/tests/py/ip/flowtable.t @@ -2,4 +2,4 @@ *ip;test-ip;input -meter xyz { ip saddr timeout 30s counter};ok +meter xyz { ip saddr timeout 30s counter};ok;meter xyz size 65535 { ip saddr timeout 30s counter} diff --git a/tests/py/ip6/flowtable.t b/tests/py/ip6/flowtable.t index 5c048935..d89e90c3 100644 --- a/tests/py/ip6/flowtable.t +++ b/tests/py/ip6/flowtable.t @@ -2,5 +2,5 @@ *ip6;test-ip6;input -meter acct_out { meta iif . ip6 saddr timeout 600s counter };ok;meter acct_out { iif . ip6 saddr timeout 10m counter} -meter acct_out { ip6 saddr . meta iif timeout 600s counter };ok;meter acct_out { ip6 saddr . iif timeout 10m counter} +meter acct_out { meta iif . ip6 saddr timeout 600s counter };ok;meter acct_out size 65535 { iif . ip6 saddr timeout 10m counter} +meter acct_out { ip6 saddr . meta iif timeout 600s counter };ok;meter acct_out size 65535 { ip6 saddr . iif timeout 10m counter} |