summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2013-07-20 16:44:42 +0200
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2013-07-22 11:26:25 +0200
commit4861598047cb8503f09586d61c980578aa56ce69 (patch)
treec87c926c3d64017102e54d1e66b4d97fe2d5201e /lib
parent6d08c3b300e97e1b334f84a2eef4c9af190a51d9 (diff)
Consistent userspace testing with nomatch flag
The "nomatch" commandline flag should invert the matching at testing, similarly to the --return-nomatch flag of the "set" match of iptables. Until now it worked with the elements with "nomatch" flag only. From now on it works with elements without the flag too, i.e: # ipset n test hash:net # ipset a test 10.0.0.0/24 nomatch # ipset t test 10.0.0.1 10.0.0.1 is NOT in set test. # ipset t test 10.0.0.1 nomatch 10.0.0.1 is in set test. # ipset a test 192.168.0.0/24 # ipset t test 192.168.0.1 192.168.0.1 is in set test. # ipset t test 192.168.0.1 nomatch 192.168.0.1 is NOT in set test. Before the patch the results were ... # ipset t test 192.168.0.1 192.168.0.1 is in set test. # ipset t test 192.168.0.1 nomatch 192.168.0.1 is in set test.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions