freebsd-dev/sys/net/route
Alexander V. Chernikov c38da70c28 routing: fix RTM_CHANGE nhgroup updates.
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
2022-06-25 18:54:57 +00:00
..
fib_algo.c
fib_algo.h
mpath_ctl.c
nhgrp_ctl.c routing: improve debug logging 2022-06-22 15:59:21 +00:00
nhgrp_var.h
nhgrp.c routing: improve debug logging 2022-06-22 15:59:21 +00:00
nhop_ctl.c routing: improve debug logging 2022-06-22 15:59:21 +00:00
nhop_utils.c
nhop_utils.h
nhop_var.h
nhop.c
nhop.h
route_ctl.c routing: fix RTM_CHANGE nhgroup updates. 2022-06-25 18:54:57 +00:00
route_ctl.h
route_ddb.c
route_debug.h routing: improve debug logging 2022-06-22 15:59:21 +00:00
route_helpers.c
route_ifaddrs.c
route_tables.c
route_temporal.c
route_var.h