Re: dhclient problem with xl0

From: Matthew N. Dodd <mdodd_at_FreeBSD.ORG>
Date: Sat, 9 Aug 2003 07:55:01 -0400 (EDT)
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
_at__at_ -3031,6 +3031,10 _at__at_
        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_at_jurai.net |       2 x '84 Volvo 245DL        | ix86,sparc,pmax |
| http://www.jurai.net/~winter |  For Great Justice!  | ISO8802.5 4ever |
Received on Sat Aug 09 2003 - 02:55:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:18 UTC