Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Aug 2009 19:47:34 -0000
From:      Stef Walter <stef-list@memberwebs.com>
To:        Julian Elischer <julian@elischer.org>
Cc:        "freebsd-net@FreeBSD.org" <freebsd-net@freebsd.org>
Subject:   Re: [patch] Unbreak setfib + routing daemons
Resent-Message-ID: <none>
References:  <4A9C137C.7020303@elischer.org>

| previous in thread | raw e-mail | index | archive | help
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.

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"ll look a tyour change and see what we can do.
> it might just make it to 8.1 at this stage but we can
> see what it looks like.

I've posted a new patch which should handle all the various senders of
route messages better. Qing Li pointed out some naive assumptions I made
in my initial patch. It's more complex because we can no longer use
M_GETFIB and M_SETFIB to relay FIB information into the netisr routine.

> how much have you tested this?

I need this for some client systems that we're upgrading. I'll be
putting it into production this week. If there's any problems with it,
I'll let you and the mailing list know.

Cheers,

Stef




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?>