HomeFreeBSD

netlink: store user-provided rtm_protocol

Description

netlink: store user-provided rtm_protocol

Store user-supplied source protocol in the nexthops and nexthop groups.
Protocol specification help routing daemons like bird to quickly
identify self-originated routes after the crash or restart.

Example:

10.2.0.0/24 via 10.0.0.2 dev vtnet0 proto bird
10.3.0.0/24 proto bird
	nexthop via 10.0.0.2 dev vtnet0 weight 3
	nexthop via 10.0.0.3 dev vtnet0 weight 4

(cherry picked from commit cc2be311772d368541157dcf8bf989f216a5b994)

Details

Provenance
melifaroAuthored on Dec 2 2022, 7:26 PM
Parents
rGa6b537f6b945: netlink: suppress sending NLMSG_ERROR if NLMSG_DONE is already sent
Branches
Unknown
Tags
Unknown