Searched refs:nhp (Results 1 – 3 of 3) sorted by relevance
231 struct rtnexthop *nhp; in dn_fib_nh_match() local248 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() local356 if (!(nhp = nla_reserve_nohdr(skb, sizeof(*nhp)))) in dn_fib_dump_info()359 nhp->rtnh_flags = nh->nh_flags & 0xFF; in dn_fib_dump_info()360 nhp->rtnh_hops = nh->nh_weight - 1; in dn_fib_dump_info()[all …]
152 struct rtnexthop *nhp = nla_data(attr); in dn_fib_count_nhs() local155 while (rtnh_ok(nhp, nhlen)) { in dn_fib_count_nhs()157 nhp = rtnh_next(nhp, &nhlen); in dn_fib_count_nhs()167 struct rtnexthop *nhp = nla_data(attr); in dn_fib_get_nhs() local173 if (!rtnh_ok(nhp, nhlen)) in dn_fib_get_nhs()176 nh->nh_flags = (r->rtm_flags&~0xFF) | nhp->rtnh_flags; in dn_fib_get_nhs()177 nh->nh_oif = nhp->rtnh_ifindex; in dn_fib_get_nhs()178 nh->nh_weight = nhp->rtnh_hops + 1; in dn_fib_get_nhs()180 attrlen = rtnh_attrlen(nhp); in dn_fib_get_nhs()184 gw_attr = nla_find((struct nlattr *) (nhp + 1), attrlen, RTA_GATEWAY); in dn_fib_get_nhs()[all …]
213 struct rtnexthop *nhp; in mr_fill_mroute() local239 nhp = nla_reserve_nohdr(skb, sizeof(*nhp)); in mr_fill_mroute()240 if (!nhp) { in mr_fill_mroute()245 nhp->rtnh_flags = 0; in mr_fill_mroute()246 nhp->rtnh_hops = c->mfc_un.res.ttls[ct]; in mr_fill_mroute()248 nhp->rtnh_ifindex = vif->dev->ifindex; in mr_fill_mroute()249 nhp->rtnh_len = sizeof(*nhp); in mr_fill_mroute()