HomeFreeBSD

routing: refactor private KPI

Description

routing: refactor private KPI

  • Make nhgrp_get_nhops() return const struct weightened_nhop to indicate that the list is immutable
  • Make nhgrp_get_group() return the actual group, instead of group+weight.

MFC after: 2 weeks

(cherry picked from commit ae6bfd12c8c887b323d623c6c21d29f25622d42d)

Details

Provenance
melifaroAuthored on Aug 1 2022, 10:02 AM
Parents
rG6c01d35b9c40: routing: convert remnants of DPRINTF to FIB_CTL_LOG().
Branches
Unknown
Tags
Unknown