From: xchaos Date: Thu, 14 Aug 2014 18:57:03 +0000 (+0000) Subject: more IPs allowed in identical IPv6 uplink network X-Git-Url: http://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=commitdiff_plain;h=67120c6224470998a5f772a8e1e3ebda3203aade more IPs allowed in identical IPv6 uplink network git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@247 251d49ef-1d17-4917-a970-b30cf55b089b --- 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)