HomeFreeBSD

netlink: fix addition of blackhole/reject routes.

Description

netlink: fix addition of blackhole/reject routes.

  • Make nhop_set_blackhole() set all necessary properties for the nexthop
  • Make nexthops blackhole/reject based on the rtm_type netlink property instead of using rtflags.

Reported by: Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>
MFC after: 3 days

(cherry picked from commit d2deebe21b591336fbd8915b37d409b25da54d4d)

Details

Provenance
melifaroAuthored on Feb 23 2023, 5:38 PM
Parents
rG0196b0944430: Update leap-seconds to latest leap-seconds.3676924800 (expires 2023-12-28)
Branches
Unknown
Tags
Unknown