]> git.ipfire.org Git - thirdparty/ipset.git/commit
Support to match elements marked with "nomatch" in hash:*net* sets
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 21 Sep 2012 19:03:24 +0000 (21:03 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 21 Sep 2012 19:03:24 +0000 (21:03 +0200)
commit3a3794573386d0cb2930a9daad5615036c06f4e2
tree52dc8066bff6301af9910a47f8e235336f77e8a8
parent3578220cf27c3e7017dd8af6b17c08218cf632d0
Support to match elements marked with "nomatch" in hash:*net* sets

Exceptions can now be matched and we can branch according to the
possible cases:

a. match in the set if the element is not flagged as "nomatch"
b. match in the set if the element is flagged with "nomatch"
c. no match

i.e.

iptables ... -m set --match-set ... -j ...
iptables ... -m set --match-set ... --nomatch-entries -j ...
...
include/libipset/linux_ip_set.h
kernel/include/linux/netfilter/ipset/ip_set.h
kernel/net/netfilter/ipset/ip_set_core.c
kernel/net/netfilter/ipset/ip_set_hash_ipportnet.c
kernel/net/netfilter/ipset/ip_set_hash_net.c
kernel/net/netfilter/ipset/ip_set_hash_netiface.c
kernel/net/netfilter/ipset/ip_set_hash_netport.c
kernel/net/netfilter/xt_set.c
tests/iptables.sh
tests/match_flags.t [new file with mode: 0644]
tests/runtest.sh