[ipset-5: 8/9] Enforce handling IPv4 and IPv6 differently for hash:ip type.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use the newly added parser function ipset_parse_ip4_single6 instead
of the generic ipset_parse_ip.

Signed-off-by: Jozsef Kadlecsik <kadlec@xxxxxxxxxxxxxxxxx>
---
 src/ipset_hash_ip.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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
 		},

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux