From nobody@FreeBSD.org  Wed Sep 21 23:42:04 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A50FE106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Sep 2011 23:42:04 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 94B188FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Sep 2011 23:42:04 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p8LNg43L010532
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Sep 2011 23:42:04 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p8LNg4jo010529;
	Wed, 21 Sep 2011 23:42:04 GMT
	(envelope-from nobody)
Message-Id: <201109212342.p8LNg4jo010529@red.freebsd.org>
Date: Wed, 21 Sep 2011 23:42:04 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] add vboxnet[0-9]* to noafif list
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         160892
>Category:       conf
>Synopsis:       [network.subr] [patch] add vboxnet[0-9]* to noafif list
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    eadler
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 21 23:50:05 UTC 2011
>Closed-Date:    Mon Feb 20 04:18:28 UTC 2012
>Last-Modified:  Sun Feb 03 22:29:29 UTC 2013
>Originator:     Garrett Cooper
>Release:        9.0-BETA2
>Organization:
iXsystems, Inc.
>Environment:
FreeBSD streetfighter.ixsystems.com 9.0-BETA2 FreeBSD 9.0-BETA2 #0 r225558: Wed Sep 14 20:29:45 PDT 2011     gcooper@streetfighter.ixsystems.com:/usr/obj/usr/src/sys/STREETFIGHTER  amd64
>Description:
If you load the vboxnet module or service at boot, the vboxnet0 interface becomes available:

$ ifconfig vboxnet0
vboxnet0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 0a:00:27:00:00:00
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

This interface shouldn't be configured with IPv6.

This patch also sorts the interface list.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: etc/network.subr
===================================================================
--- etc/network.subr	(revision 225558)
+++ etc/network.subr	(working copy)
@@ -390,15 +390,16 @@
 	_if=$1
 
 	case $_if in
-	pflog[0-9]*|\
-	pfsync[0-9]*|\
 	an[0-9]*|\
 	ath[0-9]*|\
 	ipw[0-9]*|\
 	ipfw[0-9]*|\
 	iwi[0-9]*|\
 	iwn[0-9]*|\
+	pflog[0-9]*|\
+	pfsync[0-9]*|\
 	ral[0-9]*|\
+	vboxnet[0-9]*|\
 	wi[0-9]*|\
 	wl[0-9]*|\
 	wpi[0-9]*)


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->eadler 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Mon Jan 2 15:31:33 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

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

From: Hiroki Sato <hrs@FreeBSD.org>
To: gcooper@ixsystems.com
Cc: freebsd-gnats-submit@FreeBSD.org, hrs@FreeBSD.org
Subject: Re: conf/160892: [patch] add vboxnet[0-9]* to noafif list
Date: Fri, 13 Jan 2012 14:58:00 +0900 (JST)

 ----Security_Multipart(Fri_Jan_13_14_58_00_2012_557)--
 Content-Type: Text/Plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 Garrett Cooper <yaneurabeya@gmail.com> wrote
   in <201109212342.p8LNg4jo010529@red.freebsd.org>:
 
 gc> If you load the vboxnet module or service at boot, the vboxnet0 interface becomes available:
 gc>
 gc> $ ifconfig vboxnet0
 gc> vboxnet0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
 gc>         ether 0a:00:27:00:00:00
 gc>         nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
 gc>
 gc> This interface shouldn't be configured with IPv6.
 gc>
 gc> This patch also sorts the interface list.
 
  I am not sure if adding it into noafif() is a good idea because
  AFAICC vboxnet0 interface can be used with IPv6 when it is configured
  with the host-only network mode.  It is almost always configured by
  VirtualBox process, but there should be no bad side effect even if it
  is not in noafif().  Do you have any specific problem with it?
 
 -- Hiroki
 
 ----Security_Multipart(Fri_Jan_13_14_58_00_2012_557)--
 Content-Type: application/pgp-signature
 Content-Transfer-Encoding: 7bit
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (FreeBSD)
 
 iEYEABECAAYFAk8Px+gACgkQTyzT2CeTzy3U7ACfUDS3quNObxo0qulMiaF4lUaX
 M08An2MKUXJceW4H++d16MrLHzYmDh34
 =MZ1Y
 -----END PGP SIGNATURE-----
 
 ----Security_Multipart(Fri_Jan_13_14_58_00_2012_557)----
State-Changed-From-To: open->closed 
State-Changed-By: eadler 
State-Changed-When: Mon Feb 20 04:18:27 UTC 2012 
State-Changed-Why:  
after further discussion with the rc folks this PR should not be 
committed 

http://www.freebsd.org/cgi/query-pr.cgi?pr=160892 
>Unformatted:
