Home
last modified time | relevance | path

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

/freebsd-12.1/sys/net/
H A Dradix_mpath.c261 if (ro->ro_rt && ro->ro_rt->rt_ifp && (ro->ro_rt->rt_flags & RTF_UP) in rtalloc_mpath_fib()
267 if (ro->ro_rt == NULL) in rtalloc_mpath_fib()
270 RT_UNLOCK(ro->ro_rt); in rtalloc_mpath_fib()
279 RT_UNLOCK(ro->ro_rt); in rtalloc_mpath_fib()
280 ro->ro_rt = NULL; in rtalloc_mpath_fib()
283 if (ro->ro_rt != rt) { in rtalloc_mpath_fib()
284 RTFREE_LOCKED(ro->ro_rt); in rtalloc_mpath_fib()
285 ro->ro_rt = rt; in rtalloc_mpath_fib()
286 RT_LOCK(ro->ro_rt); in rtalloc_mpath_fib()
287 RT_ADDREF(ro->ro_rt); in rtalloc_mpath_fib()
[all …]
H A Droute.h54 struct rtentry *ro_rt; member
226 int rt_flags = ro->ro_rt->rt_flags; in rt_update_ro_flags()
414 if ((_ro)->ro_rt) \
415 RTFREE((_ro)->ro_rt); \
H A Droute.c417 if ((rt = ro->ro_rt) != NULL) { in rtalloc_ign_fib()
421 ro->ro_rt = NULL; in rtalloc_ign_fib()
423 ro->ro_rt = rtalloc1_fib(&ro->ro_dst, 1, ignore, fibnum); in rtalloc_ign_fib()
424 if (ro->ro_rt) in rtalloc_ign_fib()
425 RT_UNLOCK(ro->ro_rt); in rtalloc_ign_fib()
/freebsd-12.1/sys/netinet6/
H A Din6_src.c716 if (ron->ro_rt == NULL) { in selectroute()
728 rt = ron->ro_rt; in selectroute()
740 if (ro->ro_rt && in selectroute()
745 RTFREE(ro->ro_rt); in selectroute()
763 if (ro->ro_rt) in selectroute()
764 RT_UNLOCK(ro->ro_rt); in selectroute()
775 if (ro->ro_rt) { in selectroute()
779 RTFREE(ro->ro_rt); in selectroute()
780 ro->ro_rt = NULL; in selectroute()
783 if (ro->ro_rt == NULL) in selectroute()
[all …]
H A Dip6_forward.c174 rin6.ro_rt = in6_rtalloc1((struct sockaddr *)dst, 0, 0, M_GETFIB(m)); in ip6_forward()
175 rt = rin6.ro_rt; in ip6_forward()
176 if (rin6.ro_rt != NULL) in ip6_forward()
177 RT_UNLOCK(rin6.ro_rt); in ip6_forward()
H A Dip6_output.c572 if (ro->ro_rt && fwd_tag == NULL && (ro->ro_rt->rt_flags & RTF_UP) && in ip6_output()
575 rt = ro->ro_rt; in ip6_output()
576 ifp = ro->ro_rt->rt_ifp; in ip6_output()
682 if (opt && opt->ip6po_nextroute.ro_rt) { in ip6_output()
1370 if (ro_pmtu->ro_rt) in ip6_getpmtu()
1371 mtu = ro_pmtu->ro_rt->rt_mtu; in ip6_getpmtu()
2501 if (pktopt->ip6po_nextroute.ro_rt) { in ip6_clearpktopts()
2503 pktopt->ip6po_nextroute.ro_rt = NULL; in ip6_clearpktopts()
2523 if (pktopt->ip6po_route.ro_rt) { in ip6_clearpktopts()
2524 RTFREE(pktopt->ip6po_route.ro_rt); in ip6_clearpktopts()
[all …]
H A Din6.h379 struct rtentry *ro_rt; member
/freebsd-12.1/sys/netinet/
H A Dsctp_os_bsd.h205 …ine SCTP_ROUTE_IS_REAL_LOOP(ro) ((ro)->ro_rt && (ro)->ro_rt->rt_ifa && (ro)->ro_rt->rt_ifa->ifa_if…
211 #define SCTP_GET_IFN_VOID_FROM_ROUTE(ro) (void *)ro->ro_rt->rt_ifp
212 #define SCTP_GET_IF_INDEX_FROM_ROUTE(ro) (ro)->ro_rt->rt_ifp->if_index
213 #define SCTP_ROUTE_HAS_VALID_IFN(ro) ((ro)->ro_rt && (ro)->ro_rt->rt_ifp)
371 …, ro) in6_selecthlim((struct in6pcb *)&inp->ip_inp.inp, (ro ? (ro->ro_rt ? (ro->ro_rt->rt_ifp) : (…
H A Dsctp_var.h192 if ((__net)->ro.ro_rt) { \
193 RTFREE((__net)->ro.ro_rt); \
194 (__net)->ro.ro_rt = NULL; \
H A Dip_input.c984 if (ro.ro_rt != NULL) { in ip_forward()
985 ia = ifatoia(ro.ro_rt->rt_ifa); in ip_forward()
1049 rt = ro.ro_rt; in ip_forward()
1071 if (error == EMSGSIZE && ro.ro_rt) in ip_forward()
1072 mtu = ro.ro_rt->rt_mtu; in ip_forward()
H A Dsctp_timer.c353 if (alt->ro.ro_rt == NULL) { in sctp_find_alternate_net()
361 (alt->ro.ro_rt != NULL) && in sctp_find_alternate_net()
940 if (net->ro.ro_rt) { in sctp_t3rxt_timer()
941 RTFREE(net->ro.ro_rt); in sctp_t3rxt_timer()
942 net->ro.ro_rt = NULL; in sctp_t3rxt_timer()
1504 mtu = SCTP_GATHER_MTU_FROM_ROUTE(net->ro._s_addr, &net->ro._s_addr.sa, net->ro.ro_rt); in sctp_pathmtu_timer()
H A Dsctp_asconf.c984 RTFREE(net->ro.ro_rt); in sctp_asconf_nets_cleanup()
985 net->ro.ro_rt = NULL; in sctp_asconf_nets_cleanup()
1094 if (net->ro.ro_rt) { in sctp_path_check_and_react()
1095 RTFREE(net->ro.ro_rt); in sctp_path_check_and_react()
1096 net->ro.ro_rt = NULL; in sctp_path_check_and_react()
1116 if (net->ro.ro_rt) { in sctp_path_check_and_react()
1117 RTFREE(net->ro.ro_rt); in sctp_path_check_and_react()
1118 net->ro.ro_rt = NULL; in sctp_path_check_and_react()
1135 if (net->ro.ro_rt == NULL) in sctp_path_check_and_react()
2232 rt = net->ro.ro_rt; in sctp_asconf_iterator_stcb()
[all …]
H A Din_pcb.c1053 if (sro.ro_rt == NULL || sro.ro_rt->rt_ifp == NULL) { in in_pcbladdr()
1106 if ((sro.ro_rt->rt_ifp->if_flags & IFF_LOOPBACK) == 0) { in in_pcbladdr()
1112 ia = (struct in_ifaddr *)sro.ro_rt->rt_ifa; in in_pcbladdr()
1119 sin = (struct sockaddr_in *)sro.ro_rt->rt_ifa->ifa_addr; in in_pcbladdr()
1121 ia = (struct in_ifaddr *)sro.ro_rt->rt_ifa; in in_pcbladdr()
1131 ifp = sro.ro_rt->rt_ifp; in in_pcbladdr()
1161 if ((sro.ro_rt->rt_ifp->if_flags & IFF_LOOPBACK) != 0) { in in_pcbladdr()
1217 if (sro.ro_rt != NULL) in in_pcbladdr()
1218 RTFREE(sro.ro_rt); in in_pcbladdr()
H A Dip_output.c281 rte = ro->ro_rt; in ip_output()
304 rte = ro->ro_rt; in ip_output()
370 rte = ro->ro_rt; in ip_output()
737 ro->ro_rt = NULL; in ip_output()
H A Dtcp_output.c1383 if (error == EMSGSIZE && tp->t_inpcb->inp_route6.ro_rt != NULL) in tcp_output()
1384 mtu = tp->t_inpcb->inp_route6.ro_rt->rt_mtu; in tcp_output()
1426 if (error == EMSGSIZE && tp->t_inpcb->inp_route.ro_rt != NULL) in tcp_output()
1427 mtu = tp->t_inpcb->inp_route.ro_rt->rt_mtu; in tcp_output()
H A Dsctp_pcb.c3988 rmtu = SCTP_GATHER_MTU_FROM_ROUTE(net->ro._s_addr, &net->ro._l_addr.sa, net->ro.ro_rt); in sctp_add_remote_addr()
3997 net->ro.ro_rt, net->mtu); in sctp_add_remote_addr()
4079 if (net->ro.ro_rt == NULL) { in sctp_add_remote_addr()
4085 } else if (netfirst->ro.ro_rt == NULL) { in sctp_add_remote_addr()
4091 } else if (net->ro.ro_rt->rt_ifp != netfirst->ro.ro_rt->rt_ifp) { in sctp_add_remote_addr()
4112 } else if (netlook->ro.ro_rt == NULL) { in sctp_add_remote_addr()
4116 } else if (netlook->ro.ro_rt->rt_ifp != net->ro.ro_rt->rt_ifp) { in sctp_add_remote_addr()
4129 } else if ((stcb->asoc.primary_destination->ro.ro_rt == NULL) && in sctp_add_remote_addr()
4130 (net->ro.ro_rt) && in sctp_add_remote_addr()
5517 rt = net->ro.ro_rt; in sctp_del_local_addr_ep()
[all …]
H A Dsctp_output.c3390 if (ro->ro_rt == NULL) { in sctp_source_address_selection()
3396 if (ro->ro_rt == NULL) { in sctp_source_address_selection()
4134 if (ro->ro_rt) { in sctp_lowlevel_chunk_output()
4135 RTFREE(ro->ro_rt); in sctp_lowlevel_chunk_output()
4136 ro->ro_rt = NULL; in sctp_lowlevel_chunk_output()
4209 if (ro->ro_rt == NULL) { in sctp_lowlevel_chunk_output()
4228 (void *)ro->ro_rt); in sctp_lowlevel_chunk_output()
4429 if (ro->ro_rt) { in sctp_lowlevel_chunk_output()
4430 RTFREE(ro->ro_rt); in sctp_lowlevel_chunk_output()
4431 ro->ro_rt = NULL; in sctp_lowlevel_chunk_output()
[all …]
H A Dudp_usrreq.c767 errno == EHOSTDOWN) && inp->inp_route.ro_rt) { in udp_notify()
768 RTFREE(inp->inp_route.ro_rt); in udp_notify()
769 inp->inp_route.ro_rt = (struct rtentry *)NULL; in udp_notify()
H A Dsctp_structs.h192 sctp_rtentry_t *ro_rt; member
H A Dtcp_subr.c2108 if (inp->inp_route.ro_rt) { in tcp_notify()
2109 RTFREE(inp->inp_route.ro_rt); in tcp_notify()
2110 inp->inp_route.ro_rt = (struct rtentry *)NULL; in tcp_notify()
/freebsd-12.1/sys/netpfil/pf/
H A Dpf.c5398 if (ro.ro_rt != NULL) { in pf_routable_oldmpath()
5410 rn = (struct radix_node *)ro.ro_rt; in pf_routable_oldmpath()
5422 if (ro.ro_rt != NULL) in pf_routable_oldmpath()
5423 RTFREE(ro.ro_rt); in pf_routable_oldmpath()
/freebsd-12.1/sys/netinet/tcp_stacks/
H A Drack.c8555 if (error == EMSGSIZE && inp->inp_route6.ro_rt != NULL) in rack_output()
8556 mtu = inp->inp_route6.ro_rt->rt_mtu; in rack_output()
8596 if (error == EMSGSIZE && inp->inp_route.ro_rt != NULL) in rack_output()
8597 mtu = inp->inp_route.ro_rt->rt_mtu; in rack_output()