Subject: kern/10427: adding inet6 aliases reports "file exists" but succeeds
To: None <>
From: Bill Sommerfeld <>
List: netbsd-bugs
Date: 06/23/2000 06:48:13
>Number:         10427
>Category:       kern
>Synopsis:       adding inet6 aliases  reports "file exists" but succeeds
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 23 06:49:00 PDT 2000
>Originator:     Bill Sommerfeld
>Release:        20000615 or thereabouts
System: NetBSD thunk 1.4ZD NetBSD 1.4ZD (VAIO) #96: Fri Jun 16 10:40:53 EDT
2000     root@thunk:/usr/wes/sys-current/arch/i386/compile/VAIO i386


ifconfig spuriously reports "ifconfig: SIOCAIFADDR: File exists" when
adding an additional address on a subnet when we already have the
address present.

	# ifconfig fxp0 inet6 3ffe:1ce1:0:fe01::10
	# ifconfig fxp0 inet6 3ffe:1ce1:0:fe01::11
	ifconfig: SIOCAIFADDR: File exists

note that the added addresses turn up in ifconfig anyway.


I didn't analyze this completely.  my guess is that it's reporting
EEXIST when adding the subnet route for the ifaddr's directly
connected subnet.  A bunch of this code badly needs a cleanup.