Skip to content

Commit b383702

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

File tree

3 files changed

+471
-0
lines changed

3 files changed

+471
-0
lines changed

net/netfilter/ipset/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,13 @@ config IP_SET_HASH_IPPORTNET
8989

9090
To compile it as a module, choose M here. If unsure, say N.
9191

92+
config IP_SET_HASH_NET
93+
tristate "hash:net set support"
94+
depends on IP_SET
95+
help
96+
This option adds the hash:net set type support, by which
97+
one can store IPv4/IPv6 network address/prefix elements in a set.
98+
99+
To compile it as a module, choose M here. If unsure, say N.
100+
92101
endif # IP_SET

net/netfilter/ipset/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ obj-$(CONFIG_IP_SET_HASH_IP) += ip_set_hash_ip.o
1717
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
20+
obj-$(CONFIG_IP_SET_HASH_NET) += ip_set_hash_net.o

0 commit comments

Comments
 (0)