]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: netfilter: add test case for conntrack helper assignment
authorFlorian Westphal <fw@strlen.de>
Mon, 22 Jun 2020 08:28:32 +0000 (10:28 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 24 Jun 2020 22:50:31 +0000 (00:50 +0200)
commit8da364f7bb2b2d3566d40e8fb1cd04d35e80da91
treeb9a0ebb008803d2ce88616f8a7ae7e68b95188ec
parent6be9f976d6f0e9448bedec6e5ff70638a2c6b75f
selftests: netfilter: add test case for conntrack helper assignment

check that 'nft ... ct helper set <foo>' works:
 1. configure ftp helper via nft and assign it to
    connections on port 2121
 2. check with 'conntrack -L' that the next connection
    has the ftp helper attached to it.

Also add a test for auto-assign (old behaviour).

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tools/testing/selftests/netfilter/Makefile
tools/testing/selftests/netfilter/nft_conntrack_helper.sh [new file with mode: 0755]