From 67120c6224470998a5f772a8e1e3ebda3203aade Mon Sep 17 00:00:00 2001 From: xchaos Date: Thu, 14 Aug 2014 18:57:03 +0000 Subject: [PATCH] more IPs allowed in identical IPv6 uplink network git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@247 251d49ef-1d17-4917-a970-b30cf55b089b --- parsehosts.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/parsehosts.c b/parsehosts.c index 27d378e..1e0c65c 100644 --- a/parsehosts.c +++ b/parsehosts.c @@ -126,7 +126,7 @@ void parse_and_append_ip(char *str, struct IP *listhead) { concatenate(ip6prefix,ip6range,ptr); ip6range=ptr; - if_exists(ip, ips, eq(ip->addr,ip6range)); + if_exists(ip, ips, eq(ip->addr,ip6range)); /* check - allocated range must be unique */ else { TheIP(ip6range, FALSE); @@ -149,11 +149,7 @@ void parse_and_append_ip(char *str, struct IP *listhead) { concatenate(ip6prefix,ip6uplink,ptr); ip6uplink=ptr; - if_exists(ip, ips, eq(ip->addr,ip6uplink)); - else - { - TheIP(ip6uplink, FALSE); - } + TheIP(ip6uplink, FALSE); /* always new IP - more IPs in single uplink network */ ip->name = ip6uplink; ip->keyword = defaultkeyword; /* settings for default keyword */ if(lmsid) -- 2.30.2