Lines Matching refs:nhp
231 struct rtnexthop *nhp; in dn_fib_nh_match() local
248 nhp = nla_data(attrs[RTA_MULTIPATH]); in dn_fib_nh_match()
255 if (attrlen < 0 || (nhlen -= nhp->rtnh_len) < 0) in dn_fib_nh_match()
257 if (nhp->rtnh_ifindex && nhp->rtnh_ifindex != nh->nh_oif) in dn_fib_nh_match()
262 gw_attr = nla_find((struct nlattr *) (nhp + 1), attrlen, RTA_GATEWAY); in dn_fib_nh_match()
268 nhp = RTNH_NEXT(nhp); in dn_fib_nh_match()
348 struct rtnexthop *nhp; in dn_fib_dump_info() local
355 if (!(nhp = nla_reserve_nohdr(skb, sizeof(*nhp)))) in dn_fib_dump_info()
358 nhp->rtnh_flags = nh->nh_flags & 0xFF; in dn_fib_dump_info()
359 nhp->rtnh_hops = nh->nh_weight - 1; in dn_fib_dump_info()
360 nhp->rtnh_ifindex = nh->nh_oif; in dn_fib_dump_info()
366 nhp->rtnh_len = skb_tail_pointer(skb) - (unsigned char *)nhp; in dn_fib_dump_info()