From owner-svn-src-stable-8@FreeBSD.ORG Thu Aug 27 17:53:26 2009 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0AC2E106568D; Thu, 27 Aug 2009 17:53:26 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id ED8988FC1C; Thu, 27 Aug 2009 17:53:25 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n7RHrPRa003721; Thu, 27 Aug 2009 17:53:25 GMT (envelope-from dougb@svn.freebsd.org) Received: (from dougb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n7RHrPaK003719; Thu, 27 Aug 2009 17:53:25 GMT (envelope-from dougb@svn.freebsd.org) Message-Id: <200908271753.n7RHrPaK003719@svn.freebsd.org> From: Doug Barton Date: Thu, 27 Aug 2009 17:53:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r196604 - stable/8/etc X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2009 17:53:26 -0000 Author: dougb Date: Thu Aug 27 17:53:25 2009 New Revision: 196604 URL: http://svn.freebsd.org/changeset/base/196604 Log: MFC 196589: In the loop through the list of interfaces in network6_interface_setup() rtsol_interface gets reset to "yes" each time through the loop, but rtsol_available does not. If a user has lo0 first in their list of interfaces rtsol_available will get set to "no" the first time through the loop and subsequent interfaces will not get rtsol'ed when they should. Therefore change the conditional for the is_wired() test to _interface. Approved by: re (kib) Modified: stable/8/etc/ (props changed) stable/8/etc/network.subr Modified: stable/8/etc/network.subr ============================================================================== --- stable/8/etc/network.subr Thu Aug 27 17:42:37 2009 (r196603) +++ stable/8/etc/network.subr Thu Aug 27 17:53:25 2009 (r196604) @@ -872,8 +872,8 @@ network6_interface_setup() # Wireless NIC cards are virtualized through the wlan interface if ! is_wired_interface ${i}; then case "${i}" in - wlan*) rtsol_available=yes ;; - *) rtsol_available=no ;; + wlan*) rtsol_interface=yes ;; + *) rtsol_interface=no ;; esac fi