Lines Matching defs:mpnh
445 struct rta_mpath_nh *mpnh = &mp->nhops[mp->num_nhops++];
448 npt, mpnh);
806 create_nexthop_one(struct nl_parsed_route *attrs, struct rta_mpath_nh *mpnh,
811 if (mpnh->gw == NULL)
818 error = nl_set_nexthop_gw(nh, mpnh->gw, mpnh->ifp, npt);
823 if (mpnh->ifp != NULL)
824 nhop_set_transmit_ifp(nh, mpnh->ifp);
850 struct rta_mpath_nh *mpnh = &attrs->rta_multipath->nhops[i];
852 error = create_nexthop_one(attrs, mpnh, npt, &wn[i].nh);
858 wn[i].weight = mpnh->rtnh_weight > 0 ? mpnh->rtnh_weight : 1;