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)
Sat, Apr 27, 1:56 PM
Unknown Object (File)
Sat, Apr 27, 1:56 PM
Unknown Object (File)
Sat, Apr 27, 1:56 PM
Unknown Object (File)
Sat, Apr 27, 1:56 PM
Unknown Object (File)
Sat, Apr 27, 1:56 PM
Unknown Object (File)
Sat, Apr 27, 12:35 PM
Unknown Object (File)
Feb 20 2024, 4:40 PM
Unknown Object (File)
Feb 20 2024, 4:40 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46781
Build 43670: 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.