]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: netfilter: extend nfqueue test case
authorFlorian Westphal <fw@strlen.de>
Fri, 9 Oct 2020 11:58:34 +0000 (13:58 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 11 Oct 2020 23:59:40 +0000 (01:59 +0200)
commit86a2946344d12a7a8d1b72ed146a6edf795cd055
treec4afbc1bcd929f3897f13bb0a7ebacfd6554122c
parent1582f31c4f6b2a3d1abc43a3682f53532a720460
selftests: netfilter: extend nfqueue test case

add a test with re-queueing: usespace doesn't pass accept verdict,
but tells to re-queue to another nf_queue instance.

Also, make the second nf-queue program use non-gso mode, kernel will
have to perform software segmentation.

Lastly, do not queue every packet, just one per second, and add delay
when re-injecting the packet to the kernel.

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