Subject: bin/6171: xntpd -b fails with multiple ip addresses
To: None <gnats-bugs@gnats.netbsd.org>
From: None <andreas@planix.com>
List: netbsd-bugs
Date: 09/17/1998 14:26:31
>Number: 6171
>Category: bin
>Synopsis: xntpd -b fails with multiple ip addresses
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Sep 17 11:35:00 1998
>Last-Modified:
>Originator: Andreas E. Wrede
>Organization:
Planix, Inc., Networking, System Administration, Consulting
>Release: <NetBSD-current source date> -current Aug 28/98
>Environment:
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
>Description:
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.
>How-To-Repeat:
Ifconfig an interface with two addresses in the same subnet.
Start xntpd -b -A
Observer error message in syslog.
>Fix:
Unknown. The workaround is to define the ntp server explicitly in ntp.conf.
>Audit-Trail:
>Unformatted:
running xntpd as a broadcastclient fails if an interface has multiple IP addresses.