RTM_CHANGE operates on a single component of the multipath route (e.g. on a single nexthop). Search of this nexthop is peformed by iterating over each component from multipath (nexthop) group, using check_info_match_nhop. The problem with the current code that it incorrectly assumes that `check_info_match_nhop()` returns true value on match, while in reality it returns an error code on failure). Fix this by properly comparing the result with 0. Additionally, the followup code modified original necthop group instead of a new one. Fix this by targetting new nexthop group instead. Reported by: thj Tested by: Claudio Jeker <claudio.jeker@klarasystems.com> Differential Revision: https://reviews.freebsd.org/D35526 MFC after: 2 weeks |
||
---|---|---|
.. | ||
fib_algo.c | ||
fib_algo.h | ||
mpath_ctl.c | ||
nhgrp_ctl.c | ||
nhgrp_var.h | ||
nhgrp.c | ||
nhop_ctl.c | ||
nhop_utils.c | ||
nhop_utils.h | ||
nhop_var.h | ||
nhop.c | ||
nhop.h | ||
route_ctl.c | ||
route_ctl.h | ||
route_ddb.c | ||
route_debug.h | ||
route_helpers.c | ||
route_ifaddrs.c | ||
route_tables.c | ||
route_temporal.c | ||
route_var.h |