HomeFreeBSD

routing: fix crash when RTM_CHANGE results in no-op for the multipath

Description

routing: fix crash when RTM_CHANGE results in no-op for the multipath
route.

Reporting logic assumed there is always some nhop change for every
successful modification operation. Explicitly check that the changed
nexthop indeed exists when reporting back to userland.

MFC after: 2 weeks
Reported by: Claudio Jeker <claudio.jeker@klarasystems.com>
Tested by: Claudio Jeker <claudio.jeker@klarasystems.com>

Details

Provenance
melifaroAuthored on Jun 25 2022, 7:32 PM
Parents
rGbd03f10a6018: routing: add multipath pytest tests
Branches
Unknown
Tags
Unknown