Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Apr 1999 15:09:03 -0400 (EDT)
From:      "Matthew N. Dodd" <winter@jurai.net>
To:        David Greenman <dg@root.com>
Cc:        Paul Southworth <pauls@ieng.com>, freebsd-net@FreeBSD.ORG
Subject:   Re: Interfaces don't go down when network is physically down 
Message-ID:  <Pine.BSF.4.02.9904201507410.2158-100000@sasami.jurai.net>
In-Reply-To: <199904201901.MAA10789@implode.root.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.02.9904201507410.2158-100000>