Subject: Re: Alternative approach for interface events
To: None <email@example.com>
From: YAMAMOTO Takashi <firstname.lastname@example.org>
Date: 09/20/2004 04:37:02
> I'm not really happy with the changes to pfil(9) to support interface
> events (attach, detach, addresses). IMHO, the changes made the pfil(9) API
> more ugly (e.g. extra conditionals in pfil_run_hooks) and I don't think that
> the pfil(9) API should be used for handling such things (pfil is for packet
> filtering, not watching interface events).
> 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?
how about just importing openbsd's dohooks or freebsd's EVENTHANDLER?