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)
Feb 20 2024, 4:40 PM
Unknown Object (File)
Feb 20 2024, 4:40 PM
Unknown Object (File)
Feb 20 2024, 4:39 PM
Unknown Object (File)
Feb 20 2024, 4:39 PM
Unknown Object (File)
Feb 20 2024, 4:39 PM
Unknown Object (File)
Feb 20 2024, 4:23 PM
Unknown Object (File)
Jan 27 2024, 6:26 PM
Unknown Object (File)
Jan 27 2024, 6:55 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
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.