Date: Sat, 9 Aug 2003 09:08:34 -0400 (EDT) From: "Matthew N. Dodd" <winter@jurai.net> To: Martin Blapp <mb@imp.ch> Cc: freebsd-current@freebsd.org Subject: Re: dhclient problem with xl0 Message-ID: <20030809090403.N87665@sasami.jurai.net> In-Reply-To: <20030809144556.E49451@cvs.imp.ch> References: <20030809072050.GA7547@crodrigues.org> <20030809122637.D49451@cvs.imp.ch><20030809143707.A49451@cvs.imp.ch> <20030809144556.E49451@cvs.imp.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 9 Aug 2003, Martin Blapp wrote:
> Isn't there a way to see that the card doesn't support reporting
> media status ? If the card does report this, I could add code
> to dhclient and all would be fine.
Yes; check the media status word for IFM_AVALID.
(whitespace damaged)
%%%
--- dhclient.c 28 Jul 2003 13:25:04 -0000 1.27
+++ dhclient.c 9 Aug 2003 13:07:16 -0000
@@ -3221,13 +3221,11 @@
if (ifmr.ifm_status & IFM_ACTIVE)
return (1);
}
+ return (0);
}
- return (0);
-#else /* ifdef __FreeBSD__ */
-
- return (1);
#endif /* Other OSs */
+ return (1);
}
#ifdef __FreeBSD__
%%%
--
| 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?20030809090403.N87665>
