From owner-freebsd-bugs Fri Jun 23 07:34:27 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA07738 for bugs-outgoing; Fri, 23 Jun 1995 07:34:27 -0700 Received: (from root@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA07731 ; Fri, 23 Jun 1995 07:34:26 -0700 Date: Fri, 23 Jun 1995 07:34:26 -0700 Message-Id: <199506231434.HAA07731@freefall.cdrom.com> From: Lapinsky Alexander Reply-To: Lapinsky Alexander To: freebsd-bugs Subject: bin/544: timed & timedc bugs In-Reply-To: Your message of Mon, 20 Mar 1995 21:05:28 +0300 <199503201805.VAA01545@flox.kiam1.rssi.ru> Sender: bugs-owner@FreeBSD.org Precedence: bulk >Number: 544 >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: Fri Jun 23 07:34:19 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: