]> granicus.if.org Git - ipset/commit
Exceptions support added to hash:*net* types
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 13 Jan 2012 21:52:44 +0000 (22:52 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 13 Jan 2012 21:52:44 +0000 (22:52 +0100)
commit24b35d0b8950407ce85eefef18576d54f1e2c20e
tree8ecba4e1c02fb03cfab8ae0f37ab60b7455c137f
parentdd71826fcfcfcc8c36f0508cc183dd222da40452
Exceptions support added to hash:*net* types

The "nomatch" keyword and option is added to the hash:*net* types,
by which one can add exception entries to sets. Example:

ipset create test hash:net
ipset add test 192.168.0/24
ipset add test 192.168.0/30 nomatch

In this case the IP addresses from 192.168.0/24 except 192.168.0/30
match the elements of the set.
27 files changed:
include/libipset/data.h
include/libipset/linux_ip_set.h
kernel/include/linux/netfilter/ipset/ip_set.h
kernel/include/linux/netfilter/ipset/ip_set_ahash.h
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
lib/data.c
lib/ipset_hash_ipportnet.c
lib/ipset_hash_net.c
lib/ipset_hash_netiface.c
lib/ipset_hash_netport.c
lib/parse.c
lib/print.c
lib/session.c
lib/types.c
src/ipset.8
tests/hash:ip,port,net.t
tests/hash:ip6,port,net6.t
tests/hash:net,iface.t
tests/hash:net,port.t
tests/hash:net.t
tests/hash:net6,port.t
tests/hash:net6.t
tests/ipportnethash.t
tests/nethash.t