Searched refs:nh_orig (Results 1 – 4 of 4) sorted by relevance
/freebsd/sys/net/route/ |
H A D | nhop_ctl.c | 436 nhop_create_from_nhop(struct rib_head *rnh, const struct nhop_object *nh_orig, in nhop_create_from_nhop() argument 448 nhop_copy(nh, nh_orig); in nhop_create_from_nhop() 701 nhop_copy(struct nhop_object *nh, const struct nhop_object *nh_orig) in nhop_copy() argument 705 nh->nh_flags = nh_orig->nh_flags; in nhop_copy() 706 nh->nh_mtu = nh_orig->nh_mtu; in nhop_copy() 707 memcpy(&nh->gw_sa, &nh_orig->gw_sa, nh_orig->gw_sa.sa_len); in nhop_copy() 708 nh->nh_ifp = nh_orig->nh_ifp; in nhop_copy() 709 nh->nh_ifa = nh_orig->nh_ifa; in nhop_copy() 710 nh->nh_aifp = nh_orig->nh_aifp; in nhop_copy() 712 nh_priv->nh_upper_family = nh_orig->nh_priv->nh_upper_family; in nhop_copy() [all …]
|
H A D | route_ctl.c | 1105 struct nhop_object *nh_orig, struct nhop_object **nh_new) in change_nhop() argument 1114 if (((nh_orig->nh_flags & NHF_GATEWAY) && in change_nhop() 1118 !sa_equal(info->rti_info[RTAX_IFA], nh_orig->nh_ifa->ifa_addr))) { in change_nhop() 1127 error = nhop_create_from_nhop(rnh, nh_orig, info, nh_new); in change_nhop() 1140 struct nhop_object *nh_orig = NULL, *nh_new; in change_mpath_route() local 1149 nh_orig = wn[i].nh; in change_mpath_route() 1155 if (nh_orig == NULL) in change_mpath_route() 1158 error = change_nhop(rnh, info, nh_orig, &nh_new); in change_mpath_route() 1192 struct nhop_object *nh_orig; in change_route_byinfo() local 1195 nh_orig = rnd_orig->rnd_nhop; in change_route_byinfo() [all …]
|
H A D | nhop.h | 181 void nhop_copy(struct nhop_object *nh, const struct nhop_object *nh_orig);
|
H A D | route_var.h | 261 int nhop_create_from_nhop(struct rib_head *rnh, const struct nhop_object *nh_orig,
|