Home
last modified time | relevance | path

Searched refs:src_rt (Results 1 – 1 of 1) sorted by relevance

/xnu-12377.61.12/bsd/net/
H A Ddlil.c6224 struct route src_rt; in ifnet_cached_rtlookup_inet() local
6227 dst = SIN(&src_rt.ro_dst); in ifnet_cached_rtlookup_inet()
6229 ifp_src_route_copyout(ifp, &src_rt); in ifnet_cached_rtlookup_inet()
6231 if (ROUTE_UNUSABLE(&src_rt) || src_ip.s_addr != dst->sin_addr.s_addr) { in ifnet_cached_rtlookup_inet()
6232 ROUTE_RELEASE(&src_rt); in ifnet_cached_rtlookup_inet()
6234 SOCKADDR_ZERO(&src_rt.ro_dst, sizeof(src_rt.ro_dst)); in ifnet_cached_rtlookup_inet()
6235 dst->sin_len = sizeof(src_rt.ro_dst); in ifnet_cached_rtlookup_inet()
6240 VERIFY(src_rt.ro_rt == NULL); in ifnet_cached_rtlookup_inet()
6241 src_rt.ro_rt = rtalloc1_scoped(SA(dst), in ifnet_cached_rtlookup_inet()
6244 if (src_rt.ro_rt != NULL) { in ifnet_cached_rtlookup_inet()
[all …]