Lines Matching refs:nhg
72 const struct nhgrp_object *nhg = (const struct nhgrp_object *)nh; in nl_get_rtm_protocol() local
73 uint8_t origin = nhgrp_get_origin(nhg); in nl_get_rtm_protocol()
76 nh = nhg->nhops[0]; in nl_get_rtm_protocol()
179 dump_rc_nhg(struct nl_writer *nw, const struct nhgrp_object *nhg, struct rtmsg *rtm) in dump_rc_nhg() argument
181 uint32_t uidx = nhgrp_get_uidx(nhg); in dump_rc_nhg()
183 const struct weightened_nhop *wn = nhgrp_get_nhops(nhg, &num_nhops); in dump_rc_nhg()
188 nlattr_add_u32(nw, NL_RTA_KNH_ID, nhgrp_get_idx(nhg)); in dump_rc_nhg()
874 struct nhgrp_object *nhg; in create_nexthop_from_attrs() local
876 nhg = nhgrp_alloc(rh->rib_fibnum, rh->rib_family, in create_nexthop_from_attrs()
878 if (nhg != NULL) { in create_nexthop_from_attrs()
880 nhgrp_set_origin(nhg, attrs->rtm_protocol); in create_nexthop_from_attrs()
881 nhg = nhgrp_get_nhgrp(nhg, perror); in create_nexthop_from_attrs()
885 if (nhg != NULL) in create_nexthop_from_attrs()
886 return ((struct nhop_object *)nhg); in create_nexthop_from_attrs()