On Tue, Apr 12, 2011 at 2:29 PM, Chris Turner <[email protected]> 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
