From owner-freebsd-bugs Mon Dec 31 8:40: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 65BC837B42F for ; Mon, 31 Dec 2001 08:40:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBVGe2749540; Mon, 31 Dec 2001 08:40:02 -0800 (PST) (envelope-from gnats) Received: from puma.cis.ibaraki.ac.jp (puma.cis.ibaraki.ac.jp [157.80.87.64]) by hub.freebsd.org (Postfix) with ESMTP id B56D837B432 for ; Mon, 31 Dec 2001 08:36:53 -0800 (PST) Received: (from th@localhost) by puma.cis.ibaraki.ac.jp (8.9.3/8.9.3) id BAA88791; Tue, 1 Jan 2002 01:36:43 +0900 (JST) (envelope-from th) Message-Id: <200112311636.BAA88791@puma.cis.ibaraki.ac.jp> Date: Tue, 1 Jan 2002 01:36:43 +0900 (JST) From: th@cis.ibaraki.ac.jp Reply-To: gibbon@cocoa.freemail.ne.jp To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: conf/33395: better way to use more than one pccard network cards Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 33395 >Category: conf >Synopsis: better way to use more than one pccard network cards >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Dec 31 08:40:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: HIYAMA Takeshi >Release: FreeBSD 4.5-PRERELEASE >Organization: Hitachi Naka Electronics Co., Ld. >Environment: FreeBSD breton.hiyama 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #46: Sat Dec 29 00:57:37 JST 2001 root@breton.hiyama:/usr/obj/usr/src/sys/BRETON i386 >Description: Now, easiest way to use more than one pccard network cards is to define pccardd_flags="-z" ifconfig_pccard_INTERFACE1="OPTIONS" ifconfig_pccard_INTERFACE2="OPTIONS" ... in rc.conf. But in this way, ifconfig(3) will be called twice, first from pccard_ether, and then from rc.network. So if someone wants to use DHCP for one interface and, don't want for other one, pccard_ether will call dhclient for the interface, and rc.network will call it again. This may cause DHCP failure, and configuration will be reseted. >How-To-Repeat: Insert two pccard network cards and put pccardd_flags="-z" ifconfig_pccard_INTERFACE1="OPTIONS" ifconfig_pccard_INTERFACE2="DHCP" into rc.conf. >Fix: define pccard_ifconfig_INTERFACE="OPTIONS" in rc.conf --- pccard_ether.orig Tue Jan 1 00:35:46 2002 +++ pccard_ether Tue Jan 1 00:35:36 2002 @@ -72,7 +72,7 @@ . /etc/start_if.${interface} fi - eval ifconfig_args=\$ifconfig_${interface} + eval ifconfig_args=\$pccard_ifconfig_${interface} case ${ifconfig_args} in [Nn][Oo] | '') ;; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message