From e89bcdb80f12260f589e69cb6279ffc8bf0ef97a Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sun, 27 Nov 1994 16:06:31 +0000 Subject: [PATCH] Apply an even number of ntohl's to icmp_otime. This fixes `timedc clockdiff ...'. --- usr.sbin/timed/timed/measure.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/timed/timed/measure.c b/usr.sbin/timed/timed/measure.c index 4066d10be2d..c8535a452ba 100644 --- a/usr.sbin/timed/timed/measure.c +++ b/usr.sbin/timed/timed/measure.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)measure.c 8.1 (Berkeley) 6/6/93"; #endif /* not lint */ #ifdef sgi -#ident "$Revision: 1.8 $" +#ident "$Revision: 1.1.1.1 $" #endif #include "globals.h" @@ -151,8 +151,8 @@ measure(maxmsec, wmsec, hname, addr, print) */ if (trials < TRIALS) { trials++; - oicp->icmp_otime = ((tcur.tv_sec % SECDAY) * 1000 - + tcur.tv_usec / 1000); + oicp->icmp_otime = ntohl((tcur.tv_sec % SECDAY) * 1000 + + tcur.tv_usec / 1000); oicp->icmp_cksum = 0; oicp->icmp_cksum = in_cksum((u_short*)oicp, sizeof(*oicp));