From: Jozsef Kadlecsik Date: Sat, 30 Oct 2010 21:14:37 +0000 (+0200) Subject: Enforce handling IPv4 and IPv6 differently for hash:ip type. X-Git-Tag: v5.0-pre10~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8be6f7382fd216319c5cdb8f4c6c6295949b0f54;p=ipset 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. --- 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 },