Lines Matching defs:nhg
59 /* Use the fact that nhg runtime flags are only NHF_MULTIPATH */
72 const struct nhgrp_object *nhg = (const struct nhgrp_object *)nh;
73 uint8_t origin = nhgrp_get_origin(nhg);
76 nh = nhg->nhops[0];
179 dump_rc_nhg(struct nl_writer *nw, const struct nhgrp_object *nhg, struct rtmsg *rtm)
181 uint32_t uidx = nhgrp_get_uidx(nhg);
183 const struct weightened_nhop *wn = nhgrp_get_nhops(nhg, &num_nhops);
188 nlattr_add_u32(nw, NL_RTA_KNH_ID, nhgrp_get_idx(nhg));
862 struct nhgrp_object *nhg;
864 nhg = nhgrp_alloc(rh->rib_fibnum, rh->rib_family,
866 if (nhg != NULL) {
868 nhgrp_set_origin(nhg, attrs->rtm_protocol);
869 nhg = nhgrp_get_nhgrp(nhg, perror);
873 if (nhg != NULL)
874 return ((struct nhop_object *)nhg);