Lines Matching defs:rtnh
197 struct rtnexthop *rtnh = nlmsg_reserve_object(nw, struct rtnexthop);
198 if (rtnh == NULL)
200 rtnh->rtnh_flags = 0;
201 rtnh->rtnh_ifindex = if_getindex(wn[i].nh->nh_ifp);
202 rtnh->rtnh_hops = wn[i].weight;
209 rtnh = nlattr_restore_offset(nw, nh_off, struct rtnexthop);
214 rtnh->rtnh_len = nlattr_save_offset(nw) - nh_off;
437 struct rtnexthop *rtnh;
444 for (rtnh = (struct rtnexthop *)(nla + 1); data_len > 0; ) {
447 int error = nl_parse_header(rtnh, rtnh->rtnh_len, &mpath_parser,
455 int len = NL_ITEM_ALIGN(rtnh->rtnh_len);
457 rtnh = (struct rtnexthop *)((char *)rtnh + len);