DragonFly kernel List (threaded) for 2011-04
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: ifstated(8) port from openbsd
On Tue, Apr 12, 2011 at 2:29 PM, Chris Turner
<c.turner@199technologies.com> wrote:
> Hello all -
>
> I'm working on an ifstated(8) port from OpenBSD for post release -
> its basically pretty straightforward but requires a minor tweak
> to the kernel routing socket interface which allows setsockopt() to
> filter on specific routing events - which is then used via the kevent
> interface to poll for interface changes.
>
> Reviewing our sources I recall that the routing code has been heavily
> parallelized - so instead of a single 'route_input' function,
> there is a rts_input_skip and rts_input_handler function -
Yeah, you could put filter code there. Note about
rts_input_handler(): It only happens in netisr0.
Best Regards,
sephe
--
Tomorrow Will Never Die
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]