preliminary ipv6 support - not tested
[svn/Prometheus-QoS/.git] / parsehosts.c
index 528f376..d37a716 100644 (file)
@@ -39,6 +39,7 @@ void TheIP(char *ipaddr)
  ip->pktsup      = \\r
  ip->pktsdown    = 0;\r
  ip->keyword     = keywords;\r
+ ip->v6          = (strchr(ip->addr,':')!=NULL);\r
  push(ip,ips);\r
 }\r
 \r
@@ -96,13 +97,13 @@ void parse_ip(char *str)
  if(ip6range)\r
  {\r
   concatenate(ip6prefix,ip6range,ptr);\r
-  concatenate(ptr,"/64",ip6range);\r
+  ip6range=ptr;\r
   if_exists(ip, ips, eq(ip->addr,ip6range));\r
   else\r
   {\r
    TheIP(ip6range);\r
   }\r
-  ip->name = ptr;\r
+  ip->name = ip6range;\r
   ip->sharing = ipname;\r
   if(lmsid)\r
   {\r
This page took 0.118887 seconds and 4 git commands to generate.