]> granicus.if.org Git - ipset/commitdiff
Enforce handling IPv4 and IPv6 differently for hash:ip type.
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Sat, 30 Oct 2010 21:14:37 +0000 (23:14 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Sat, 30 Oct 2010 21:14:37 +0000 (23:14 +0200)
Use the newly added parser function ipset_parse_ip4_single6 instead
of the generic ipset_parse_ip.

src/ipset_hash_ip.c

index be641890bdfe92bf56e8d8c6698846a28bad5532..1d9a175ec71d694164b3041026909e48915ae64c 100644 (file)
@@ -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
                },