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

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.

   ...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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904201911.MAA10860>