Date: Thu, 1 Jun 1995 17:36:33 -0700 From: Lapinsky Alexander <avl@flox.kiam1.rssi.ru> To: freebsd-bugs Subject: bin/470: timed & timedc bugs Message-ID: <199506020036.RAA16823@freefall.cdrom.com> In-Reply-To: Your message of Mon, 20 Mar 1995 21:05:28 %2B0300 <199503201805.VAA01545@flox.kiam1.rssi.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
>Number: 470 >Category: bin >Synopsis: timed & timedc bugs >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs (FreeBSD bugs mailing list) >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 1 17:36:30 1995 >Originator: Lapinsky Alexander >Organization: Keldysh Institute of Applied Mathematics, >Organization: Moscow, Russia >Release: FreeBSD 2.0-RELEASE i386 >Environment: >Description: time daemon -- timed: Message displayed: "bind: Can't assign requested address" and very big time difference displayed by timedc clockdiff lotos >How-To-Repeat: I can fix it. I guess, it will be better. >Fix: directory: usr/src/usr.sbin/timed/timed files to patch: measure.c timed.c rebuild: timed timedc -------------------------------- Cut here ---------------------------- *** measure.c.orig Mon Mar 20 16:46:47 1995 --- measure.c Mon Mar 20 20:07:49 1995 *************** *** 151,157 **** */ if (trials < TRIALS) { trials++; ! oicp->icmp_otime = ((tcur.tv_sec % SECDAY) * 1000 + tcur.tv_usec / 1000); oicp->icmp_cksum = 0; oicp->icmp_cksum = in_cksum((u_short*)oicp, --- 151,157 ---- */ if (trials < TRIALS) { trials++; ! oicp->icmp_otime = htonl((tcur.tv_sec % SECDAY) * 1000 + tcur.tv_usec / 1000); oicp->icmp_cksum = 0; oicp->icmp_cksum = in_cksum((u_short*)oicp, *** timed.c.orig Fri Jan 7 18:25:16 1994 --- timed.c Fri Jan 7 18:27:00 1994 *************** *** 312,317 **** --- 312,318 ---- exit(1); } port = srvp->s_port; + bzero(&server,sizeof(struct sockaddr_in)); server.sin_port = srvp->s_port; server.sin_family = AF_INET; sock = socket(AF_INET, SOCK_DGRAM, 0); -------------------------- End of message ---------------------------- >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506020036.RAA16823>