Lines Matching refs:rtnh_gateway
69 if (src->rtnh_gateway) { in rtnl_route_nh_clone()
70 nh->rtnh_gateway = nl_addr_clone(src->rtnh_gateway); in rtnl_route_nh_clone()
71 if (!nh->rtnh_gateway) { in rtnl_route_nh_clone()
80 nl_addr_put(nh->rtnh_gateway); in rtnl_route_nh_clone()
89 nl_addr_put(nh->rtnh_gateway); in rtnl_route_nh_clone()
101 nl_addr_put(nh->rtnh_gateway); in rtnl_route_nh_free()
125 diff |= NH_DIFF(GATEWAY, nl_addr_cmp(a->rtnh_gateway, in rtnl_route_nh_compare()
126 b->rtnh_gateway)); in rtnl_route_nh_compare()
166 nl_dump(dp, " %s", nl_addr2str(nh->rtnh_gateway, in nh_dump_line()
206 nl_dump(dp, " via %s", nl_addr2str(nh->rtnh_gateway, in nh_dump_details()
301 struct nl_addr *old = nh->rtnh_gateway; in rtnl_route_nh_set_gateway()
304 nh->rtnh_gateway = nl_addr_get(addr); in rtnl_route_nh_set_gateway()
308 nh->rtnh_gateway = NULL; in rtnl_route_nh_set_gateway()
317 return nh->rtnh_gateway; in rtnl_route_nh_get_gateway()