]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: shell: add testcase for reject expr
authorLiping Zhang <liping.zhang@spreadtrum.com>
Mon, 22 Aug 2016 15:43:53 +0000 (23:43 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 22 Aug 2016 16:27:43 +0000 (18:27 +0200)
commit81595230a20ebb500763a68dd1969a2a6db5a9de
tree784f5ec7986ecba387e5465351a41786ffe1614f
parentc12c09041ec55daa4c6562d61be81f4ecdfb7fd8
tests: shell: add testcase for reject expr

Reject expr is only valid in input/forward/output chain,
and if user can add reject expr in prerouting chain, kernel
panic will happen.

So add a simple test case to cover this situation.

Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/testcases/chains/0012reject_in_prerouting_1 [new file with mode: 0755]