Searched refs:nh_orig (Results 1 – 3 of 3) sorted by relevance
654 struct nhop_object *nh_orig; in add_route() local686 nh_orig = rnd_orig.rnd_nhop; in add_route()693 nhop_free(nh_orig); in add_route()978 nh_orig = NULL; in change_mpath_route()981 nh_orig = wn[i].nh; in change_mpath_route()986 if (nh_orig == NULL) in change_mpath_route()1002 if (wn[i].nh == nh_orig) { in change_mpath_route()1032 if (nh_orig == NULL) in change_route()1036 if (NH_IS_NHGRP(nh_orig)) in change_route()1108 nh_orig = rt->rt_nhop; in change_route_nhop()[all …]
454 nhop_create_from_nhop(struct rib_head *rnh, const struct nhop_object *nh_orig, in nhop_create_from_nhop() argument467 nh_priv->nh_family = nh_orig->nh_priv->nh_family; in nhop_create_from_nhop()468 nh_priv->rt_flags = nh_orig->nh_priv->rt_flags; in nhop_create_from_nhop()469 nh_priv->nh_type = nh_orig->nh_priv->nh_type; in nhop_create_from_nhop()471 nh->nh_ifp = nh_orig->nh_ifp; in nhop_create_from_nhop()472 nh->nh_ifa = nh_orig->nh_ifa; in nhop_create_from_nhop()473 nh->nh_aifp = nh_orig->nh_aifp; in nhop_create_from_nhop()474 nh->nh_mtu = nh_orig->nh_mtu; in nhop_create_from_nhop()475 nh->nh_flags = nh_orig->nh_flags; in nhop_create_from_nhop()476 memcpy(&nh->gw_sa, &nh_orig->gw_sa, nh_orig->gw_sa.sa_len); in nhop_create_from_nhop()
248 int nhop_create_from_nhop(struct rib_head *rnh, const struct nhop_object *nh_orig,