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)
commitea2f7da1799bfc5a98b8e0c9e9cf1a7fedc32549
treec4afbc1bcd929f3897f13bb0a7ebacfd6554122c
parent874fb9e2ca949b443cc419a4f2227cafd4381d39
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