aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2022-06-25 18:54:37 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2022-06-25 18:54:57 +0000
commitc38da70c28a886cc31a2f009baa79deb7fceec88 (patch)
treec5e42346c6482bb7f10addda8f1725e07818a63b /tests
parent2c28cd09d9f7ac266a8c7b283384712aba0af93a (diff)
downloadsrc-c38da70c28a886cc31a2f009baa79deb7fceec88.tar.gz
src-c38da70c28a886cc31a2f009baa79deb7fceec88.zip
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
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions