From 8be6f7382fd216319c5cdb8f4c6c6295949b0f54 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Sat, 30 Oct 2010 23:14:37 +0200 Subject: Enforce handling IPv4 and IPv6 differently for hash:ip type. Use the newly added parser function ipset_parse_ip4_single6 instead of the generic ipset_parse_ip. --- src/ipset_hash_ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipset_hash_ip.c b/src/ipset_hash_ip.c index be64189..1d9a175 100644 --- a/src/ipset_hash_ip.c +++ b/src/ipset_hash_ip.c @@ -85,7 +85,7 @@ struct ipset_type ipset_hash_ip0 = { .dimension = IPSET_DIM_ONE, .elem = { [IPSET_DIM_ONE] = { - .parse = ipset_parse_ip, + .parse = ipset_parse_ip4_single6, .print = ipset_print_ip, .opt = IPSET_OPT_IP }, -- cgit v1.2.3