From owner-freebsd-questions@FreeBSD.ORG Tue Aug 31 17:50:36 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26F4D16A4CE for ; Tue, 31 Aug 2004 17:50:36 +0000 (GMT) Received: from e5.ny.us.ibm.com (e5.ny.us.ibm.com [32.97.182.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 860F043D45 for ; Tue, 31 Aug 2004 17:50:35 +0000 (GMT) (envelope-from mayer@gis.net) Received: from northrelay02.pok.ibm.com (northrelay02.pok.ibm.com [9.56.224.150]) by e5.ny.us.ibm.com (8.12.10/8.12.9) with ESMTP id i7VHoUjw718746 for ; Tue, 31 Aug 2004 13:50:34 -0400 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) i7VHpgCb113820 for ; Tue, 31 Aug 2004 13:51:43 -0400 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.12.10/8.12.11) with ESMTP id i7VHoTBJ030520 for ; Tue, 31 Aug 2004 13:50:29 -0400 Received: from IBMTC_S30001313.gis.net ([9.22.26.62]) by d01av03.pok.ibm.com (8.12.10/8.12.11) with ESMTP id i7VHoS7u030470; Tue, 31 Aug 2004 13:50:28 -0400 Message-Id: <4.3.1.2.20040831130641.02da5f68@pop.gis.net> X-Sender: mayer@pop.gis.net X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Tue, 31 Aug 2004 13:49:40 -0400 To: NewsGroups@US-Webmasters.com From: Danny Mayer In-Reply-To: <4133ED52.79E@US-Webmasters.com> References: <412F8064.353E@US-Webmasters.com> <413108CA.6826@US-Webmasters.com> <413124A7.476@US-Webmasters.com> <41317FC5.3B5C@US-Webmasters.com> <4132C360.386D@US-Webmasters.com> <4133B4AD.1C74@US-Webmasters.com> <20040830215514.790$9k@newsreader.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: stenn@ntp.org cc: FreeBSD-Questions@FreeBSD.org Subject: Re: ntpd as broadcastclient - not working? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2004 17:50:36 -0000 At 11:15 PM 8/30/2004, W. D. wrote: >Hi Danny, > >Reply below... > >At 19:02 8/30/2004, Danny Mayer wrote: > >At 07:13 PM 8/30/2004, W. D. wrote: > >>30 Aug 21:50:05 ntpd[88]: logging to file /var/log/ntpd.log > >>30 Aug 21:50:05 ntpd[88]: ntpd 4.2.0a@1.1219-o Mon Aug 30 14:14:07 GMT > >>2004 (1) > >>30 Aug 21:50:05 ntpd[88]: precision = 4.191 usec > >>30 Aug 21:50:05 ntpd[88]: Listening on interface dc0, > >>fe80:1::2a0:ccff:fe50:e7c7#123 > >>30 Aug 21:50:05 ntpd[88]: Listening on interface dc0, 192.168.2.177#123 > >>30 Aug 21:50:05 ntpd[88]: Listening on interface lo0, ::1#123 > >>30 Aug 21:50:05 ntpd[88]: Listening on interface lo0, fe80:3::1#123 > >>30 Aug 21:50:05 ntpd[88]: Listening on interface lo0, 127.0.0.1#123 > >>30 Aug 21:50:05 ntpd[88]: kernel time sync status 2040 > >>30 Aug 21:50:05 ntpd[88]: frequency initialized 0.000 PPM from > >>/etc/ntp.drift > >>30 Aug 21:50:05 ntpd[88]: Unable to listen for broadcasts, no broadcast > >>interfaces available > > > >What does ifconfig -a tell you? > > >dc0: flags=8843 mtu 1500 > inet6 fe80::2a0:ccff:fe50:e7c7%dc0 prefixlen 64 scopeid 0x1 > inet 192.168.2.177 netmask 0xffffff00 broadcast 192.168.2.255 > ether 00:a0:cc:50:e7:c7 > media: Ethernet autoselect (100baseTX ) > status: active >lp0: flags=8810 mtu 1500 >lo0: flags=8049 mtu 16384 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > inet 127.0.0.1 netmask 0xff000000 >ppp0: flags=8010 mtu 1500 >sl0: flags=c010 mtu 552 >faith0: flags=8002 mtu 1500 > That means the broadcast flag is set for the dc0 interface for IP address 192.168.2.177. You appear to be missing the following patch to libisc/ifiter_ioctl.c: http://ntp.bkbits.net:8080/ntp-dev/diffs/libisc/ifiter_ioctl.c@1.15?nav=index.html|src/.|src/libisc|hist/libisc/ifiter_ioctl.c Basically you are missing the following: if ((lifreq.lifr_flags & IFF_BROADCAST) != 0) { iter->current.flags |= INTERFACE_F_BROADCAST; } That should have been the latest ntp-dev tarball. Otherwise please add it and rebuild. > > > >Danny > > > >>The Windows computer generating the Tardis NTP broadcasts is > >>at IP address: 192.168.2.119. Does anyone have any idea > >>why it's not picking up these broadcasts? > > > >Also, that's not a broadcast address as I recall. > >It's the internal, NAT address, that my DHCP server/router >assigned to the Windows box that is sending out NTP >broadcast signals on port 123. That doesn't really matter. What address is it broadcasting on? Danny