]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
tests: add negation tests for libxt_statistic
authorJan Engelhardt <jengelh@medozas.de>
Sun, 21 Aug 2011 10:46:08 +0000 (12:46 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Sun, 21 Aug 2011 10:46:08 +0000 (12:46 +0200)
Note: it is valid to check cb->invert before calling
xtables_option_parse.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
tests/options-most.rules

index c243649928887552a6520076f65745165727e3dd..0e876e651a32df6bdd1d43605253f872f577c52b 100644 (file)
 -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