From owner-freebsd-net Tue Apr 20 12:15:18 1999 Delivered-To: freebsd-net@freebsd.org Received: from implode.root.com (root.com [209.102.106.178]) by hub.freebsd.org (Postfix) with ESMTP id 23A191582E for ; Tue, 20 Apr 1999 12:15:09 -0700 (PDT) (envelope-from root@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.8/8.8.5) with ESMTP id MAA10860; Tue, 20 Apr 1999 12:11:14 -0700 (PDT) Message-Id: <199904201911.MAA10860@implode.root.com> To: "Matthew N. Dodd" Cc: Paul Southworth , freebsd-net@FreeBSD.ORG Subject: Re: Interfaces don't go down when network is physically down In-reply-to: Your message of "Tue, 20 Apr 1999 15:09:03 EDT." From: David Greenman Reply-To: dg@root.com Date: Tue, 20 Apr 1999 12:11:14 -0700 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. ...yes, but that doesn't really mean anything, other than that it messes with things that need soft interrupt protection. -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project - http://www.freebsd.org Creator of high-performance Internet servers - http://www.terasolutions.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message