Page MenuHomeFreeBSD

routing: add rib_<add|del>_route_px() functions operating with nexthops.
ClosedPublic

Authored by melifaro on Aug 8 2022, 12:56 PM.
Tags
None
Referenced Files
F167827642: D36073.id109118.diff
Mon, Aug 24, 7:54 PM
F167807519: D36073.id109118.diff
Mon, Aug 24, 5:04 PM
F167723654: D36073.id.diff
Mon, Aug 24, 1:00 AM
F167720311: D36073.diff
Mon, Aug 24, 12:13 AM
Unknown Object (File)
Thu, Aug 20, 8:17 PM
Unknown Object (File)
Wed, Aug 19, 5:03 PM
Unknown Object (File)
Wed, Aug 19, 4:32 PM
Unknown Object (File)
Wed, Aug 19, 1:26 PM
Subscribers

Details

Summary

This change adds public KPI to work with routes using pre-created nexthops, instead of using data from addrinfo structures. These functions will be later used for adding/deleting kernel-originated routes and upcoming netlink protocol.

As a part of providing this KPI, low-level route addition code has been reworked to provide more control over route creation or change.
Specifically, a number of operation flags (RTM_F_<CREATE|EXCL|REPLACE|APPEND>) have been added, defining the desired behaviour the the route already exists (or not exists). This change required some changes in the multipath addition code, resulting in moving this code to route_ctl.c, rendering mpath_ctl.c empty.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

reflect mpath_ctl.c deletion.

This revision was not accepted when it landed; it landed in state Needs Review.Aug 10 2022, 7:05 PM
This revision was automatically updated to reflect the committed changes.