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
Approved by: re(cperciva)

(cherry picked from commit d2deebe21b591336fbd8915b37d409b25da54d4d)
(cherry picked from commit f054a56ef3e8dc30ba0904d43cf7ec7b3e6e0ed4)

Details

Provenance
melifaroAuthored on Feb 23 2023, 5:38 PM
Parents
rG09510a1a755c: netlink: clear IPv6 embedded scope when dumping route gateways.
Branches
Unknown
Tags
Unknown