+ fprintf(f,"<br />%Lu", sharedip->direct);\r
+ }\r
+ fputs("</span>\n",f);\r
+ }\r
+ fputs("</td>\n",f);\r
+\r
+ /* pkts down ---------------------------------------- */\r
+ mpkts = ip->pktsdown>>20;\r
+ total_pktdown += mpkts;\r
+ if(mpkts == 0)\r
+ {\r
+ mpkts = 1; /* prevent divide by zero*/\r
+ }\r
+ fprintf(f,"<td style=\"text-align: right\"><span style=\"color: gray\">%d</span>", ip->direct/mpkts);\r
+ if(use_jquery_popups)\r
+ {\r
+ fprintf(f,"<span id=\"pktsdown_%d\" style=\"display:none\">", i);\r
+ for_each(sharedip,ips) if(eq(ip->name, sharedip->sharing) && !sharedip->v6) /* IPv4 only */\r
+ {\r
+ mpkts = sharedip->pktsdown>>20;\r
+ if(mpkts == 0)\r
+ {\r
+ mpkts = 1; /* prevent divide by zero*/\r
+ } \r
+ fprintf(f,"<br /><span style=\"color: gray\">%d</span>", sharedip->direct/mpkts);\r
+ }\r
+ for_each(sharedip,ips) if(eq(ip->name, sharedip->sharing) && sharedip->v6) /* IPv6 only */\r
+ {\r
+ mpkts = sharedip->pktsdown>>20;\r
+ if(mpkts == 0)\r
+ {\r
+ mpkts = 1; /* prevent divide by zero*/\r
+ } \r
+ fprintf(f,"<br /><span style=\"color: gray\">%d</span>", sharedip->direct/mpkts);\r