diff options
author | Stéphane Veyret <sveyret@gmail.com> | 2019-07-09 15:02:09 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-07-16 21:26:52 +0200 |
commit | 1dd08fcfa07a4e5bacc14b4e4a27ed64581f2e41 (patch) | |
tree | 71cd776ee6b257d9a0cbefec922165d8c93cbe9b /tests/shell/testcases/nft-f/0018ct_expectation_obj_0 | |
parent | 543e7f405e3dc502ef0a69f0b85a745bdbc998ee (diff) |
src: add ct expectations support
This modification allow to directly add/list/delete expectations.
Signed-off-by: Stéphane Veyret <sveyret@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/nft-f/0018ct_expectation_obj_0')
-rwxr-xr-x | tests/shell/testcases/nft-f/0018ct_expectation_obj_0 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/shell/testcases/nft-f/0018ct_expectation_obj_0 b/tests/shell/testcases/nft-f/0018ct_expectation_obj_0 new file mode 100755 index 00000000..eb9df3ce --- /dev/null +++ b/tests/shell/testcases/nft-f/0018ct_expectation_obj_0 @@ -0,0 +1,18 @@ +#!/bin/bash + +EXPECTED='table ip filter { + ct expectation ctexpect{ + protocol tcp + dport 9876 + timeout 1m + size 12 + l3proto ip + } + + chain c { + ct expectation set "ctexpect" + } +}' + +set -e +$NFT -f - <<< $EXPECTED |