| /freebsd-12.1/sys/net/ |
| H A D | radix_mpath.c | 261 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 D | route.h | 54 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 D | route.c | 417 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 D | in6_src.c | 716 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 D | ip6_forward.c | 174 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 D | ip6_output.c | 572 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 D | in6.h | 379 struct rtentry *ro_rt; member
|
| /freebsd-12.1/sys/netinet/ |
| H A D | sctp_os_bsd.h | 205 …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 D | sctp_var.h | 192 if ((__net)->ro.ro_rt) { \ 193 RTFREE((__net)->ro.ro_rt); \ 194 (__net)->ro.ro_rt = NULL; \
|
| H A D | ip_input.c | 984 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 D | sctp_timer.c | 353 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 D | sctp_asconf.c | 984 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 D | in_pcb.c | 1053 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 D | ip_output.c | 281 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 D | tcp_output.c | 1383 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 D | sctp_pcb.c | 3988 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 D | sctp_output.c | 3390 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 D | udp_usrreq.c | 767 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 D | sctp_structs.h | 192 sctp_rtentry_t *ro_rt; member
|
| H A D | tcp_subr.c | 2108 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 D | pf.c | 5398 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 D | rack.c | 8555 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()
|