[PATCH] Allow to match on the kernel route protocol in filters
Jérémie Dimino
jeremie at dimino.org
Wed Mar 14 20:50:24 CET 2012
Hi,
I made a patch that allow to access the protocol field of routes
learned from the kernel. The goal is to be able to filter on the
protocol that added the route. For example FDN [1] need it to filter
routes added by a patched version of l2tpns [2].
The patch adds two attributes: krt_source and krt_proto. krt_source
is an enum which export the u.krt.src field of routes and krt_proto is
an integer which export the u.krt.proto field. The patch also adds
constants from /etc/iproute2/rt_protos.
[1] http://www.fdn.fr/
[2] http://dolka.fr/code/l2tpns.git
Cheers,
--
Jérémie
More information about the Bird-users
mailing list