route filtering with nl_cache_subset bug

Loïc Touraine ltouraine at envivio.com
Wed Aug 22 09:47:06 EDT 2012


Hi everyone,
I figure out a bug related to the route_clone method while using nl_cache_subset to filter routes :
The nbnhops field isn't reset upon cloning, hence its value gets incremented twice the number of nhops really set in the clone destination object (the initial value plus each nhop added)
The attached patch fix the bug  : dst->rt_nr_nh is set to 0 prior to add the nhops from the source route object to the destination route object.
Cheers,
Loïc Touraine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20120822/a062ec8a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: route_clone-fix-nbnhops-init.patch
Type: application/octet-stream
Size: 1021 bytes
Desc: route_clone-fix-nbnhops-init.patch
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20120822/a062ec8a/attachment.obj>


More information about the libnl mailing list