Subject: bin/6551: xntpd dies w. interface aliases
To: None <gnats-bugs@gnats.netbsd.org>
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
List: netbsd-bugs
Date: 12/08/1998 22:10:43
>Number:         6551
>Category:       bin
>Synopsis:       xntpd dies if one has an interface that has an alias
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec  8 22:20:00 1998
>Last-Modified:
>Originator:     Wolfgang Rupprecht
>Organization:
W S Rupprecht Computer Consulting, Fremont CA
>Release:        netbsd-current dec-4-1998
>Environment:
System: NetBSD capsicum.wsrcc.com 1.3I NetBSD 1.3I (WSRCC) #0: Fri Dec 4 18:39:40 PST 1998 root@capsicum.wsrcc.com:/v/src/netbsd/NetBSD-current/usr/src/sys/arch/i386/compile/WSRCC i386


>Description:
	xntpd dies if one has an interface that has an alias
	
	from /var/log/messages:

	Dec 8 15:21:15 capsicum xntpd[201]: bind() fd 13, family 2,
	port 123, addr 8cae587f, in_classd=0 flags=0 fails: Address
	already in use

>How-To-Repeat:
	ifconfig inet de1 alias x.x.x.x netmask x.x.x.x
	xntpd
	ps -axl 
	tail /var/log/messages
>Fix:
	The simplest fix is probably to upgrade to the latest xntpd
	from ftp.udel.edu:/pub/ntp .  It seems to have no problem with
	interface aliases.  I'm running "ntpd 4.0.90" and it seems to
	be working well enough.  The build requires hand-editing the
	config.h file.

--- config.h.~1~	Sat Nov 21 13:42:02 1998
+++ config.h	Sat Nov 21 13:43:08 1998
@@ -148,7 +148,7 @@
 #define CLOCK_HPGPS 1
 
 /* Sun IRIG audio decoder */
-#define CLOCK_IRIG 1
+/* #define CLOCK_IRIG 1 */
 
 /* Rockwell Jupiter GPS clock */
 /* #undef CLOCK_JUPITER */
@@ -578,10 +578,10 @@
 #define HAVE_SYSCTL 1
 
 /* Define if you have the timer_create function.  */
-#define HAVE_TIMER_CREATE 1
+/* #define HAVE_TIMER_CREATE 1 */
 
 /* Define if you have the timer_settime function.  */
-#define HAVE_TIMER_SETTIME 1
+/* #define HAVE_TIMER_SETTIME 1 */
 
 /* Define if you have the umask function.  */
 #define HAVE_UMASK 1
>Audit-Trail:
>Unformatted: