From owner-freebsd-current@FreeBSD.ORG Wed Jul 27 20:01:23 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7007816A41F for ; Wed, 27 Jul 2005 20:01:23 +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 18B4843D4C for ; Wed, 27 Jul 2005 20:01:23 +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 j6RK1IQi023571; Wed, 27 Jul 2005 13:01:18 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j6RK1I1M023570; Wed, 27 Jul 2005 13:01:18 -0700 Date: Wed, 27 Jul 2005 13:01:18 -0700 From: Brooks Davis To: Jung-uk Kim Message-ID: <20050727200118.GE20112@odin.ac.hmc.edu> References: <42E58007.9030202@rogers.com> <20050726233933.GA13679@odin.ac.hmc.edu> <20050727191043.GA17885@odin.ac.hmc.edu> <200507271555.00945.jkim@niksun.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="X3gaHHMYHkYqP6yf" Content-Disposition: inline In-Reply-To: <200507271555.00945.jkim@niksun.com> 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: Wilko Bulte , freebsd-current@FreeBSD.org, Mike Jakubik Subject: Re: dhclient taking all cpu X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2005 20:01:23 -0000 --X3gaHHMYHkYqP6yf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 27, 2005 at 03:54:58PM -0400, Jung-uk Kim wrote: > On Wednesday 27 July 2005 03:10 pm, Brooks Davis wrote: > > I think I've found it. There was a really odd typo (=3D instead of > > +) in the code that handles undersized captures on the bpf socket.=20 > > Please try the following patch and see if it solves the problem.=20 > > I'm testing here, but I don't have a reliable way to trigger the > > bug. The fix is fairly obvious so I'll commit it to head shortly. >=20 > Good catch! It seems to fix my 'infinite loop' problem. >=20 > One more problem to solve... I have to do the following to make=20 > bge(4) working correctly at boot time: >=20 > ifconfig_bge0=3D"up DHCP" >=20 > Without `up', dhclient fails like this: >=20 > bge0: link state changed to DOWN > bge0: no link .............. giving up > bge0: flags=3D8802 mtu 1500 > options=3D1a > ether xx:xx:xx:xx:xx:xx > media: Ethernet autoselect (none) > status: no carrier >=20 > because bge(4) does not change link state while the interface is down. = =20 > This problem is more serious with wireless driver because link=20 > doesn't go up until it is associated with some AP. >=20 > I was always wondering which is correct. Do we have to update link=20 > state while interface is down or not? The interface shouldn't really be doing anything if it isn't up. I'm tempted to change the code to always "ifconfig up" interfaces configured for DHCP. Longer term (7.x) I may change things to that's all etc/rc.d/netif does for DHCP interfaces. There are a number of issues to work out before that's feasiable though so I'm not doing anything other then pondering at this point. -- 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 --X3gaHHMYHkYqP6yf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFC5+gNXY6L6fI4GtQRAr9hAJ4zfmzJQ9wojg0xgBWgrfGbdXcdtwCgjavD /jTXAqlZm6XmbkhQhXSvX5k= =XsCL -----END PGP SIGNATURE----- --X3gaHHMYHkYqP6yf--