From owner-freebsd-mobile@FreeBSD.ORG Fri Feb 3 18:46:09 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 910C616A420 for ; Fri, 3 Feb 2006 18:46:09 +0000 (GMT) (envelope-from pneumann@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id E698743D46 for ; Fri, 3 Feb 2006 18:46:08 +0000 (GMT) (envelope-from pneumann@gmail.com) Received: by wproxy.gmail.com with SMTP id 71so683071wra for ; Fri, 03 Feb 2006 10:46:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=f6kNI0i2uITaSrSHv6ySAlfTfhkHARIC5zj2Y6rGjRSeBksRzwE71cFg90amNT+MUdYjXQg9DJKQhF60YVCWbch6ZNolisUVKNAw0HXo8yESfRWS+y2p1Pwogjqe1pqruLrWXMxWWxKyuaDnOiMENG2ZMVT/HDoP2fgdpq6RS4w= Received: by 10.54.120.9 with SMTP id s9mr288186wrc; Fri, 03 Feb 2006 10:46:07 -0800 (PST) Received: from ?10.0.0.100? ( [200.30.215.5]) by mx.gmail.com with ESMTP id 65sm3407353wra.2006.02.03.10.46.05; Fri, 03 Feb 2006 10:46:07 -0800 (PST) From: Phillip Neumann To: Brooks Davis In-Reply-To: <20060131012215.GA18380@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> Content-Type: text/plain; charset=utf-8 Date: Fri, 03 Feb 2006 10:46:01 +0000 Message-Id: <1138963561.839.1.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit 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: Fri, 03 Feb 2006 18:46:09 -0000 sorry for the delay. El lun, 30-01-2006 a las 17:22 -0800, Brooks Davis escribió: > 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ó: > > > On Mon, Jan 30, 2006 at 12:56:01AM +0000, Phillip Neumann wrote: > > > > Im trying to understand devd.conf. > > > > > > > > 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 actually > > > > # run it. No link down rule exists because dhclient automaticly exits > > > > # when the link goes down. > > > > > > > > when i unplug the rj45, i dont see dhclient quitting. i have to ifconfig > > > > the interface down. only so, dhclient will exit. > > > > > > > > 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"; > > > > }; > > > > > > > > when i unplug the cable it will stop dhclient, but, when i plug the > > > > cable in again, devd sees 2 events, the LINK_UP and inmedialy it see a > > > > LINK_DOWN, so dhclient is stopped. > > > > > > Your network card's driver has a broken if_media configuration. What > > > kind of nic is it? > > > > > > > bfe0: flags=8843 mtu 1500 > > > > 02:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX > > (rev 02) > > > > broken where do you mean?.. > > 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. > ok. > > > > whats the correct way to configure the ethernet cards? > > > > > > > > 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, stop it? > > > > > > > > i have run devd -dD, but it does not seems to get any event from the > > > > wifi card. its an intel 2200. > > > > > > If your card is running wpa_supplicant, this is exactly what should > > > happen. > > > > well actually not. im just running dhcp. no wpa. at least ive not > > configured so. and i guess its not enabled by default... > > 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. > well it does work. But when i ifconfig iwi0 down, dhclient should quit right?. and when ifconfig iwi0 up it should run ? saludos, > -- Brooks > -- Phillip Neumann