more IPs allowed in identical IPv6 uplink network
authorxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Thu, 14 Aug 2014 18:57:03 +0000 (18:57 +0000)
committerxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Thu, 14 Aug 2014 18:57:03 +0000 (18:57 +0000)
git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@247 251d49ef-1d17-4917-a970-b30cf55b089b

parsehosts.c

index 27d378e9a9fa81b8e8f4d0c4ddc054327ed438fe..1e0c65ceceaf5a6517f94074367b88d1e93d6b36 100644 (file)
@@ -126,7 +126,7 @@ void parse_and_append_ip(char *str, struct IP *listhead)
  {\r
   concatenate(ip6prefix,ip6range,ptr);\r
   ip6range=ptr;\r
  {\r
   concatenate(ip6prefix,ip6range,ptr);\r
   ip6range=ptr;\r
-  if_exists(ip, ips, eq(ip->addr,ip6range));\r
+  if_exists(ip, ips, eq(ip->addr,ip6range)); /* check - allocated range must be unique */\r
   else\r
   {\r
    TheIP(ip6range, FALSE);\r
   else\r
   {\r
    TheIP(ip6range, FALSE);\r
@@ -149,11 +149,7 @@ void parse_and_append_ip(char *str, struct IP *listhead)
  {\r
   concatenate(ip6prefix,ip6uplink,ptr);\r
   ip6uplink=ptr;\r
  {\r
   concatenate(ip6prefix,ip6uplink,ptr);\r
   ip6uplink=ptr;\r
-  if_exists(ip, ips, eq(ip->addr,ip6uplink));\r
-  else\r
-  {\r
-   TheIP(ip6uplink, FALSE);\r
-  }\r
+  TheIP(ip6uplink, FALSE); /* always new IP - more IPs in single uplink network */\r
   ip->name = ip6uplink;\r
   ip->keyword = defaultkeyword; /* settings for default keyword */\r
   if(lmsid)\r
   ip->name = ip6uplink;\r
   ip->keyword = defaultkeyword; /* settings for default keyword */\r
   if(lmsid)\r
This page took 0.147914 seconds and 4 git commands to generate.