From owner-freebsd-arch Tue Jun 20 13: 2:52 2000 Delivered-To: freebsd-arch@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id 82AED37BFFF for ; Tue, 20 Jun 2000 13:02:48 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id WAA55572; Tue, 20 Jun 2000 22:02:32 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Brian Somers Cc: "Matthew N. Dodd" , Terry Lambert , arch@FreeBSD.ORG, brian@hak.lan.Awfulhak.org Subject: Re: Software detection of link integrity In-reply-to: Your message of "Tue, 20 Jun 2000 20:50:34 BST." <200006201950.UAA65946@hak.lan.Awfulhak.org> Date: Tue, 20 Jun 2000 22:02:32 +0200 Message-ID: <55570.961531352@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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