Subject: Re: Alternative approach for interface events
To: None <tech-net@NetBSD.org>
From: Peter Postma <peter@pointless.nl>
List: tech-net
Date: 09/19/2004 23:29:30
On Mon, Sep 20, 2004 at 04:37:02AM +0900, YAMAMOTO Takashi wrote:
> > I've created a small patch that
> > implements the interface events differently (patch applies to 2.0 beta).
> > 
> > Pros: no hacks to pfil(9), suits better and cleaner.
> > Cons: yet another interface that registers functions to be executed, more?
> > 
> > Comments?
> 
> how about just importing openbsd's dohooks or freebsd's EVENTHANDLER?
> 

FreeBSD's eventhandler seems too much code to me for handling interface
changes. But if we want a general event handling mechanism then it might
be useful.

And OpenBSD's dohooks is too minimal in my opinion, it lacks some
functionality. And the name is a bad choice too, IMHO.

-- 
Peter Postma