14 Mar
2012
14 Mar
'12
7:50 p.m.
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