Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Aug 2003 07:55:01 -0400 (EDT)
From:      "Matthew N. Dodd" <mdodd@FreeBSD.ORG>
To:        Craig Rodrigues <rodrigc@crodrigues.org>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: dhclient problem with xl0
Message-ID:  <20030809075422.A87665@sasami.jurai.net>
In-Reply-To: <20030809072050.GA7547@crodrigues.org>
References:  <20030809072050.GA7547@crodrigues.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 |



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030809075422.A87665>