selftests: netfilter: conntrack_resize.sh: extend resize test
authorFlorian Westphal <fw@strlen.de>
Fri, 27 Jun 2025 14:27:50 +0000 (16:27 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 14 Jul 2025 13:21:33 +0000 (15:21 +0200)
commitb08590559f4b6954f1bf2510445aba346044c91b
treeb3ffedc0356ba049f016931652fbc8953f4c3475
parent7727ec1523d7973defa1dff8f9c0aad288d04008
selftests: netfilter: conntrack_resize.sh: extend resize test

Extend the resize test:
 - continuously dump table both via /proc and ctnetlink interfaces while
   table is resized in a loop.
 - if socat is available, send udp packets in additon to ping requests.
 - increase/decrease the icmp and udp timeouts while resizes are happening.
   This makes sure we also exercise the 'ct has expired' check that happens
   on conntrack lookup.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tools/testing/selftests/net/netfilter/conntrack_resize.sh