summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/nft-f/0017ct_timeout_obj_0
blob: cfb789501beaf1d99d8631e394ce6c2eddb4ffd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

# NFT_TEST_REQUIRES(NFT_TEST_HAVE_cttimeout)

EXPECTED='table ip filter {
	ct timeout cttime{
		protocol tcp
		l3proto ip
		policy = { established : 123, close : 12 }
	}

	chain c {
		ct timeout set "cttime"
	}
}'

set -e
$NFT -f - <<< "$EXPECTED"