summaryrefslogtreecommitdiffstats
path: root/src/ipset_hash_net.c
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-08-31 15:56:34 +0200
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-08-31 15:56:34 +0200
commit20a52295775126d1bd5740b6543d1ea8ea239b1b (patch)
treeb6bbaa926241f9edf956938ac1ee062fc7f9b42c /src/ipset_hash_net.c
parent4c1941cdeae2d2a580585677565ed690af19279e (diff)
Propagate "expose userspace-relevant parts in ip_set.h" to ipset source
With the header file restructuring, the ipset userspace enums IPSET_DIM_* clash with the kernel ones. In this patch the userspace is converted to use the kernel part enums and thus we got rid of userspace enums IPSET_DIM_*.
Diffstat (limited to 'src/ipset_hash_net.c')
-rw-r--r--src/ipset_hash_net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipset_hash_net.c b/src/ipset_hash_net.c
index 665c398..587f891 100644
--- a/src/ipset_hash_net.c
+++ b/src/ipset_hash_net.c
@@ -76,7 +76,7 @@ struct ipset_type ipset_hash_net0 = {
.family = AF_INET46,
.dimension = IPSET_DIM_ONE,
.elem = {
- [IPSET_DIM_ONE] = {
+ [IPSET_DIM_ONE - 1] = {
.parse = ipset_parse_ipnet,
.print = ipset_print_ip,
.opt = IPSET_OPT_IP
@@ -128,7 +128,7 @@ struct ipset_type ipset_hash_net1 = {
.family = AF_INET46,
.dimension = IPSET_DIM_ONE,
.elem = {
- [IPSET_DIM_ONE] = {
+ [IPSET_DIM_ONE - 1] = {
.parse = ipset_parse_ip4_net6,
.print = ipset_print_ip,
.opt = IPSET_OPT_IP