Lines Matching refs:nhp
229 struct rtnexthop *nhp;
245 nhp = RTA_DATA(rta->rta_mp);
252 if (attrlen < 0 || (nhlen -= nhp->rtnh_len) < 0)
254 if (nhp->rtnh_ifindex && nhp->rtnh_ifindex != nh->nh_oif)
257 gw = dn_fib_get_attr16(RTNH_DATA(nhp), attrlen, RTA_GATEWAY);
262 nhp = RTNH_NEXT(nhp);
327 struct rtnexthop *nhp;
334 if (skb_tailroom(skb) < RTA_ALIGN(RTA_ALIGN(sizeof(*nhp)) + 4))
336 nhp = (struct rtnexthop *)skb_put(skb, RTA_ALIGN(sizeof(*nhp)));
337 nhp->rtnh_flags = nh->nh_flags & 0xFF;
338 nhp->rtnh_hops = nh->nh_weight - 1;
339 nhp->rtnh_ifindex = nh->nh_oif;
342 nhp->rtnh_len = skb_tail_pointer(skb) - (unsigned char *)nhp;