Lines Matching refs:rtnh
1026 struct rtnexthop *rtnh = nla_data(attr); in parse_multipath() local
1030 while (tlen >= sizeof(*rtnh) && tlen >= rtnh->rtnh_len) { in parse_multipath()
1035 rtnl_route_nh_set_weight(nh, rtnh->rtnh_hops); in parse_multipath()
1036 rtnl_route_nh_set_ifindex(nh, rtnh->rtnh_ifindex); in parse_multipath()
1037 rtnl_route_nh_set_flags(nh, rtnh->rtnh_flags); in parse_multipath()
1039 if (rtnh->rtnh_len > sizeof(*rtnh)) { in parse_multipath()
1043 RTNH_DATA(rtnh), in parse_multipath()
1044 rtnh->rtnh_len - sizeof(*rtnh), in parse_multipath()
1107 tlen -= RTNH_ALIGN(rtnh->rtnh_len); in parse_multipath()
1108 rtnh = RTNH_NEXT(rtnh); in parse_multipath()
1447 struct rtnexthop *rtnh; in rtnl_route_build_msg() local
1449 rtnh = nlmsg_reserve(msg, sizeof(*rtnh), NLMSG_ALIGNTO); in rtnl_route_build_msg()
1450 if (!rtnh) in rtnl_route_build_msg()
1453 rtnh->rtnh_flags = nh->rtnh_flags; in rtnl_route_build_msg()
1454 rtnh->rtnh_hops = nh->rtnh_weight; in rtnl_route_build_msg()
1455 rtnh->rtnh_ifindex = nh->rtnh_ifindex; in rtnl_route_build_msg()
1475 rtnh->rtnh_len = (char *) nlmsg_tail(msg->nm_nlh) - in rtnl_route_build_msg()
1476 (char *) rtnh; in rtnl_route_build_msg()