]> 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)
commit7dc4c57781c16a4712bc23e50e73d2d91e8a1be0
treeb9a0ebb008803d2ce88616f8a7ae7e68b95188ec
parentd5fd7b31f939b6d1e0caa1475ba9add2f9ac0275
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]