git: 21d23766841d - stable/13 - routing: install prefix and loopback routes using new nhop-based KPI.

From: Alexander V. Chernikov <melifaro_at_FreeBSD.org>
Date: Fri, 13 Jan 2023 21:25:15 UTC
The branch stable/13 has been updated by melifaro:

URL: https://cgit.FreeBSD.org/src/commit/?id=21d23766841d8e13dd80d315ce8bf3e0fd1b5027

commit 21d23766841d8e13dd80d315ce8bf3e0fd1b5027
Author:     Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2022-08-08 19:24:26 +0000
Commit:     Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2023-01-13 21:24:10 +0000

    routing: install prefix and loopback routes using new nhop-based KPI.
    
    Construct the desired hexthops directly instead of using the
     "translation" layer in form of filling rt_addrinfo data.
    Simplify V_rt_add_addr_allfibs handling by using recently-added
     rib_copy_route() to propagate the routes to the non-primary address
     fibs.
    
    Differential Revision:  https://reviews.freebsd.org/D36166
    
    (cherry picked from commit a1b59379db7d879551118b921f6e9692b4bf200c)
---
 sys/net/route/route_ctl.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/net/route/route_ctl.h b/sys/net/route/route_ctl.h
index 19fe5362b6ec..5cb7e67120ae 100644
--- a/sys/net/route/route_ctl.h
+++ b/sys/net/route/route_ctl.h
@@ -75,6 +75,8 @@ int rib_change_route(uint32_t fibnum, struct rt_addrinfo *info,
   struct rib_cmd_info *rc);
 int rib_action(uint32_t fibnum, int action, struct rt_addrinfo *info,
   struct rib_cmd_info *rc);
+int rib_match_gw(const struct rtentry *rt, const struct nhop_object *nh,
+    void *_data);
 int rib_handle_ifaddr_info(uint32_t fibnum, int cmd, struct rt_addrinfo *info);
 
 int rib_match_gw(const struct rtentry *rt, const struct nhop_object *nh,