/*
- * $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
(PF) icmpRecv,
(void *) -1);
comm_set_fd_lifetime(icmp_sock, -1);
+ debug(29,0,"Pinger socket opened on FD %d\n", icmp_sock);
}
void
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",
/*
- * $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
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
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;