From george@m5p.com  Wed Aug 30 19:10:18 2006
Return-Path: <george@m5p.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C92F016A4F0
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 30 Aug 2006 19:10:18 +0000 (UTC)
	(envelope-from george@m5p.com)
Received: from mailhost.m5p.com (209-162-215-52.dq1sn.easystreet.com [209.162.215.52])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D3C4743D55
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 30 Aug 2006 19:10:16 +0000 (GMT)
	(envelope-from george@m5p.com)
Received: from m5p.com (ssh.m5p.com [IPv6:2001:418:3fd::fb])
	by mailhost.m5p.com (8.13.7/8.13.7) with ESMTP id k7UJAFVU022536
	(version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=OK)
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 30 Aug 2006 12:10:15 -0700 (PDT)
Received: (from george@localhost)
	by m5p.com (8.13.7/8.13.7/Submit) id k7UJAEBS041468;
	Wed, 30 Aug 2006 12:10:14 -0700 (PDT)
Message-Id: <200608301910.k7UJAEBS041468@m5p.com>
Date: Wed, 30 Aug 2006 12:10:14 -0700 (PDT)
From: George Mitchell <george@m5p.com>
Reply-To: George Mitchell <george@m5p.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: 'ifconfig xx0 inet6 delete' always fails
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         102701
>Category:       bin
>Synopsis:       [patch] 'ifconfig xx0 inet6 delete' always fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bms
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 30 19:10:25 GMT 2006
>Closed-Date:    Sat Feb 03 11:58:16 GMT 2007
>Last-Modified:  Sun Feb  4 16:50:14 GMT 2007
>Originator:     George Mitchell
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
Mitchell Voting Products, Inc.
>Environment:
System: FreeBSD parkstreet.m5p.com 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:32:43 UTC 2006 root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
Can't delete an inet6 alias address from an interface
>How-To-Repeat:
	ifconfig re0 inet6 alias 2001:418:3fd::66
	ifconfig re0 inet6 delete 2001:418:3fd::66
	"ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address"
>Fix:

	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,
 };
 


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: bms 
State-Changed-When: Mon Sep 25 18:21:05 UTC 2006 
State-Changed-Why:  
Comitted on HEAD, pending MFC. thanks! 


Responsible-Changed-From-To: freebsd-bugs->bms 
Responsible-Changed-By: bms 
Responsible-Changed-When: Mon Sep 25 18:21:05 UTC 2006 
Responsible-Changed-Why:  
Comitted on HEAD, pending MFC. thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=102701 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/102701: commit references a PR
Date: Mon, 25 Sep 2006 18:21:03 +0000 (UTC)

 bms         2006-09-25 18:20:56 UTC
 
   FreeBSD src repository
 
   Modified files:
     sbin/ifconfig        af_inet6.c 
   Log:
   Fix a typo in af_inet6.c such that IPv6 addresses may be deleted
   from interfaces.
   
   PR:             bin/102701
   Submitted by:   George Mitchell
   MFC after:      3 days
   
   Revision  Changes    Path
   1.4       +1 -1      src/sbin/ifconfig/af_inet6.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: "Bruce M. Simpson" <bms@FreeBSD.org>
To: George Mitchell <george@m5p.com>
Cc: bz@FreeBSD.org,  freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/102701: [patch] 'ifconfig xx0 inet6 delete' always fails
Date: Mon, 25 Sep 2006 20:31:56 +0100

 I've since heard from bz@ that this may not be the correct fix.
 
 What we need to do is to sit down, look at the syntax, and figure out 
 why/how it's counter-intuitive compared with the ipv4 case -- there's a 
 crib sheet somewhere on the web for configuring IPv6 across different 
 stacks which I need to dig up, here it is:
 
 http://www.telscom.ch/configuration_of_ipv6_features.htm
 
 I'll leave it in for now rather than backing out.
 
 regards,
 BMS

From: "Bruce M. Simpson" <bms@FreeBSD.org>
To: "Bruce M. Simpson" <bms@FreeBSD.org>
Cc: George Mitchell <george@m5p.com>,  bz@FreeBSD.org, 
 freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/102701: [patch] 'ifconfig xx0 inet6 delete' always fails
Date: Mon, 25 Sep 2006 23:19:06 +0100

 *http://www.telscom.ch/index.php/downloads/configure_ipv6_features
 
 is the new location for that link.
 *
 >
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/102701: commit references a PR
Date: Sat,  3 Feb 2007 03:37:57 +0000 (UTC)

 bms         2007-02-03 03:37:38 UTC
 
   FreeBSD src repository
 
   Modified files:
     sbin/ifconfig        ifconfig.8 
   Log:
   Add an EXAMPLES section to ifconfig(8), clearly showing how to configure
   IPv6 addresses in FreeBSD.
   
   See also: http://www.telscom.ch/index.php/downloads/configure_ipv6_features
   
   MFC after:      1 week
   PR:             102701
   Obtained from:  OpenBSD (partly, with edits)
   
   Revision  Changes    Path
   1.132     +42 -1     src/sbin/ifconfig/ifconfig.8
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/102701: commit references a PR
Date: Sat,  3 Feb 2007 03:40:50 +0000 (UTC)

 bms         2007-02-03 03:40:34 UTC
 
   FreeBSD src repository
 
   Modified files:
     sbin/ifconfig        af_inet6.c 
   Log:
   Backout revision 1.4; it is not verified as the correct fix for the PR.
   A more correct fix has been committed to ifconfig(8).
   
   Submitted by:   bz
   PR:             102701
   
   Revision  Changes    Path
   1.5       +1 -1      src/sbin/ifconfig/af_inet6.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: bms 
State-Changed-When: Sat Feb 3 11:57:55 UTC 2007 
State-Changed-Why:  
documentation update MFC'd. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=102701 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/102701: commit references a PR
Date: Sat,  3 Feb 2007 11:57:30 +0000 (UTC)

 bms         2007-02-03 11:57:09 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     sbin/ifconfig        ifconfig.8 
   Log:
   MFC rev 1.132:
    Add an EXAMPLES section for ifconfig(8).
   
   PR:             bin/102701
   Obtained from:  OpenBSD
   
   Revision   Changes    Path
   1.95.2.20  +41 -0     src/sbin/ifconfig/ifconfig.8
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: George Mitchell <george@m5p.com>
To: bug-followup@FreeBSD.org, george@m5p.com
Cc:  
Subject: Re: bin/102701: [patch] 'ifconfig xx0 inet6 delete' always fails
Date: Sat, 03 Feb 2007 09:41:09 -0800

 This patch has been improperly closed.  The examples added to ifconfig.8
 show exactly why the patch in RCS version 1.4 of af_inet6.c is needed:
 without the patch, the example fails; with the patch, it succeeds.  Has
 anyone tried the example?
 
 Please back out version 1.5 of af_inet6.c.         -- George Mitchell

From: "Bruce M. Simpson" <bms@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc: george@m5p.com
Subject: Re: bin/102701: [patch] 'ifconfig xx0 inet6 delete' always fails
Date: Sat, 03 Feb 2007 19:47:13 +0000

 George Mitchell wrote:
 >
 > I've just used CVSweb to retrieve the man page with the examples
 > section for ifconfig.  As I suspected, the examples do not work
 > without the patch referenced above.  Have you tried this yourself
 > on an actual system running IPv6?        -- George Mitchell
 >   
 The examples were tested on both HEAD and RELENG_6 with the originally 
 submitted patch to af_inet6.c backed out, and were found to work fine in 
 both cases.
 
 %%%
 empiric:/usr/src/sbin/ifconfig % uname -a
 FreeBSD empiric.lon.incunabulum.net 6.2-RELEASE FreeBSD 6.2-RELEASE #0: 
 Thu Jan 18 15:38:44 GMT 2007     
 root@empiric.lon.incunabulum.net:/usr/obj/usr/src/sys/EMPIRIC  i386
 empiric:/usr/src/sbin/ifconfig % ident af_inet6.c
 af_inet6.c:
      $FreeBSD: src/sbin/ifconfig/af_inet6.c,v 1.3 2005/06/16 19:37:09 
 ume Exp $
 %%%
 
 bz@ pointed out to me many months ago that the patch was possibly incorrect.
 
 Regards,
 BMS

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/102701: commit references a PR
Date: Sun,  4 Feb 2007 16:49:06 +0000 (UTC)

 bms         2007-02-04 16:48:56 UTC
 
   FreeBSD src repository
 
   Modified files:
     sbin/ifconfig        ifconfig.8 
   Log:
   Be explicit in examples about the correct grammar for 'alias' and
   '-alias', and that 'add' and 'delete are in fact synonyms for these
   in the ifconfig(8) grammar.
   
   Use network prefixes explicitly specified in IETF RFCs for
   documentation purposes. (bz)
   
   PR:             102701
   MFC after:      1 day
   See also:       RFC 3330, RFC 3849
   Submitted by:   bz
   
   Revision  Changes    Path
   1.133     +27 -12    src/sbin/ifconfig/ifconfig.8
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
