On Wed, Aug 17, 2011 at 07:59:39PM +0100, Alex Bligh wrote:
Is it possible either to control what routes the kernel protocol learns from the kernel using "learn" by what /kernel/ protocol they are (meaning the "protocol xxxx" field to the "ip route add" command on linux),
This is not possible - although the value of (kernel) protocol field is learned, it is not accessible to filters. It will be trivial to add this feature. But i wonder if there are any sensible use cases. Perhaps an import of routes from other routing daemons through kernel table? It is usually a good idea to either import nothing from kernel, or everything (because these routes wouldn't disappear if we do not import them, just the synchronization will be incomplete). But it is true that such filtering can make sense when the learned routes are later exported to the other routing protocols. OTOH, you can use more kernel routing tables, more kernel protocols (each for one kernel table) and filter learned routes based on that. -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."