[PATCH 20/21] tests: add negation tests for libxt_statistic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Note: it is valid to check cb->invert before calling
xtables_option_parse.

Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx>
---
 tests/options-most.rules |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tests/options-most.rules b/tests/options-most.rules
index c243649..0e876e6 100644
--- a/tests/options-most.rules
+++ b/tests/options-most.rules
@@ -123,6 +123,10 @@
 -A matches
 -A matches -p tcp -m tcpmss --mss 5:65535
 -A matches
+-A matches -m statistic --mode random ! --probability 0.4
+-A matches
+-A matches -m statistic --mode nth ! --every 5 --packet 2
+-A matches
 -A matches -m time --timestart 01:02:03 --timestop 04:05:06 --monthdays 1,2,3,4,5 --weekdays Mon,Fri,Sun --datestart 2001-02-03T04:05:06 --datestop 2012-09-08T09:06:05 --localtz
 -A matches
 -A matches -m time --timestart 01:02:03 --timestop 04:05:06 --monthdays 1,2,3,4,5 --weekdays Mon,Fri,Sun --datestart 2001-02-03T04:05:06 --datestop 2012-09-08T09:06:05 --kerneltz
-- 
1.7.3.4

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux