bin/102701: 'ifconfig xx0 inet6 delete' always fails

George Mitchell george at
Wed Aug 30 19:10:27 UTC 2006

>Number:         102701
>Category:       bin
>Synopsis:       'ifconfig xx0 inet6 delete' always fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 30 19:10:25 GMT 2006
>Originator:     George Mitchell
>Release:        FreeBSD 6.1-RELEASE i386
Mitchell Voting Products, Inc.
System: FreeBSD 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:32:43 UTC 2006 root at i386

Can't delete an inet6 alias address from an interface
	ifconfig re0 inet6 alias 2001:418:3fd::66
	ifconfig re0 inet6 delete 2001:418:3fd::66
	"ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address"

	Apply following patch, recompile, and install:

--- sbin/ifconfig/af_inet6.c.orig	Thu Jun 16 12:37:09 2005
+++ sbin/ifconfig/af_inet6.c	Wed Aug 30 12:00:29 2006
@@ -515,7 +515,7 @@
 	.af_settunnel	= in6_set_tunnel,
 	.af_difaddr	= SIOCDIFADDR_IN6,
 	.af_aifaddr	= SIOCAIFADDR_IN6,
-	.af_ridreq	= &in6_addreq,
+	.af_ridreq	= &in6_ridreq,
 	.af_addreq	= &in6_addreq,


More information about the freebsd-bugs mailing list