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
Unknown Object (File)
Mon, Nov 11, 4:18 AM
Unknown Object (File)
Sep 25 2024, 6:39 AM
Unknown Object (File)
Sep 25 2024, 4:29 AM
Unknown Object (File)
Sep 8 2024, 10:23 AM
Unknown Object (File)
Sep 7 2024, 5:46 PM
Unknown Object (File)
Sep 5 2024, 2:15 AM
Unknown Object (File)
Sep 1 2024, 7:03 AM
Unknown Object (File)
Sep 1 2024, 7:03 AM
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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46783
Build 43672: arc lint + arc unit

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.