route filtering with nl_cache_subset bug
Thomas Graf
tgraf at suug.ch
Wed Aug 29 06:15:56 EDT 2012
On Wed, Aug 22, 2012 at 01:47:06PM +0000, Loïc Touraine wrote:
> 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.
Nice find. Applied, thanks!
More information about the libnl
mailing list