Subject: Re: thoughts on a dohooks(9) API?
To: Jeff Rizzo <riz@NetBSD.org>
From: Pavel Cahyna <pavel.cahyna@st.mff.cuni.cz>
List: tech-kern
Date: 01/04/2006 18:41:26
On Wed, Jan 04, 2006 at 08:26:20AM -0800, Jeff Rizzo wrote:
> I'm helping someone to port carp(4) from OpenBSD
> (comments/flames/whatever on the desirability of THAT in another thread,
> please :), and we've come across some instances where we need to add
> hooks to certain events (interface up, address change, etc). OpenBSD
> has a dohooks(9) API that is used to implement various hook-needing
> functions (their doshutdownhooks() is implemented on top of it, for
This has been discussed, see
http://mail-index.netbsd.org/tech-net/2004/09/19/0012.html and the whole
thread.
See also pfil_add_hook(9). couldn't it do what you need?
Pavel Cahyna