summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiping Zhang <liping.zhang@spreadtrum.com>2016-07-20 20:53:10 +0800
committerPablo Neira Ayuso <pablo@netfilter.org>2016-07-20 19:30:26 +0200
commit9850680391f75da5d058b68283d52c1d281849a1 (patch)
treedc6659b8d9443d8dfcefd5fa421934594b8553a8
parentf280adca86dfb8ba4d5a3d5a309f9252cc02f2ca (diff)
extensions: libxt_NFLOG: add unit test to cover nflog-size with zero
"--nflog-size 0" is valid and we must display it appropriately. Suggested-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--extensions/libxt_NFLOG.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/libxt_NFLOG.t b/extensions/libxt_NFLOG.t
index 78076b56..933fa221 100644
--- a/extensions/libxt_NFLOG.t
+++ b/extensions/libxt_NFLOG.t
@@ -7,6 +7,7 @@
-j NFLOG --nflog-range 4294967295;=;OK
-j NFLOG --nflog-range 4294967296;;FAIL
-j NFLOG --nflog-range -1;;FAIL
+-j NFLOG --nflog-size 0;=;OK
-j NFLOG --nflog-size 1;=;OK
-j NFLOG --nflog-size 4294967295;=;OK
-j NFLOG --nflog-size 4294967296;;FAIL