]> git.ipfire.org Git - thirdparty/ipset.git/commit
add hash:ip,mark data type to ipset
authorVytas Dauksa <vytas.dauksa@smoothwall.net>
Tue, 17 Dec 2013 14:01:43 +0000 (14:01 +0000)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Wed, 8 Jan 2014 20:02:54 +0000 (21:02 +0100)
commit14ea38fca9e40df4f172a573c222591b5f3cc241
tree5f0e1cd46a19bbb6b54de73494971c35f4c329ae
parent8a88bdf50b448e221a8b0b6a5c8446ebafcefa19
add hash:ip,mark data type to ipset

Introduce packet mark support with new ip,mark hash set. This includes
userspace and kernelspace code, hash:ip,mark set tests and man page
updates.

The intended use of ip,mark set is similar to the ip:port type, but for
protocols which don't use a predictable port number. Instead of port
number it matches a firewall mark determined by a layer 7 filtering
program like opendpi.

As well as allowing or blocking traffic it will also be used for
accounting packets and bytes sent for each protocol.

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
31 files changed:
Make_global.am
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/uapi/linux/netfilter/ipset/ip_set.h
kernel/net/netfilter/ipset/Kbuild
kernel/net/netfilter/ipset/Kconfig
kernel/net/netfilter/ipset/ip_set_hash_ipmark.c [new file with mode: 0644]
lib/Makefile.am
lib/data.c
lib/debug.c
lib/ipset_hash_ipmark.c [new file with mode: 0644]
lib/libipset.map
lib/parse.c
lib/print.c
lib/session.c
src/ipset.8
tests/hash:ip,mark.t [new file with mode: 0644]
tests/hash:ip,mark.t.list0 [new file with mode: 0644]
tests/hash:ip,mark.t.list1 [new file with mode: 0644]
tests/hash:ip6,mark.t [new file with mode: 0644]
tests/hash:ip6,mark.t.list0 [new file with mode: 0644]
tests/hash:ip6,mark.t.list1 [new file with mode: 0644]
tests/ipmarkhash.t [new file with mode: 0644]
tests/ipmarkhash.t.list0 [new file with mode: 0644]
tests/ipmarkhash.t.list1 [new file with mode: 0644]
tests/resizet.sh
tests/runtest.sh
tests/setlist_resize.sh