Date: Tue, 20 Jun 2000 22:02:32 +0200 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Brian Somers <brian@Awfulhak.org> Cc: "Matthew N. Dodd" <winter@jurai.net>, Terry Lambert <tlambert@primenet.com>, arch@FreeBSD.ORG, brian@hak.lan.Awfulhak.org Subject: Re: Software detection of link integrity Message-ID: <55570.961531352@critter.freebsd.dk> In-Reply-To: Your message of "Tue, 20 Jun 2000 20:50:34 BST." <200006201950.UAA65946@hak.lan.Awfulhak.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <200006201950.UAA65946@hak.lan.Awfulhak.org>, Brian Somers writes: >> On Tue, 20 Jun 2000, Terry Lambert wrote: >> > Would this be a useful thing to build into ifconfig? >> >> Ideally, network drivers shouldn't set the IFF_UP flag until the link is >> actually up. > >Unless of course the driver (or something behind it) wants to bring >the link up on demand. We actually have major suckage in this corner. I have tried to edge towards more intelligent behaviour: Look at if_up(), if_route() and IFF_SMART. Basically the idea is that an "IFF_SMART" interface will fiddle the up/down-ness of individual protocols as makes sense. I did this entirely for sppp, but it applies fully to any other interface: an ethernet should remain configured but remove the routes if the cable is unplugged. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55570.961531352>
