]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
misc turds
authorwessels <>
Sat, 12 Oct 1996 01:35:28 +0000 (01:35 +0000)
committerwessels <>
Sat, 12 Oct 1996 01:35:28 +0000 (01:35 +0000)
src/icmp.cc
src/net_db.cc
src/pinger.cc

index 26520bab9a4bc933e4d18d7e8e5bd05da8b75fee..1e79a9f55d73ab4da4c28686b35249641cf8c396 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: icmp.cc,v 1.17 1996/10/10 22:20:56 wessels Exp $
+ * $Id: icmp.cc,v 1.18 1996/10/11 19:35:28 wessels Exp $
  *
  * DEBUG: section 37    ICMP Routines
  * AUTHOR: Duane Wessels
@@ -116,6 +116,7 @@ icmpOpen(void)
        (PF) icmpRecv,
        (void *) -1);
     comm_set_fd_lifetime(icmp_sock, -1);
+    debug(29,0,"Pinger socket opened on FD %d\n", icmp_sock);
 }
 
 void
index 310de192ca5e2c5d8c00fb399ba231cef48be404..cef78cedd64c0a0da00090a44dddb3a03d6dca58 100644 (file)
@@ -258,7 +258,7 @@ netdbDump(StoreEntry * sentry)
     int k;
     int i;
     storeAppendPrintf(sentry, "{Network DB Statistics:\n");
-    storeAppendPrintf(sentry, "{%-16.16s %7s %9s %5s %s}\n",
+    storeAppendPrintf(sentry, "{%-16.16s %9s %7s %5s %s}\n",
        "Network",
        "recv/sent",
        "RTT",
index c2fb5a4030fe765b4805ef88f82810e7f19cf49f..97dc961b826fc7a7e8689f2d545d6d4d9a0564e5 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: pinger.cc,v 1.5 1996/09/24 20:37:32 wessels Exp $
+ * $Id: pinger.cc,v 1.6 1996/10/11 19:35:29 wessels Exp $
  *
  * DEBUG: section 37    ICMP Routines
  * AUTHOR: Duane Wessels
@@ -130,7 +130,7 @@ pingerOpen(void)
        exit(1);
     }
     icmp_ident = getpid() & 0xffff;
-    debug(37, 0, "ICMP socket opened on FD %d\n", icmp_sock);
+    debug(37, 0, "ICMP socket opened\n", icmp_sock);
 }
 
 void
@@ -206,14 +206,14 @@ pingerRecv(void)
     ip = (struct iphdr *) (void *) pkt;
 #if HAVE_IP_HL
     iphdrlen = ip->ip_hl << 2;
-#else
+#else /* HAVE_IP_HL */
 #if BYTE_ORDER == BIG_ENDIAN
     iphdrlen = (ip->ip_vhl >> 4) << 2;
 #endif
 #if BYTE_ORDER == LITTLE_ENDIAN
     iphdrlen = (ip->ip_vhl & 0xF) << 2;
 #endif
-#endif
+#endif /* HAVE_IP_HL */
     icmp = (struct icmphdr *) (void *) (pkt + iphdrlen);
     if (icmp->icmp_type != ICMP_ECHOREPLY)
        return;