Lines Matching refs:nhp
229 struct rtnexthop *nhp; in dn_fib_nh_match() local
246 nhp = nla_data(attrs[RTA_MULTIPATH]); in dn_fib_nh_match()
253 if (attrlen < 0 || (nhlen -= nhp->rtnh_len) < 0) in dn_fib_nh_match()
255 if (nhp->rtnh_ifindex && nhp->rtnh_ifindex != nh->nh_oif) in dn_fib_nh_match()
260 gw_attr = nla_find((struct nlattr *) (nhp + 1), attrlen, RTA_GATEWAY); in dn_fib_nh_match()
266 nhp = RTNH_NEXT(nhp); in dn_fib_nh_match()
346 struct rtnexthop *nhp; in dn_fib_dump_info() local
353 if (!(nhp = nla_reserve_nohdr(skb, sizeof(*nhp)))) in dn_fib_dump_info()
356 nhp->rtnh_flags = nh->nh_flags & 0xFF; in dn_fib_dump_info()
357 nhp->rtnh_hops = nh->nh_weight - 1; in dn_fib_dump_info()
358 nhp->rtnh_ifindex = nh->nh_oif; in dn_fib_dump_info()
364 nhp->rtnh_len = skb_tail_pointer(skb) - (unsigned char *)nhp; in dn_fib_dump_info()