summaryrefslogtreecommitdiffstats
path: root/src/ipset_hash_netport.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipset_hash_netport.c')
-rw-r--r--src/ipset_hash_netport.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ipset_hash_netport.c b/src/ipset_hash_netport.c
index 480dd84..acf4a29 100644
--- a/src/ipset_hash_netport.c
+++ b/src/ipset_hash_netport.c
@@ -70,12 +70,12 @@ struct ipset_type ipset_hash_netport1 = {
.family = AF_INET46,
.dimension = IPSET_DIM_TWO,
.elem = {
- [IPSET_DIM_ONE] = {
+ [IPSET_DIM_ONE - 1] = {
.parse = ipset_parse_ipnet,
.print = ipset_print_ip,
.opt = IPSET_OPT_IP
},
- [IPSET_DIM_TWO] = {
+ [IPSET_DIM_TWO - 1] = {
.parse = ipset_parse_proto_port,
.print = ipset_print_proto_port,
.opt = IPSET_OPT_PORT
@@ -144,12 +144,12 @@ struct ipset_type ipset_hash_netport2 = {
.family = AF_INET46,
.dimension = IPSET_DIM_TWO,
.elem = {
- [IPSET_DIM_ONE] = {
+ [IPSET_DIM_ONE - 1] = {
.parse = ipset_parse_ip4_net6,
.print = ipset_print_ip,
.opt = IPSET_OPT_IP
},
- [IPSET_DIM_TWO] = {
+ [IPSET_DIM_TWO - 1] = {
.parse = ipset_parse_proto_port,
.print = ipset_print_proto_port,
.opt = IPSET_OPT_PORT