From owner-freebsd-mobile@FreeBSD.ORG Mon Feb 6 18:07:25 2006 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A97016A420 for ; Mon, 6 Feb 2006 18:07:25 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 326E343D46 for ; Mon, 6 Feb 2006 18:07:25 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id k16I7OxG002770; Mon, 6 Feb 2006 10:07:24 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id k16I7OVN002769; Mon, 6 Feb 2006 10:07:24 -0800 Date: Mon, 6 Feb 2006 10:07:24 -0800 From: Brooks Davis To: Phillip Neumann Message-ID: <20060206180724.GD26518@odin.ac.hmc.edu> References: <1138582561.1895.4.camel@localhost> <20060130211422.GB14402@odin.ac.hmc.edu> <1138662167.1708.2.camel@localhost> <20060131012215.GA18380@odin.ac.hmc.edu> <1138963561.839.1.camel@localhost> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NklN7DEeGtkPCoo3" Content-Disposition: inline In-Reply-To: <1138963561.839.1.camel@localhost> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-mobile@freebsd.org Subject: Re: devd.conf X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Feb 2006 18:07:25 -0000 --NklN7DEeGtkPCoo3 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 03, 2006 at 10:46:01AM +0000, Phillip Neumann wrote: > sorry for the delay. >=20 > El lun, 30-01-2006 a las 17:22 -0800, Brooks Davis escribi=F3: > > On Mon, Jan 30, 2006 at 11:02:47PM +0000, Phillip Neumann wrote: > > > El lun, 30-01-2006 a las 13:14 -0800, Brooks Davis escribi=F3: > > > > On Mon, Jan 30, 2006 at 12:56:01AM +0000, Phillip Neumann wrote: > > > > > Im trying to understand devd.conf. > > > > >=20 > > > > > there is a text, wich is: > > > > > # Try to start dhclient on Ethernet like interfaces when the link= comes > > > > > # up. Only devices that are configured to support DHCP will actu= ally > > > > > # run it. No link down rule exists because dhclient automaticly = exits > > > > > # when the link goes down. > > > > >=20 > > > > > when i unplug the rj45, i dont see dhclient quitting. i have to i= fconfig > > > > > the interface down. only so, dhclient will exit.=20 > > > > >=20 > > > > > base in this, if i modify devd.conf and add this line: > > > > > notify 0 { > > > > > match "system" "IFNET"; > > > > > match "type" "LINK_DOWN"; > > > > > media-type "ethernet"; > > > > > action "/etc/rc.d/dhclient stop $subsystem"; > > > > > }; > > > > >=20 > > > > > when i unplug the cable it will stop dhclient, but, when i plug t= he > > > > > cable in again, devd sees 2 events, the LINK_UP and inmedialy it = see a > > > > > LINK_DOWN, so dhclient is stopped. > > > >=20 > > > > Your network card's driver has a broken if_media configuration. Wh= at > > > > kind of nic is it? > > > >=20 > > >=20 > > > bfe0: flags=3D8843 mtu 1500 > > >=20 > > > 02:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-= TX > > > (rev 02) > > >=20 > > > broken where do you mean?..=20 > >=20 > > If a message isn't being sent when you unplug the cable that's a bug, > > and it's either the driver or the hardware. Most likely the driver, > > particularly in the case of bfe(4) which isn't all that common. I'd > > suggest filing a bug report against the nic driver. > >=20 >=20 > ok. >=20 > > > > > whats the correct way to configure the ethernet cards? > > > > >=20 > > > > > is there a way to make something similar work to wifi card? i.e. = when > > > > > its assisiated with a ssid, run dhclient, and when no carrier, st= op it? > > > > >=20 > > > > > i have run devd -dD, but it does not seems to get any event from = the > > > > > wifi card. its an intel 2200. > > > >=20 > > > > If your card is running wpa_supplicant, this is exactly what should > > > > happen. > > >=20 > > > well actually not. im just running dhcp. no wpa. at least ive not > > > configured so. and i guess its not enabled by default... > >=20 > > So your ifconfig_ variable is set to "DHCP" and dhclient isn't > > appearing and disappearing as it should? I'll have to look into that. > > Are you running with the iwi driver? My laptop has one of those so I > > can test it. > >=20 >=20 > well it does work. But when i ifconfig iwi0 down, dhclient should quit > right?. and when ifconfig iwi0 up it should run ? Yes to the first, maybe to the second. If you aren't using wpa_supplicant, bringing the interface up should result in it finding a network if one exists which should trigger a media link up event which in turn will start dhclient. Why that isn't working, I couldn't say. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --NklN7DEeGtkPCoo3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFD55BbXY6L6fI4GtQRAhD3AKC1TjvVYpXhAjgG33N44mOl/YqS+wCfUcz2 97Dy93t9SK/CUr/hhrVh5d8= =gTbt -----END PGP SIGNATURE----- --NklN7DEeGtkPCoo3--