]> git.ipfire.org Git - thirdparty/ipset.git/commit
hash:net,iface type introduced
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 30 May 2011 15:48:01 +0000 (17:48 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 30 May 2011 19:30:10 +0000 (21:30 +0200)
commit418a3a4f4d4e38abd1d691f81f2445590f02ecaf
treea41ed16b366c854786eea8f3da5c80fa50636dc6
parent4e21d6b5ce623f7601a872b94f3b88105356e2d3
hash:net,iface type introduced

The hash:net,iface type makes possible to store network address and
interface name pairs in a set. It's mostly suitable for egress
and ingress filtering. Examples:

# ipset create test hash:net,iface
# ipset add test 192.168.0.0/16,eth0
# ipset add test 192.168.0.0/24,eth1
21 files changed:
include/libipset/data.h
include/libipset/linux_ip_set.h
include/libipset/parse.h
include/libipset/print.h
kernel/include/linux/netfilter/ipset/ip_set.h
kernel/include/linux/netfilter/ipset/ip_set_ahash.h
kernel/net/netfilter/ipset/Kbuild
kernel/net/netfilter/ipset/ip_set_hash_netiface.c [new file with mode: 0644]
lib/data.c
lib/debug.c
lib/parse.c
lib/print.c
lib/session.c
src/Makefile.am
src/ipset.8
src/ipset.c
src/ipset_hash_netiface.c [new file with mode: 0644]
tests/hash:net,iface.t [new file with mode: 0644]
tests/hash:net,iface.t.list0 [new file with mode: 0644]
tests/hash:net,iface.t.list2 [new file with mode: 0644]
tests/runtest.sh