tests: shell: update packetpath/flowtables after flow teardown changes
Pablo Neira Ayuso
maintainerPATCH 1/1 tests: shell: update packetpath/flowtables after flow teardown changes
Update timeout according to:
("netfilter: flowtable: infer TCP state and timeout before flow teardown")
which sets TCP state to established and it uses unack timeout as specified by nf_conntrack_tcp_timeout_unacknowledged.
Signed-off-by Pablo Neira Ayuso <[email protected]>
---
to be applied once kernel patch:
("netfilter: flowtable: infer TCP state and timeout before flow teardown")
reaches upstream.
tests/shell/testcases/packetpath/flowtables | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tests/shell/testcases/packetpath/flowtables +2 -2
@@ -70,7 +70,7 @@ ip netns exec $R sysctl -w net.netfilter.nf_flowtable_tcp_timeout=5 || { echo "E: set net.netfilter.nf_flowtable_tcp_timeout fail, skipping" >&2 exit 77 } -ip netns exec $R sysctl -w net.netfilter.nf_conntrack_tcp_timeout_established=86400 || { +ip netns exec $R sysctl -w net.netfilter.nf_conntrack_tcp_timeout_unacknowledged=250 || { echo "E: set net.netfilter.nf_conntrack_tcp_timeout_established fail, skipping" >&2 exit 77
@@ -85,7 +85,7 @@ ip netns exec $R grep 'OFFLOAD' /proc/net/nf_conntrack || { echo "check [OFFLO ip netns exec $R cat /proc/net/nf_conntrack sleep 6 ip netns exec $R grep 'OFFLOAD' /proc/net/nf_conntrack && { echo "CT OFFLOAD timeout, fail back to classical path (failed)"; exit 1; } -ip netns exec $R grep '8639[0-9]' /proc/net/nf_conntrack || { echo "check nf_conntrack_tcp_timeout_established (failed)"; exit 1; } +ip netns exec $R grep '24[0-9].*ESTABLISHED' /proc/net/nf_conntrack || { echo "check ESTABLISHED and nf_conntrack_tcp_timeout_unack (failed)"; exit 1; } ip netns exec $C echo "send sth" >> pipefile ip netns exec $R grep 'OFFLOAD' /proc/net/nf_conntrack || { echo "traffic seen, back to OFFLOAD path (failed)"; exit 1; } ip netns exec $C sleep 3
Signature · 1 line
2.30.2