From th@puma.cis.ibaraki.ac.jp  Mon Dec 31 08:36:54 2001
Return-Path: <th@puma.cis.ibaraki.ac.jp>
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 <FreeBSD-gnats-submit@freebsd.org>; 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
Subject: better way to use more than one pccard network cards
X-Send-Pr-Version: 3.2

>Number:         33395
>Category:       conf
>Synopsis:       better way to use more than one pccard network cards
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    imp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 31 08:40:01 PST 2001
>Closed-Date:    Mon Jan 10 17:46:28 MST 2005
>Last-Modified:  Mon Jan 10 17:46:28 MST 2005
>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:
Responsible-Changed-From-To: freebsd-bugs->imp 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Fri Feb 1 03:12:02 PST 2002 
Responsible-Changed-Why:  
Over to pccard maintainer. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=33395 
State-Changed-From-To: open->closed 
State-Changed-By: imp 
State-Changed-When: Mon Jan 10 17:45:56 MST 2005 
State-Changed-Why:  
This can be done with different syntax now. 

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