Subject: bin/6171: xntpd -b fails with multiple ip addresses
To: None <email@example.com>
From: None <firstname.lastname@example.org>
Date: 09/17/1998 14:26:31
>Synopsis: xntpd -b fails with multiple ip addresses
>Responsible: bin-bug-people (Utility Bug People)
>Arrival-Date: Thu Sep 17 11:35:00 1998
>Originator: Andreas E. Wrede
Planix, Inc., Networking, System Administration, Consulting
>Release: <NetBSD-current source date> -current Aug 28/98
System: NetBSD woffi 1.3G NetBSD 1.3G (WOFFI) #0: Sun Aug 30 19:30:35 EDT 1998 root@woffi:/local4/src/sys/arch/i386/compile/WOFFI i386
On system that have interfaces with multiple ip address in the same subnet,
running xntpd with either the -b option or 'broadcastclient' in the ntp.conf
file will fail with the message:
bind() fd 12, family 2, port 123, addr cc1da13f, in_classd=0 flags=0 fails: Address already in use
Looking at the debug output from xntpd -b -d -d -d, it appears that xntpd
also gets the broadcast address and the subnet mask wrong if an interface
has multiple ip addresses in different (sub)networks.
Ifconfig an interface with two addresses in the same subnet.
Start xntpd -b -A
Observer error message in syslog.
Unknown. The workaround is to define the ntp server explicitly in ntp.conf.
running xntpd as a broadcastclient fails if an interface has multiple IP addresses.