From 9c4f4529f7456c397c89398453bd054e0eb65b82 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Sat, 12 Oct 1996 01:35:28 +0000 Subject: [PATCH] misc turds --- src/icmp.cc | 3 ++- src/net_db.cc | 2 +- src/pinger.cc | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/icmp.cc b/src/icmp.cc index 26520bab9a..1e79a9f55d 100644 --- a/src/icmp.cc +++ b/src/icmp.cc @@ -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 diff --git a/src/net_db.cc b/src/net_db.cc index 310de192ca..cef78cedd6 100644 --- a/src/net_db.cc +++ b/src/net_db.cc @@ -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", diff --git a/src/pinger.cc b/src/pinger.cc index c2fb5a4030..97dc961b82 100644 --- a/src/pinger.cc +++ b/src/pinger.cc @@ -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; -- 2.47.2