X-Git-Url: http://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=htmlandlogs.c;fp=htmlandlogs.c;h=e11af1abac500b99e2b38d3489a4769a57e1455e;hp=8bcfe71f2e36832e0633eae6ac79e895ab543a02;hb=0b9c3c198771800cc6c5fbacfc0272549626bcfd;hpb=f64d54310ae39276c552b80183ae2320789bb4be diff --git a/htmlandlogs.c b/htmlandlogs.c index 8bcfe71..e11af1a 100644 --- a/htmlandlogs.c +++ b/htmlandlogs.c @@ -191,14 +191,14 @@ void write_htmlandlogs(char *html, char *d, int total, int just_preview) { fprintf(f,"",i); popup_button=0; - for_each(sharedip, ips) if(eq(ip->name, sharedip->sharing) && !strchr(sharedip->addr,':')) /* IPv4 only */ + for_each(sharedip, ips) if(eq(ip->name, sharedip->sharing) && !sharedip->v6) /* IPv4 only */ { fprintf(f,"
%s\n", log_url, sharedip->name, sharedip->name); popup_button++; } - for_each(sharedip, ips) if(eq(ip->name, sharedip->sharing) && !strchr(sharedip->addr,'.')) /* IPv6 only */ + for_each(sharedip, ips) if(eq(ip->name, sharedip->sharing) && sharedip->v6) /* IPv6 only */ { - fprintf(f,"
%s\n", log_url, sharedip->name, sharedip->addr); + fprintf(f,"
%s/64\n", log_url, sharedip->addr, sharedip->addr); popup_button++; } fputs("
\n",f); @@ -234,11 +234,11 @@ void write_htmlandlogs(char *html, char *d, int total, int just_preview) if(use_jquery_popups) { fprintf(f,"",i); - for_each(sharedip, ips) if(eq(ip->name, sharedip->sharing) && !strchr(sharedip->addr,':')) /* IPv4 only */ + for_each(sharedip, ips) if(eq(ip->name, sharedip->sharing) && !sharedip->v6) /* IPv4 only */ { fprintf(f,"
%Lu", sharedip->direct); } - for_each(sharedip, ips) if(eq(ip->name, sharedip->sharing) && !strchr(sharedip->addr,'.')) /* IPv6 only */ + for_each(sharedip, ips) if(eq(ip->name, sharedip->sharing) && sharedip->v6) /* IPv6 only */ { fprintf(f,"
%Lu", sharedip->direct); } @@ -256,11 +256,11 @@ void write_htmlandlogs(char *html, char *d, int total, int just_preview) if(use_jquery_popups) { fprintf(f,"",i); - for_each(sharedip,ips) if(eq(ip->name, sharedip->sharing) && !strchr(sharedip->addr,':')) /* IPv4 only */ + for_each(sharedip,ips) if(eq(ip->name, sharedip->sharing) && !sharedip->v6) /* IPv4 only */ { fprintf(f,"
%Lu", sharedip->upload); } - for_each(sharedip,ips) if(eq(ip->name, sharedip->sharing) && !strchr(sharedip->addr,'.')) /* IPv6 only */ + for_each(sharedip,ips) if(eq(ip->name, sharedip->sharing) && sharedip->v6) /* IPv6 only */ { fprintf(f,"
%Lu", sharedip->upload); }