HomeFreeBSD

routing: Disallow zero nexthop weights in nexthop groups.

Description

routing: Disallow zero nexthop weights in nexthop groups.

Adding such nexthops breaks calc_min_mpath_slots() assumptions,
thus resulting in the incorrect nexthop group creation and
eventually leading to panic.
Reported by: avg

(cherry picked from commit 0a3a377aee9bb28546fd2d1e45baa3fcad02439b)

Details

Provenance
melifaroAuthored on Aug 30 2021, 9:49 PM
Parents
rG8c73907c66a7: routing: simplify malloc flags in alloc_nhgrp().
Branches
Unknown
Tags
Unknown