--- reportUtils.c.old	Mon Jul  8 15:21:24 2002
+++ reportUtils.c	Mon Jul  8 17:19:17 2002
@@ -1666,6 +1666,10 @@
   TrafficCounter totalSent, totalRcvd;
   TrafficCounter actTotalSent, actTotalRcvd;
   char buf[BUF_SIZE];
+#ifdef HAVE_GDCHART
+  char linkName[256];
+  int i;
+#endif
 
   totalSent = el->tcpSentLoc+el->tcpSentRem+el->udpSentLoc+el->udpSentRem;
   totalSent += el->icmpSent+el->ospfSent+el->igmpSent+el->ipxSent+el->dlcSent+el->arp_rarpSent;
@@ -1798,10 +1802,19 @@
 	BufferTooShort();
       sendString(buf);
 
+      if(el->hostNumIpAddress[0] != '\0') {
+        strncpy(linkName, el->hostNumIpAddress, sizeof(linkName));
+      } else {
+        strncpy(linkName, el->ethAddressString, sizeof(linkName));
+        for(i=0; linkName[i] != '\0'; i++)
+          if(linkName[i] == ':')
+            linkName[i] = '_';  /* to avoid escaping chars */
+      }
+
       if(totalSent > 0) {
 	if(snprintf(buf, sizeof(buf),
 		    "<TD WIDTH=250 "TH_BG" ALIGN=RIGHT COLSPAN=2><IMG SRC=hostTrafficDistrib-%s"CHART_FORMAT"?1></TD>",
-		    el->hostNumIpAddress[0] == '\0' ?  el->ethAddressString : el->hostNumIpAddress) < 0)
+                    linkName) < 0)
 	  BufferTooShort();
 	sendString(buf);
       } else {
@@ -1811,7 +1824,7 @@
       if(totalRcvd > 0) {
 	if(snprintf(buf, sizeof(buf),
 		    "<TD "TH_BG" ALIGN=RIGHT COLSPAN=2><IMG SRC=hostTrafficDistrib-%s"CHART_FORMAT"></TD>",
-		    el->hostNumIpAddress[0] == '\0' ?  el->ethAddressString : el->hostNumIpAddress) < 0)
+		    linkName) < 0)
 	  BufferTooShort();
 	sendString(buf);
       } else {
