[patch] Unbreak setfib + routing daemons

Claudio Jeker cjeker at diehard.n-r-g.com
Tue Sep 1 06:51:32 UTC 2009


On Mon, Aug 31, 2009 at 07:48:32PM +0000, Stef Walter wrote:
> Julian Elischer wrote:
> > there are two ways to go with this one being what you have done teh
> > other to add fib info to the messages, Apparently
> > OpenBSD has implemented the second by re-using a disused field.
> > (I'm ve only been told this second hand)
> 
> It seems like they've taken apart the rtm_flags field (int), and
> repurposed it as rtm_tableid (u_short), rtm_priority (u_char) and padding.
> 

This is not 100% correct. rtm_flags is still there. We changed the
structure of the routing messages some time ago and added the necessary
additional fields while doing that. This included a bump in rtm_version
and a simple recompile of third party routing daemons like quagga was
enough.

> Obviously such a change would require patches to the various routing
> daemons as well. But if you think this is the only way forward (ie:
> filtering the messages in userland), I'd be happy to contribute.
> 

I plan to extend our routing socket filters to include the tableid making
it possible to limit the messages to only that part needed.
Getting all messages from all routing domains into all PF_ROUTE listeners
results in unneeded overhead.

-- 
:wq Claudio


More information about the freebsd-net mailing list