From owner-freebsd-current@FreeBSD.ORG Sat Aug 9 04:55:06 2003 Return-Path: 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 1662C37B401 for ; Sat, 9 Aug 2003 04:55:06 -0700 (PDT) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5849743FD7 for ; Sat, 9 Aug 2003 04:55:05 -0700 (PDT) (envelope-from mdodd@FreeBSD.ORG) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by sasami.jurai.net (8.12.9/8.12.9) with ESMTP id h79Bt13q050146; Sat, 9 Aug 2003 07:55:01 -0400 (EDT) (envelope-from mdodd@FreeBSD.ORG) Date: Sat, 9 Aug 2003 07:55:01 -0400 (EDT) From: "Matthew N. Dodd" X-X-Sender: winter@sasami.jurai.net To: Craig Rodrigues In-Reply-To: <20030809072050.GA7547@crodrigues.org> Message-ID: <20030809075422.A87665@sasami.jurai.net> References: <20030809072050.GA7547@crodrigues.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: mb@imp.ch cc: freebsd-current@FreeBSD.ORG Subject: Re: dhclient problem with xl0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 09 Aug 2003 11:55:06 -0000 On Sat, 9 Aug 2003, Craig Rodrigues wrote: > I just did a cvsup of -CURRENT and rebuilt the world. > dhclient doesn't seem to work for me any more. > It looks like a problem with dhclient, and not the > kernel, because an older version of dhclient works fine. > > Here is the output of dhclient -v -d xl0 Try this (cut & paste): %%% Index: if_xl.c =================================================================== RCS file: /cvs/src/sys/pci/if_xl.c,v retrieving revision 1.150 diff -u -u -r1.150 if_xl.c --- if_xl.c 27 Jul 2003 13:56:03 -0000 1.150 +++ if_xl.c 4 Aug 2003 15:46:36 -0000 @@ -3031,6 +3031,10 @@ icfg >>= XL_ICFG_CONNECTOR_BITS; ifmr->ifm_active = IFM_ETHER; + ifmr->ifm_status = IFM_AVALID; + + if (!(CSR_READ_2(sc, XL_W4_MEDIA_STATUS) & XL_MEDIASTAT_CARRIER)) + ifmr->ifm_status |= IFM_ACTIVE; switch(icfg) { case XL_XCVR_10BT: %%% -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | For Great Justice! | ISO8802.5 4ever |