From nobody@FreeBSD.org  Thu Apr 20 09:55:48 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C60B816A400
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 20 Apr 2006 09:55:48 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 965E243D45
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 20 Apr 2006 09:55:48 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k3K9tjwA010523
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 20 Apr 2006 09:55:45 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k3K9tjWM010522;
	Thu, 20 Apr 2006 09:55:45 GMT
	(envelope-from nobody)
Message-Id: <200604200955.k3K9tjWM010522@www.freebsd.org>
Date: Thu, 20 Apr 2006 09:55:45 GMT
From: Dmity Andrianov <freebsd@dima.spb.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: startup scripts do not configure gif interfaces under certain circumstances
X-Send-Pr-Version: www-2.3

>Number:         96094
>Category:       conf
>Synopsis:       [gif] startup scripts do not configure gif interfaces under certain circumstances
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 20 10:00:25 GMT 2006
>Closed-Date:    
>Last-Modified:  Mon Jan 14 00:56:59 UTC 2008
>Originator:     Dmity Andrianov
>Release:        FreeBSD 6.0-RELEASE #0
>Organization:
DataArt
>Environment:
>Description:

The list_net_interfaces() function of /etc/network.subr uses the following code to build list of interfaces when network_interfaces is NOT set to "auto":

                _tmplist="${network_interfaces} ${cloned_interfaces}"

This does not account gif interfaces specified with gif_interfaces option. Of course it is possible to set gif_interfaces equal to cloned_interfaces in the /etc/rc.conf but this will cause "ifconfig gifN create" to be executed twice (second invocation reports error - interface already created)
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:

From: Brooks Davis <brooks@one-eyed-alien.net>
To: Dmity Andrianov <freebsd@dima.spb.ru>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: misc/96094: startup scripts do not configure gif interfaces under certain circumstances
Date: Thu, 20 Apr 2006 22:25:24 -0700

 We've deprecated setting network_interfaces to anything other than
 AUTO in 7.0 and I'll probably MFC that documentation to RELENG_6
 after the 6.1 release.  Now that you can disable automatic, boot time
 configuration of individual interfaces with the NOAUTO keyword, setting
 network_interfaces is pretty pointless.  As such it seems unlikely we'll
 fix this bug.  In may ways, the real bug is appending cloned_interfaces
 automagically.
 
 -- Brooks
>Unformatted:
