From owner-svn-src-all@FreeBSD.ORG Thu Aug 27 15:24:27 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 038D7106568C; Thu, 27 Aug 2009 15:24:27 +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 E77C18FC2F; Thu, 27 Aug 2009 15:24:26 +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 n7RFOQft099839; Thu, 27 Aug 2009 15:24:26 GMT (envelope-from dougb@svn.freebsd.org) Received: (from dougb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n7RFOQr9099837; Thu, 27 Aug 2009 15:24:26 GMT (envelope-from dougb@svn.freebsd.org) Message-Id: <200908271524.n7RFOQr9099837@svn.freebsd.org> From: Doug Barton Date: Thu, 27 Aug 2009 15:24:26 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r196589 - head/etc X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2009 15:24:27 -0000 Author: dougb Date: Thu Aug 27 15:24:26 2009 New Revision: 196589 URL: http://svn.freebsd.org/changeset/base/196589 Log: 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. Noticed by: Dimitry Andric Modified: head/etc/network.subr Modified: head/etc/network.subr ============================================================================== --- head/etc/network.subr Thu Aug 27 13:18:59 2009 (r196588) +++ head/etc/network.subr Thu Aug 27 15:24:26 2009 (r196589) @@ -879,8 +879,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