Searched refs:nhp (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.15/net/decnet/ |
D | dn_table.c | 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 356 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 …]
|
D | dn_fib.c | 151 struct rtnexthop *nhp = nla_data(attr); in dn_fib_count_nhs() local 154 while (rtnh_ok(nhp, nhlen)) { in dn_fib_count_nhs() 156 nhp = rtnh_next(nhp, &nhlen); in dn_fib_count_nhs() 166 struct rtnexthop *nhp = nla_data(attr); in dn_fib_get_nhs() local 172 if (!rtnh_ok(nhp, nhlen)) in dn_fib_get_nhs() 175 nh->nh_flags = (r->rtm_flags&~0xFF) | nhp->rtnh_flags; in dn_fib_get_nhs() 176 nh->nh_oif = nhp->rtnh_ifindex; in dn_fib_get_nhs() 177 nh->nh_weight = nhp->rtnh_hops + 1; in dn_fib_get_nhs() 179 attrlen = rtnh_attrlen(nhp); in dn_fib_get_nhs() 183 gw_attr = nla_find((struct nlattr *) (nhp + 1), attrlen, RTA_GATEWAY); in dn_fib_get_nhs() [all …]
|
/Linux-v5.15/net/ipv4/ |
D | ipmr_base.c | 213 struct rtnexthop *nhp; in mr_fill_mroute() local 239 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()
|
D | nexthop.c | 1736 struct nexthop *nhp = nhge->nh_parent; in remove_nh_grp_entry() local 1744 nhg = rtnl_dereference(nhp->nh_grp); in remove_nh_grp_entry() 1749 remove_nexthop(net, nhp, nlinfo); in remove_nh_grp_entry() 1789 rcu_assign_pointer(nhp->nh_grp, newg); in remove_nh_grp_entry() 1798 err = call_nexthop_notifiers(net, NEXTHOP_EVENT_REPLACE, nhp, in remove_nh_grp_entry() 1805 nexthop_notify(RTM_NEWNEXTHOP, nhp, nlinfo); in remove_nh_grp_entry() 2121 struct nexthop *nhp = nhge->nh_parent; in replace_nexthop_single() local 2123 err = replace_nexthop_single_notify(net, nhp, old, oldi, newi, in replace_nexthop_single() 2134 struct nexthop *nhp = nhge->nh_parent; in replace_nexthop_single() local 2137 nhg = rtnl_dereference(nhp->nh_grp); in replace_nexthop_single() [all …]
|
/Linux-v5.15/include/net/ |
D | nexthop.h | 571 struct nexthop *nhp; in nexthop_path_fdb_result() local 573 nhp = nexthop_select_path(nh, hash); in nexthop_path_fdb_result() 574 if (unlikely(!nhp)) in nexthop_path_fdb_result() 576 nhi = rcu_dereference(nhp->nh_info); in nexthop_path_fdb_result()
|