Home
last modified time | relevance | path

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

/freebsd/sys/netinet/
H A Dsctp_os_bsd.h202 …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 Dip_input.c947 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 Dip_output.c391 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 Din_fib.h35 struct nhop_object *ro_nh; member
H A Dtcp_output.c1479 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 Dsctp_timer.c343 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 Dudp_usrreq.c707 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 Dsctp_pcb.c3848 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 Dsctp_output.c3372 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 Dsctp_structs.h203 struct nhop_object *ro_nh; member
H A Dtcp_subr.c2591 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 Dsctp_asconf.c1126 if (net->ro.ro_nh == NULL) in sctp_path_check_and_react()
/freebsd/sys/net/
H A Droute.h50 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 Dif_vxlan.c2577 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 Din6_src.c622 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 Dip6_output.c649 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 Din6.h375 struct nhop_object *ro_nh; member
/freebsd/sys/net/route/
H A Droute_var.h104 _CHK_ROUTE_FIELD(_route_new, ro_nh) \
/freebsd/sys/netinet/tcp_stacks/
H A Dbbr.c5498 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 Drack.c2564 } 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 Duipc_ktls.c957 nh = inp->inp_route.ro_nh; in ktls_alloc_snd_tag()
1050 nh = inp->inp_route.ro_nh; in ktls_alloc_rcv_tag()