routing: copy nexthop fib when changing existing nexthop

MFC after:	1 day
This commit is contained in:
Alexander V. Chernikov 2022-03-28 11:31:23 +00:00
parent f461b95561
commit 1b8b69508b

View File

@ -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;