/freebsd/sys/netinet/ |
H A D | sctp_os_bsd.h | 202 …ine SCTP_ROUTE_IS_REAL_LOOP(ro) ((ro)->ro_nh && (ro)->ro_nh->nh_ifa && (ro)->ro_nh->nh_ifa->ifa_if… 208 #define SCTP_GET_IFN_VOID_FROM_ROUTE(ro) (void *)ro->ro_nh->nh_ifp 209 #define SCTP_GET_IF_INDEX_FROM_ROUTE(ro) (ro)->ro_nh->nh_ifp->if_index 210 #define SCTP_ROUTE_HAS_VALID_IFN(ro) ((ro)->ro_nh && (ro)->ro_nh->nh_ifp) 354 #define SCTP_GET_HLIM(inp, ro) in6_selecthlim(&inp->ip_inp.inp, (ro ? (ro->ro_nh ? (ro->ro_nh->nh_i… 397 if ((ro)->ro_nh == NULL) { \ 398 (ro)->ro_nh = rib_lookup(fibnum, &(ro)->ro_dst, NHR_REF, 0); \
|
H A D | ip_input.c | 947 ro.ro_nh = fib4_lookup(M_GETFIB(m), ip->ip_dst, 0, NHR_REF, flowid); in ip_forward() 948 if (ro.ro_nh != NULL) { in ip_forward() 949 if (ro.ro_nh->nh_flags & (NHF_BLACKHOLE | NHF_BROADCAST)) { in ip_forward() 952 NH_FREE(ro.ro_nh); in ip_forward() 955 if (ro.ro_nh->nh_flags & NHF_REJECT) { in ip_forward() 957 NH_FREE(ro.ro_nh); in ip_forward() 961 ia = ifatoia(ro.ro_nh->nh_ifa); in ip_forward() 1026 nh = ro.ro_nh; in ip_forward() 1050 if (error == EMSGSIZE && ro.ro_nh) in ip_forward() 1051 mtu = ro.ro_nh->nh_mtu; in ip_forward()
|
H A D | ip_output.c | 391 if (ro->ro_nh == NULL) { in ip_output() 402 if (inp != NULL && ro->ro_nh != NULL) in ip_output() 412 if (ro->ro_nh != NULL && in ip_output() 413 ((!NH_IS_VALID(ro->ro_nh)) || dst->sin_family != AF_INET || in ip_output() 471 if (ro->ro_nh == NULL) { in ip_output() 479 ro->ro_nh = fib4_lookup(fibnum, dst->sin_addr, 0, in ip_output() 482 if (ro->ro_nh == NULL || (!NH_IS_VALID(ro->ro_nh))) { in ip_output() 496 struct nhop_object *nh = ro->ro_nh; in ip_output() 551 (ro != NULL && ro->ro_nh != NULL) ? ro->ro_nh->nh_flags : 0, ifp)); in ip_output()
|
H A D | in_fib.h | 35 struct nhop_object *ro_nh; member
|
H A D | tcp_output.c | 1479 if (error == EMSGSIZE && inp->inp_route6.ro_nh != NULL) in tcp_default_output() 1480 mtu = inp->inp_route6.ro_nh->nh_mtu; in tcp_default_output() 1523 if (error == EMSGSIZE && inp->inp_route.ro_nh != NULL) in tcp_default_output() 1524 mtu = inp->inp_route.ro_nh->nh_mtu; in tcp_default_output()
|
H A D | sctp_timer.c | 343 if (alt->ro.ro_nh == NULL) { in sctp_find_alternate_net() 351 (alt->ro.ro_nh != NULL) && in sctp_find_alternate_net() 1510 mtu = SCTP_GATHER_MTU_FROM_ROUTE(net->ro._s_addr, &net->ro._s_addr.sa, net->ro.ro_nh); in sctp_pathmtu_timer()
|
H A D | udp_usrreq.c | 707 errno == EHOSTDOWN) && inp->inp_route.ro_nh) { in udp_notify() 708 NH_FREE(inp->inp_route.ro_nh); in udp_notify() 709 inp->inp_route.ro_nh = (struct nhop_object *)NULL; in udp_notify()
|
H A D | sctp_pcb.c | 3848 rmtu = SCTP_GATHER_MTU_FROM_ROUTE(net->ro._s_addr, &net->ro._l_addr.sa, net->ro.ro_nh); in sctp_add_remote_addr() 3931 if (net->ro.ro_nh == NULL) { in sctp_add_remote_addr() 3937 } else if (netfirst->ro.ro_nh == NULL) { in sctp_add_remote_addr() 3943 } else if (net->ro.ro_nh->nh_ifp != netfirst->ro.ro_nh->nh_ifp) { in sctp_add_remote_addr() 3964 } else if (netlook->ro.ro_nh == NULL) { in sctp_add_remote_addr() 3968 } else if (netlook->ro.ro_nh->nh_ifp != net->ro.ro_nh->nh_ifp) { in sctp_add_remote_addr() 3981 } else if ((stcb->asoc.primary_destination->ro.ro_nh == NULL) && in sctp_add_remote_addr() 3982 (net->ro.ro_nh) && in sctp_add_remote_addr()
|
H A D | sctp_output.c | 3372 if (ro->ro_nh == NULL) { in sctp_source_address_selection() 3378 if (ro->ro_nh == NULL) { in sctp_source_address_selection() 4173 if (ro->ro_nh == NULL) { in sctp_lowlevel_chunk_output() 4192 (void *)ro->ro_nh); in sctp_lowlevel_chunk_output() 4240 if ((ro->ro_nh != NULL) && (net->ro._s_addr) && in sctp_lowlevel_chunk_output() 4244 mtu = SCTP_GATHER_MTU_FROM_ROUTE(net->ro._s_addr, &net->ro._l_addr.sa, ro->ro_nh); in sctp_lowlevel_chunk_output() 4256 } else if (ro->ro_nh == NULL) { in sctp_lowlevel_chunk_output() 4446 if (ro->ro_nh == NULL) { in sctp_lowlevel_chunk_output() 4573 if (ro->ro_nh == NULL) { in sctp_lowlevel_chunk_output() 4582 if ((ro->ro_nh != NULL) && (net->ro._s_addr) && in sctp_lowlevel_chunk_output() [all …]
|
H A D | sctp_structs.h | 203 struct nhop_object *ro_nh; member
|
H A D | tcp_subr.c | 2591 if (inp->inp_route.ro_nh) { in tcp_notify() 2592 NH_FREE(inp->inp_route.ro_nh); in tcp_notify() 2593 inp->inp_route.ro_nh = (struct nhop_object *)NULL; in tcp_notify()
|
H A D | sctp_asconf.c | 1126 if (net->ro.ro_nh == NULL) in sctp_path_check_and_react()
|
/freebsd/sys/net/ |
H A D | route.h | 50 struct nhop_object *ro_nh; member 383 if ((_ro)->ro_nh) { \ 384 NH_FREE((_ro)->ro_nh); \ 385 (_ro)->ro_nh = NULL; \ 394 if ((ro)->ro_nh != NULL) { \ 395 NH_FREE((ro)->ro_nh); \ 396 (ro)->ro_nh = NULL; \
|
H A D | if_vxlan.c | 2577 ro->ro_nh = fib4_lookup(M_GETFIB(m), ip->ip_dst, 0, NHR_NONE, in vxlan_encap4() 2579 if (ro->ro_nh == NULL) { in vxlan_encap4() 2587 if ((csum_flags & ro->ro_nh->nh_ifp->if_hwassist) != in vxlan_encap4() 2590 const struct ifnet *nh_ifp = ro->ro_nh->nh_ifp; in vxlan_encap4() 2688 ro->ro_nh = fib6_lookup(M_GETFIB(m), &ip6->ip6_dst, 0, in vxlan_encap6() 2690 if (ro->ro_nh == NULL) { in vxlan_encap6() 2698 if ((csum_flags & ro->ro_nh->nh_ifp->if_hwassist) != in vxlan_encap6() 2701 const struct ifnet *nh_ifp = ro->ro_nh->nh_ifp; in vxlan_encap6()
|
/freebsd/sys/netinet6/ |
H A D | in6_src.c | 622 if (ro->ro_nh != NULL && ( in cache_route() 623 !NH_IS_VALID(ro->ro_nh) || ro->ro_dst.sin6_family != AF_INET6 || in cache_route() 627 if (ro->ro_nh == NULL) { in cache_route() 638 ro->ro_nh = fib6_lookup(fibnum, paddr, scopeid, NHR_REF, flowid); in cache_route() 640 return (ro->ro_nh); in cache_route() 783 if (nh != NULL && nh == sro.ro_nh) in in6_selectif()
|
H A D | ip6_output.c | 649 if (ro == NULL || ro->ro_nh == NULL) { in ip6_output() 663 if (ro->ro_nh != NULL && inp != NULL) { in ip6_output() 668 if (ro->ro_nh != NULL && fwd_tag == NULL && in ip6_output() 669 (!NH_IS_VALID(ro->ro_nh) || in ip6_output() 674 if (ro->ro_nh != NULL && fwd_tag == NULL && in ip6_output() 678 nh = ro->ro_nh; in ip6_output() 1544 if (ro_pmtu != NULL && ro_pmtu->ro_nh != NULL) in ip6_getpmtu() 1545 mtu = ro_pmtu->ro_nh->nh_mtu; in ip6_getpmtu() 2682 if (pktopt->ip6po_nextroute.ro_nh) { in ip6_clearpktopts() 2683 NH_FREE(pktopt->ip6po_nextroute.ro_nh); in ip6_clearpktopts() [all …]
|
H A D | in6.h | 375 struct nhop_object *ro_nh; member
|
/freebsd/sys/net/route/ |
H A D | route_var.h | 104 _CHK_ROUTE_FIELD(_route_new, ro_nh) \
|
/freebsd/sys/netinet/tcp_stacks/ |
H A D | bbr.c | 5498 if ((bbr->rc_inp->inp_route.ro_nh == NULL) || in bbr_update_hardware_pacing_rate() 5499 (bbr->rc_inp->inp_route.ro_nh->nh_ifp == NULL)) { in bbr_update_hardware_pacing_rate() 5515 bbr->rc_inp->inp_route.ro_nh->nh_ifp, in bbr_update_hardware_pacing_rate() 13561 if (error == EMSGSIZE && inp->inp_route6.ro_nh != NULL) in bbr_output_wtime() 13562 mtu = inp->inp_route6.ro_nh->nh_mtu; in bbr_output_wtime() 13602 if (error == EMSGSIZE && inp->inp_route.ro_nh != NULL) in bbr_output_wtime() 13603 mtu = inp->inp_route.ro_nh->nh_mtu; in bbr_output_wtime() 13873 (inp->inp_route.ro_nh && in bbr_output_wtime() 13874 inp->inp_route.ro_nh->nh_ifp)) { in bbr_output_wtime() 13888 inp->inp_route.ro_nh->nh_ifp, in bbr_output_wtime() [all …]
|
H A D | rack.c | 2564 } else if (rack->rc_inp->inp_route.ro_nh && in rack_log_hdwr_pacing() 2565 rack->rc_inp->inp_route.ro_nh->nh_ifp) { in rack_log_hdwr_pacing() 2566 ifp = rack->rc_inp->inp_route.ro_nh->nh_ifp; in rack_log_hdwr_pacing() 2637 (rack->rc_inp->inp_route.ro_nh != NULL) && in rack_get_output_bw() 2638 (rack->rc_inp->inp_route.ro_nh->nh_ifp != NULL)) { in rack_get_output_bw() 2646 high_rate = tcp_hw_highest_rate_ifp(rack->rc_inp->inp_route.ro_nh->nh_ifp, rack->rc_inp); in rack_get_output_bw() 17393 (rack->rc_inp->inp_route.ro_nh != NULL) && in pace_to_fill_cwnd() 17394 (rack->rc_inp->inp_route.ro_nh->nh_ifp != NULL)) { in pace_to_fill_cwnd() 17401 high_rate = tcp_hw_highest_rate_ifp(rack->rc_inp->inp_route.ro_nh->nh_ifp, rack->rc_inp); in pace_to_fill_cwnd() 17659 if ((rack->rc_inp->inp_route.ro_nh != NULL) && in rack_get_pacing_delay() [all …]
|
/freebsd/sys/kern/ |
H A D | uipc_ktls.c | 957 nh = inp->inp_route.ro_nh; in ktls_alloc_snd_tag() 1050 nh = inp->inp_route.ro_nh; in ktls_alloc_rcv_tag()
|