Lines Matching refs:old_nh
505 struct rtnl_nexthop *old_nh; in route_update() local
519 nl_list_for_each_entry(old_nh, &old_route->rt_nexthops, in route_update()
521 if (!rtnl_route_nh_compare(old_nh, new_nh, ~0, 0)) { in route_update()
523 rtnl_route_remove_nexthop(old_route, old_nh); in route_update()
527 old_nh, in route_update()
528 nl_addr2str(old_nh->rtnh_gateway, buf, in route_update()
531 rtnl_route_nh_free(old_nh); in route_update()
1013 struct rtnl_nexthop *old_nh = NULL; in rtnl_route_parse() local
1116 if (!old_nh && !(old_nh = rtnl_route_nh_alloc())) in rtnl_route_parse()
1119 rtnl_route_nh_set_ifindex(old_nh, nla_get_u32(tb[RTA_OIF])); in rtnl_route_parse()
1123 if (!old_nh && !(old_nh = rtnl_route_nh_alloc())) in rtnl_route_parse()
1129 rtnl_route_nh_set_gateway(old_nh, addr); in rtnl_route_parse()
1134 if (!old_nh && !(old_nh = rtnl_route_nh_alloc())) in rtnl_route_parse()
1137 rtnl_route_nh_set_realms(old_nh, nla_get_u32(tb[RTA_FLOW])); in rtnl_route_parse()
1140 if (old_nh) { in rtnl_route_parse()
1141 rtnl_route_nh_set_flags(old_nh, rtm->rtm_flags & 0xff); in rtnl_route_parse()
1146 rtnl_route_add_nexthop(route, old_nh); in rtnl_route_parse()
1158 if (rtnl_route_nh_compare(old_nh, first, in rtnl_route_parse()
1159 old_nh->ce_mask, 0)) { in rtnl_route_parse()
1164 rtnl_route_nh_free(old_nh); in rtnl_route_parse()