]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
routing: add rib_<add|del>_route_px() functions operating with nexthops.
authorAlexander V. Chernikov <melifaro@FreeBSD.org>
Thu, 4 Aug 2022 14:55:30 +0000 (14:55 +0000)
committerAlexander V. Chernikov <melifaro@FreeBSD.org>
Wed, 10 Aug 2022 18:56:01 +0000 (18:56 +0000)
commit2ce553854cbd04595d99e1cfbc9c12a87dde7906
treeff70446b893340d4723e3d88cd005beb705d9ad6
parent66230639ce311c9fbc3a92e7039b8577a7577b6e
routing: add rib_<add|del>_route_px() functions operating with nexthops.

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.

Differential Revision: https://reviews.freebsd.org/D36073
MFC after: 1 month
sys/conf/files
sys/net/route/mpath_ctl.c [deleted file]
sys/net/route/route_ctl.c
sys/net/route/route_ctl.h
sys/net/route/route_helpers.c