Skip to content

Commit 21f4502

Browse files
Jozsef Kadlecsikkaber
authored andcommitted
netfilter: ipset: hash:net,port set type support
The module implements the hash:net,port type support in four flavours: for IPv4 and IPv6, both without and with timeout support. The elements are two dimensional: IPv4/IPv6 network address/prefix and protocol/port pairs. Signed-off-by: Jozsef Kadlecsik <[email protected]> Signed-off-by: Patrick McHardy <[email protected]>
1 parent b383702 commit 21f4502

File tree

3 files changed

+592
-0
lines changed

3 files changed

+592
-0
lines changed

net/netfilter/ipset/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,14 @@ config IP_SET_HASH_NET
9898

9999
To compile it as a module, choose M here. If unsure, say N.
100100

101+
config IP_SET_HASH_NETPORT
102+
tristate "hash:net,port set support"
103+
depends on IP_SET
104+
help
105+
This option adds the hash:net,port set type support, by which
106+
one can store IPv4/IPv6 network address/prefix and
107+
protocol/port pairs as elements in a set.
108+
109+
To compile it as a module, choose M here. If unsure, say N.
110+
101111
endif # IP_SET

net/netfilter/ipset/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ obj-$(CONFIG_IP_SET_HASH_IPPORT) += ip_set_hash_ipport.o
1818
obj-$(CONFIG_IP_SET_HASH_IPPORTIP) += ip_set_hash_ipportip.o
1919
obj-$(CONFIG_IP_SET_HASH_IPPORTNET) += ip_set_hash_ipportnet.o
2020
obj-$(CONFIG_IP_SET_HASH_NET) += ip_set_hash_net.o
21+
obj-$(CONFIG_IP_SET_HASH_NETPORT) += ip_set_hash_netport.o

0 commit comments

Comments
 (0)