git: 1b8b69508bc5 - main - routing: copy nexthop fib when changing existing nexthop
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Mar 2022 11:32:36 UTC
The branch main has been updated by melifaro:
URL: https://cgit.FreeBSD.org/src/commit/?id=1b8b69508bc55a797ba344f95f05978408629e25
commit 1b8b69508bc55a797ba344f95f05978408629e25
Author: Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2022-03-28 11:31:23 +0000
Commit: Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2022-03-28 11:32:30 +0000
routing: copy nexthop fib when changing existing nexthop
MFC after: 1 day
---
sys/net/route/nhop_ctl.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/net/route/nhop_ctl.c b/sys/net/route/nhop_ctl.c
index 16b8ca46739a..b9b6a6b59139 100644
--- a/sys/net/route/nhop_ctl.c
+++ b/sys/net/route/nhop_ctl.c
@@ -475,6 +475,7 @@ nhop_create_from_nhop(struct rib_head *rnh, const struct nhop_object *nh_orig,
nh_priv->nh_neigh_family = nh_orig->nh_priv->nh_neigh_family;
nh_priv->rt_flags = nh_orig->nh_priv->rt_flags;
nh_priv->nh_type = nh_orig->nh_priv->nh_type;
+ nh_priv->nh_fibnum = nh_orig->nh_priv->nh_fibnum;
nh->nh_ifp = nh_orig->nh_ifp;
nh->nh_ifa = nh_orig->nh_ifa;