From owner-freebsd-net Tue Apr 20 12:11:57 1999 Delivered-To: freebsd-net@freebsd.org Received: from sasami.jurai.net (sasami.jurai.net [207.153.65.3]) by hub.freebsd.org (Postfix) with ESMTP id 3153914D8F for ; Tue, 20 Apr 1999 12:11:38 -0700 (PDT) (envelope-from winter@jurai.net) Received: from localhost (winter@localhost) by sasami.jurai.net (8.8.8/8.8.7) with SMTP id PAA01241; Tue, 20 Apr 1999 15:09:03 -0400 (EDT) Date: Tue, 20 Apr 1999 15:09:03 -0400 (EDT) From: "Matthew N. Dodd" To: David Greenman Cc: Paul Southworth , freebsd-net@FreeBSD.ORG Subject: Re: Interfaces don't go down when network is physically down In-Reply-To: <199904201901.MAA10789@implode.root.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, 20 Apr 1999, David Greenman wrote: > I can't think of any problems off hand. I think you'd want to use > if_up() and if_down(), however, since these will do routing socket > notifications about the state change, although I don't know if these > are safe in all interrupt contexts. (from comments leading if_up() in sys/net/if.c) * NOTE: must be called at splnet or eqivalent. Comments for if_down() indicate the same spl. -- | Matthew N. Dodd | 78 280Z | 75 164E | 84 245DL | FreeBSD/NetBSD/Sprite/VMS | | winter@jurai.net | This Space For Rent | ix86,sparc,m68k,pmax,vax | | http://www.jurai.net/~winter | Are you k-rad elite enough for my webpage? | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message