Home
last modified time | relevance | path

Searched refs:rt (Results 1 – 25 of 63) sorted by relevance

123

/xnu-11215/bsd/netinet/
H A Din_rmx.c176 rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu; in in_addroute()
178 rt->rt_rmx.rmx_mtu = IN6_LINKMTU(rt->rt_ifp); in in_addroute()
280 rt->rt_ifp->if_xname : "", rt->rt_flags); in in_deleteroute()
427 rt->rt_gateway, rt_mask(rt), rt->rt_flags, &rt); in in_clsroute()
438 rt->rt_ifp->if_xname : "", rt->rt_flags, in in_clsroute()
452 rt->rt_flags, rt->rt_expire - timenow); in in_clsroute()
502 rt, rt->rt_refcnt); in in_rtqkill()
510 rt->rt_ifp->if_xname : "", rt->rt_flags, in in_rtqkill()
525 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in in_rtqkill()
771 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in in_ifadownkill()
[all …]
H A Din_arp.c562 rt->rt_llinfo_purge(rt); in arp_llreach_alloc()
631 RT_LOCK(rt); in arptfree()
940 SDL(gate), rt_key(rt), NULL, rt_key(rt), 0); in arp_rtrequest()
992 dlil_resolve_multi(rt->rt_ifp, rt_key(rt), gate, in arp_rtrequest()
1045 rt->rt_llinfo_purge(rt); in arp_rtrequest()
1054 rt->rt_if_ref_fn(rt->rt_ifp, -1); in arp_rtrequest()
1063 rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu; in arp_rtrequest()
1090 rt->rt_llinfo_purge(rt); in arp_rtrequest()
1139 route_t rt; in arp_lookup_route() local
1196 rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, in arp_lookup_route()
[all …]
H A Dtcp_subr.c2382 RT_LOCK(rt); in tcp_handle_msgsize()
2383 rtref(rt); in tcp_handle_msgsize()
2417 rtfree(rt); in tcp_handle_msgsize()
2836 if (rt == NULL || rt->rt_ifp == NULL) { in tcp_get_effective_mtu()
2906 if (!rt || !rt->rt_rmx.rmx_mtu) { in tcp_mtudisc()
3014 rt = NULL; in tcp_rtlookup()
3062 if (rt != NULL && rt->rt_ifp != NULL) { in tcp_rtlookup()
3091 return rt; in tcp_rtlookup()
3111 rt = NULL; in tcp_rtlookup6()
3170 if (rt != NULL && rt->rt_ifp != NULL) { in tcp_rtlookup6()
[all …]
H A Din_gif.c101 __unused struct rtentry *rt) in in_gif_output() argument
403 struct rtentry *rt; in gif_encapcheck4() local
409 rt = rtalloc1_scoped(SA(&sin), 0, 0, in gif_encapcheck4()
411 if (rt != NULL) { in gif_encapcheck4()
412 RT_LOCK(rt); in gif_encapcheck4()
414 if (rt == NULL || rt->rt_ifp != m->m_pkthdr.rcvif) { in gif_encapcheck4()
415 if (rt != NULL) { in gif_encapcheck4()
416 RT_UNLOCK(rt); in gif_encapcheck4()
417 rtfree(rt); in gif_encapcheck4()
421 RT_UNLOCK(rt); in gif_encapcheck4()
[all …]
H A Dtcp_input.c6331 return (rt == NULL) ? 0 : rt->rtt_min; in get_base_rtt()
6414 rt->rtt_hist[rt->rtt_index] = rtt; in update_base_rtt()
6417 rt->rtt_hist[rt->rtt_index] = in update_base_rtt()
6418 min(rt->rtt_hist[rt->rtt_index], rtt); in update_base_rtt()
6425 rt->rtt_hist[i] < rt->rtt_min)) { in update_base_rtt()
6426 rt->rtt_min = rt->rtt_hist[i]; in update_base_rtt()
6431 rt->rtt_hist[rt->rtt_index] = in update_base_rtt()
6432 min(rt->rtt_hist[rt->rtt_index], rtt); in update_base_rtt()
6436 rt->rtt_min = min(rt->rtt_min, rtt); in update_base_rtt()
6925 mss = (isipv6 ? tcp_maxmtu6(rt) : tcp_maxmtu(rt)); in tcp_mss()
[all …]
/xnu-11215/bsd/netinet6/
H A Din6_rmx.c224 rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu; in in6_addroute()
330 (rt->rt_ifp != NULL) ? rt->rt_ifp->if_xname : "", in in6_addroute()
336 (rt->rt_ifp != NULL) ? rt->rt_ifp->if_xname : "", in in6_addroute()
364 (rt->rt_ifp != NULL) ? rt->rt_ifp->if_xname : "", in in6_deleteroute()
513 rt->rt_gateway, rt_mask(rt), rt->rt_flags, &rt); in in6_clsroute()
527 rt->rt_ifp->if_xname : "", rt->rt_flags, in in6_clsroute()
541 rt->rt_flags, rt->rt_expire - timenow); in in6_clsroute()
594 rt, rt->rt_refcnt); in in6_rtqkill()
602 rt->rt_ifp->if_xname : "", rt->rt_flags, in in6_rtqkill()
617 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in in6_rtqkill()
[all …]
H A Dip6_forward.c192 RT_LOCK(rt); in ip6_forward()
194 RT_UNLOCK(rt); in ip6_forward()
196 rt = NULL; in ip6_forward()
198 RT_UNLOCK(rt); in ip6_forward()
417 RT_LOCK(rt); in ip6_forward()
422 VERIFY(rt == NULL || rt == ip6forward_rt->ro_rt); in ip6_forward()
439 RT_LOCK(rt); in ip6_forward()
482 RT_LOCK(rt); in ip6_forward()
706 RT_UNLOCK(rt); in ip6_forward()
857 RT_REMREF(rt); in ip6_forward()
[all …]
H A Dnd6.c862 RT_LOCK(rt); in nd6_service_neighbor_cache()
2486 return rt; in nd6_lookup()
2619 RT_LOCK(rt); in nd6_free()
2698 rtfree(rt); in nd6_free()
2816 if (rt_setgate(rt, rt_key(rt), SA(&null_sdl)) == 0) { in nd6_rtrequest()
2977 rt->rt_llinfo_purge(rt); in nd6_rtrequest()
2986 rt->rt_if_ref_fn(rt->rt_ifp, in nd6_rtrequest()
2996 rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu; in nd6_rtrequest()
3082 rt->rt_llinfo_purge(rt); in nd6_rtrequest()
4032 rt_set_gwroute(rt, rt_key(rt), gwrt); in nd6_output_list()
[all …]
H A Dnd6_nbr.c210 rt->rt_llinfo_purge(rt); in nd6_llreach_alloc()
412 RT_LOCK(rt); in nd6_ns_input()
426 rtfree(rt); in nd6_ns_input()
1065 rt->rt_llinfo_purge(rt); in nd6_na_input()
1071 rt->rt_if_ref_fn(rt->rt_ifp, -1); in nd6_na_input()
1082 rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu; in nd6_na_input()
1171 RT_LOCK(rt); in nd6_na_input()
1346 RT_LOCK(rt); in nd6_na_input()
1405 RT_UNLOCK(rt); in nd6_na_input()
2592 RT_LOCK(rt); in nd6_alt_node_present()
[all …]
H A Dnd6_prproxy.c275 rt = NULL; in nd6_prproxy_prelist_setroute()
291 rtfree(rt); in nd6_prproxy_prelist_setroute()
330 rt = NULL; in nd6_prproxy_prelist_setroute()
344 rtfree(rt); in nd6_prproxy_prelist_setroute()
519 RT_LOCK(rt); in nd6_prproxy_isours()
538 RT_LOCK(rt); in nd6_prproxy_isours()
567 RT_LOCK(rt); in nd6_proxy_find_fwdroute()
568 if (!(rt->rt_flags & RTF_PROXY) || rt->rt_ifp == ifp) { in nd6_proxy_find_fwdroute()
649 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in nd6_proxy_find_fwdroute()
651 rt = NULL; in nd6_proxy_find_fwdroute()
[all …]
H A Din6_gif.c101 __unused struct rtentry *rt) in in6_gif_output() argument
360 struct rtentry *rt; in gif_validate6() local
367 rt = rtalloc1(SA(&sin6), 0, 0); in gif_validate6()
368 if (rt != NULL) { in gif_validate6()
369 RT_LOCK(rt); in gif_validate6()
371 if (!rt || rt->rt_ifp != ifp) { in gif_validate6()
377 if (rt != NULL) { in gif_validate6()
378 RT_UNLOCK(rt); in gif_validate6()
379 rtfree(rt); in gif_validate6()
383 RT_UNLOCK(rt); in gif_validate6()
[all …]
H A Dnd6_rtr.c500 rt = (struct nd_opt_hdr *)((caddr_t)rt + in nd6_ra_input()
1741 if (rt) { in defrouter_select()
1744 rt = NULL; in defrouter_select()
3779 rtfree(rt); in nd6_prefix_onlink_common()
3780 rt = NULL; in nd6_prefix_onlink_common()
3792 RT_LOCK(rt); in nd6_prefix_onlink_common()
3846 rtfree(rt); in nd6_prefix_onlink_common()
3932 RT_LOCK(rt); in nd6_prefix_offlink()
3935 rtfree(rt); in nd6_prefix_offlink()
4440 RT_LOCK(rt); in rt6_deleteroute()
[all …]
H A Din6_ifattach.c1033 struct rtentry *__single rt; in in6_ifdetach() local
1119 if (rt != NULL) { in in6_ifdetach()
1125 rtfree(rt); in in6_ifdetach()
1190 if (rt != NULL) { in in6_ifdetach()
1191 RT_LOCK(rt); in in6_ifdetach()
1192 if (rt->rt_ifp == ifp) { in in6_ifdetach()
1199 RT_UNLOCK(rt); in in6_ifdetach()
1200 (void) rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, in in6_ifdetach()
1201 rt_mask(rt), rt->rt_flags, 0); in in6_ifdetach()
1203 RT_UNLOCK(rt); in in6_ifdetach()
[all …]
H A Dicmp6.c1249 RT_LOCK(rt); in icmp6_mtudisc_update()
1258 rtfree(rt); in icmp6_mtudisc_update()
2603 if (rt) { in icmp6_redirect_input()
2636 rtfree(rt); in icmp6_redirect_input()
2637 rt = NULL; in icmp6_redirect_input()
2772 RT_LOCK(rt); in icmp6_redirect_output()
2776 if (!m0 || !rt || !(rt->rt_flags & RTF_UP) || !(ifp = rt->rt_ifp)) { in icmp6_redirect_output()
2805 rt = NULL; in icmp6_redirect_output()
2808 RT_LOCK(rt); in icmp6_redirect_output()
2857 if (rt->rt_gateway && (rt->rt_flags & RTF_GATEWAY)) { in icmp6_redirect_output()
[all …]
H A Dscope6.c260 rtkey_to_sa6(struct rtentry *rt, struct sockaddr_in6 *sin6) in rtkey_to_sa6() argument
262 VERIFY(rt_key(rt)->sa_family == AF_INET6); in rtkey_to_sa6()
264 *sin6 = *((struct sockaddr_in6 *)(void *)rt_key(rt)); in rtkey_to_sa6()
271 rtgw_to_sa6(struct rtentry *rt, struct sockaddr_in6 *sin6) in rtgw_to_sa6() argument
273 VERIFY(rt->rt_flags & RTF_GATEWAY); in rtgw_to_sa6()
275 *sin6 = *((struct sockaddr_in6 *)(void *)rt->rt_gateway); in rtgw_to_sa6()
/xnu-11215/bsd/net/
H A Droute.c1529 if ((rt == NULL) || (rt_mask(rt) != NULL && rt_mask(rt)->sa_len < 2)) { in rtredirect()
2296 rt->rt_ifp = rt->rt_ifa->ifa_ifp; in rtrequest_common_locked()
2465 rt_set_gwroute(rt, rt_key(rt), rt->rt_gwroute); in rtrequest_common_locked()
2738 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in rt_setgate()
3693 rt->rt_llinfo_purge(rt); in rtinit_locked()
3700 rt->rt_if_ref_fn(rt->rt_ifp, -1); in rtinit_locked()
3780 rt->rt_if_ref_fn(rt->rt_ifp, 1); in rt_set_idleref()
3794 rt->rt_if_ref_fn(rt->rt_ifp, -1); in rt_clear_idleref()
4289 VERIFY(rt == gwrt && rt != hint); in route_to_gwroute()
4495 p_route_ev->rt = rt; in route_event_init()
[all …]
H A Drtsock.c168 ((rt)->rt_ifa != NULL && (rt)->rt_ifa->ifa_addr != NULL)
626 RT_LOCK(rt); in route_output()
738 (error = rt_setgate(rt, rt_key(rt), in route_output()
1067 rt->rt_llinfo_purge(rt); in rt_setif()
1075 rt->rt_if_ref_fn(rt->rt_ifp, -1); in rt_setif()
1083 if (rt_primary_default(rt, rt_key(rt))) { in rt_setif()
1092 rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu; in rt_setif()
1095 rt->rt_rmx.rmx_mtu = IN6_LINKMTU(rt->rt_ifp); in rt_setif()
1133 (rt->rt_flags & RTF_HOST) && rt->rt_ifa->ifa_ifp == rt->rt_ifp) { in rt_setif()
1786 RT_LOCK(rt); in sysctl_dumpentry()
[all …]
H A Dnetsrc.c112 if (!rt) { in netsrc_common()
127 RT_LOCK(rt); in netsrc_common()
128 if (rt->rt_parent) { in netsrc_common()
136 RT_UNLOCK(rt); in netsrc_common()
138 reply->nrp_ifindex = rt->rt_ifp ? rt->rt_ifp->if_index : 0; in netsrc_common()
140 if (rt->rt_ifp != NULL && (rt->rt_ifp->if_eflags & IFEF_AWDL)) { in netsrc_common()
143 if (rt->rt_flags & RTF_LOCAL) { in netsrc_common()
146 (rt->rt_ifa && rt->rt_ifa->ifa_ifp && in netsrc_common()
250 if (rt) { in netsrc_ipv4()
269 netsrc_common(rt, &reply); in netsrc_ipv4()
[all …]
H A Droute.h130 #define IS_DIRECT_HOSTROUTE(rt) \ argument
131 (((rt)->rt_flags & (RTF_HOST | RTF_GATEWAY)) == RTF_HOST)
133 #define IS_DYNAMIC_DIRECT_HOSTROUTE(rt) \ argument
134 (((rt)->rt_flags & (RTF_CLONING | RTF_PRCLONING | RTF_HOST | RTF_LLINFO |\
138 #define IS_LOCALNET_ROUTE(rt) \ argument
139 (!((rt)->rt_flags & RTF_LOCAL) && \
140 ((((rt)->rt_flags & (RTF_HOST | RTF_GATEWAY)) == RTF_HOST) || \
141 ((rt)->rt_flags & (RTF_MULTICAST | RTF_BROADCAST))))
H A Dif_stf.c685 rtentry_ref_t rt; in stf_checkaddr4() local
692 if (rt != NULL) { in stf_checkaddr4()
693 RT_LOCK(rt); in stf_checkaddr4()
695 if (rt == NULL || rt->rt_ifp != inifp) { in stf_checkaddr4()
701 if (rt != NULL) { in stf_checkaddr4()
702 RT_UNLOCK(rt); in stf_checkaddr4()
703 rtfree(rt); in stf_checkaddr4()
707 RT_UNLOCK(rt); in stf_checkaddr4()
708 rtfree(rt); in stf_checkaddr4()
835 struct rtentry *rt, in stf_rtrequest() argument
[all …]
H A Dif_llreach.c409 struct rtentry *rt; in ifnet_llreach_get_defrouter() local
428 rt = rt_lookup(TRUE, SA(&dst_ss), SA(&mask_ss), rnh, ifp->if_index); in ifnet_llreach_get_defrouter()
429 if (rt != NULL) { in ifnet_llreach_get_defrouter()
432 RT_LOCK(rt); in ifnet_llreach_get_defrouter()
433 if ((rt->rt_flags & RTF_GATEWAY) && in ifnet_llreach_get_defrouter()
434 (gwrt = rt->rt_gwroute) != NULL && in ifnet_llreach_get_defrouter()
435 rt_key(rt)->sa_family == rt_key(gwrt)->sa_family && in ifnet_llreach_get_defrouter()
437 RT_UNLOCK(rt); in ifnet_llreach_get_defrouter()
445 RT_UNLOCK(rt); in ifnet_llreach_get_defrouter()
447 rtfree_locked(rt); in ifnet_llreach_get_defrouter()
/xnu-11215/EXTERNAL_HEADERS/img4/
H A Druntime.h340 const img4_runtime_t *rt
360 const img4_runtime_t *rt,
381 const img4_runtime_t *rt,
435 const img4_runtime_t *rt,
454 const img4_runtime_t *rt
484 const img4_runtime_t *rt,
517 const img4_runtime_t *rt,
550 const img4_runtime_t *rt,
583 const img4_runtime_t *rt,
616 const img4_runtime_t *rt,
[all …]
/xnu-11215/EXTERNAL_HEADERS/CoreEntitlements/
H A DCoreEntitlements.h74 #define CE_RT_LOG(msg) do { if (rt->log) { rt->log(rt, "[%s]: %s\n", __FUNCTION__, msg); } } while(…
81 #define CE_RT_LOGF(fmt, ...) do { if (rt->log) { rt->log(rt, "[%s]: " fmt, __FUNCTION__, __VA_ARGS_…
88 #define CE_RT_ABORT(...) do { rt->abort(rt, "[%s]: %s\n", __FUNCTION__, __VA_ARGS__); } while(0)
H A DRuntime.h57 typedef void* __unsafe_indexable (*CERuntimeMalloc)(const CERuntime_t rt, size_t size) __result_use…
62 typedef void (*CERuntimeFree)(const CERuntime_t rt, void* address);
67 typedef void (*CERuntimeLog)(const CERuntime_t rt, const char* __unsafe_indexable fmt, ...) __print…
72 typedef void (*CERuntimeAbort)(const CERuntime_t rt, const char* __unsafe_indexable fmt, ...) __pri…
77 typedef bool (*CERuntimeInternalStatus)(const CERuntime_t rt);
83 typedef void* __unsafe_indexable (*CERuntimeAllocIndex)(const CERuntime_t rt, size_t size) __result…
89 typedef void (*CERuntimeFreeIndex)(const CERuntime_t rt, void* index, size_t size);
/xnu-11215/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_route.c399 rt = fr->fr_rt_dst; in flow_route_configure()
409 if (rt == NULL) { in flow_route_configure()
421 if (rt->rt_ifp != ifp && rt->rt_ifp != lo_ifp && in flow_route_configure()
472 rt = NULL; in flow_route_configure()
490 if (gwrt != rt && (rt->rt_flags & RTF_GATEWAY) && in flow_route_configure()
556 if (gwrt == rt) { in flow_route_configure()
564 if (rt != NULL) { in flow_route_configure()
565 rtfree(rt); in flow_route_configure()
566 rt = NULL; in flow_route_configure()
1229 ASSERT(rt->rt_ifp == ifp || rt->rt_ifp == lo_ifp); in flow_route_select_laddr()
[all …]

123