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_output.c385 if (ro->ro_nh == NULL) { in ip_output()
396 if (inp != NULL && ro->ro_nh != NULL) in ip_output()
406 if (ro->ro_nh != NULL && in ip_output()
407 ((!NH_IS_VALID(ro->ro_nh)) || dst->sin_family != AF_INET || in ip_output()
464 if (ro->ro_nh == NULL) { in ip_output()
472 ro->ro_nh = fib4_lookup(fibnum, dst->sin_addr, 0, in ip_output()
475 if (ro->ro_nh == NULL || (!NH_IS_VALID(ro->ro_nh))) { in ip_output()
489 struct nhop_object *nh = ro->ro_nh; in ip_output()
540 (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 Dip_input.c943 ro.ro_nh = fib4_lookup(M_GETFIB(m), ip->ip_dst, 0, NHR_REF, flowid); in ip_forward()
944 if (ro.ro_nh != NULL) { in ip_forward()
945 ia = ifatoia(ro.ro_nh->nh_ifa); in ip_forward()
1010 nh = ro.ro_nh; in ip_forward()
1034 if (error == EMSGSIZE && ro.ro_nh) in ip_forward()
1035 mtu = ro.ro_nh->nh_mtu; in ip_forward()
H A Dtcp_output.c1470 if (error == EMSGSIZE && inp->inp_route6.ro_nh != NULL) in tcp_default_output()
1471 mtu = inp->inp_route6.ro_nh->nh_mtu; in tcp_default_output()
1514 if (error == EMSGSIZE && inp->inp_route.ro_nh != NULL) in tcp_default_output()
1515 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.c688 errno == EHOSTDOWN) && inp->inp_route.ro_nh) { in udp_notify()
689 NH_FREE(inp->inp_route.ro_nh); in udp_notify()
690 inp->inp_route.ro_nh = (struct nhop_object *)NULL; in udp_notify()
H A Dsctp_pcb.c3975 rmtu = SCTP_GATHER_MTU_FROM_ROUTE(net->ro._s_addr, &net->ro._l_addr.sa, net->ro.ro_nh); in sctp_add_remote_addr()
4058 if (net->ro.ro_nh == NULL) { in sctp_add_remote_addr()
4064 } else if (netfirst->ro.ro_nh == NULL) { in sctp_add_remote_addr()
4070 } else if (net->ro.ro_nh->nh_ifp != netfirst->ro.ro_nh->nh_ifp) { in sctp_add_remote_addr()
4091 } else if (netlook->ro.ro_nh == NULL) { in sctp_add_remote_addr()
4095 } else if (netlook->ro.ro_nh->nh_ifp != net->ro.ro_nh->nh_ifp) { in sctp_add_remote_addr()
4108 } else if ((stcb->asoc.primary_destination->ro.ro_nh == NULL) && in sctp_add_remote_addr()
4109 (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()
4175 if (ro->ro_nh == NULL) { in sctp_lowlevel_chunk_output()
4194 (void *)ro->ro_nh); in sctp_lowlevel_chunk_output()
4242 if ((ro->ro_nh != NULL) && (net->ro._s_addr) && in sctp_lowlevel_chunk_output()
4258 } else if (ro->ro_nh == NULL) { in sctp_lowlevel_chunk_output()
4448 if (ro->ro_nh == NULL) { in sctp_lowlevel_chunk_output()
4575 if (ro->ro_nh == NULL) { in sctp_lowlevel_chunk_output()
4584 if ((ro->ro_nh != NULL) && (net->ro._s_addr) && in sctp_lowlevel_chunk_output()
13908 if (ro == NULL || ro->ro_nh == NULL || in sctp_v4src_match_nexthop()
[all …]
H A Dsctp_structs.h203 struct nhop_object *ro_nh; member
H A Dtcp_subr.c2530 if (inp->inp_route.ro_nh) { in tcp_notify()
2531 NH_FREE(inp->inp_route.ro_nh); in tcp_notify()
2532 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
381 if ((_ro)->ro_nh) { \
382 NH_FREE((_ro)->ro_nh); \
383 (_ro)->ro_nh = NULL; \
392 if ((ro)->ro_nh != NULL) { \
393 NH_FREE((ro)->ro_nh); \
394 (ro)->ro_nh = NULL; \
H A Dif_vxlan.c2570 ro->ro_nh = fib4_lookup(M_GETFIB(m), ip->ip_dst, 0, NHR_NONE, in vxlan_encap4()
2572 if (ro->ro_nh == NULL) { in vxlan_encap4()
2580 if ((csum_flags & ro->ro_nh->nh_ifp->if_hwassist) != in vxlan_encap4()
2583 const struct ifnet *nh_ifp = ro->ro_nh->nh_ifp; in vxlan_encap4()
2681 ro->ro_nh = fib6_lookup(M_GETFIB(m), &ip6->ip6_dst, 0, in vxlan_encap6()
2683 if (ro->ro_nh == NULL) { in vxlan_encap6()
2691 if ((csum_flags & ro->ro_nh->nh_ifp->if_hwassist) != in vxlan_encap6()
2694 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.c670 if (ro == NULL || ro->ro_nh == NULL) { in ip6_output()
684 if (ro->ro_nh != NULL && inp != NULL) { in ip6_output()
690 (!NH_IS_VALID(ro->ro_nh) || in ip6_output()
699 nh = ro->ro_nh; in ip6_output()
1540 mtu = ro_pmtu->ro_nh->nh_mtu; in ip6_getpmtu()
2665 if (pktopt->ip6po_nextroute.ro_nh) { in ip6_clearpktopts()
2666 NH_FREE(pktopt->ip6po_nextroute.ro_nh); in ip6_clearpktopts()
2667 pktopt->ip6po_nextroute.ro_nh = NULL; in ip6_clearpktopts()
2690 if (pktopt->ip6po_route.ro_nh) { in ip6_clearpktopts()
2691 NH_FREE(pktopt->ip6po_route.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.c5508 if ((bbr->rc_inp->inp_route.ro_nh == NULL) || in bbr_update_hardware_pacing_rate()
5509 (bbr->rc_inp->inp_route.ro_nh->nh_ifp == NULL)) { in bbr_update_hardware_pacing_rate()
5525 bbr->rc_inp->inp_route.ro_nh->nh_ifp, in bbr_update_hardware_pacing_rate()
13548 mtu = inp->inp_route6.ro_nh->nh_mtu; in bbr_output_wtime()
13588 if (error == EMSGSIZE && inp->inp_route.ro_nh != NULL) in bbr_output_wtime()
13589 mtu = inp->inp_route.ro_nh->nh_mtu; in bbr_output_wtime()
13858 (inp->inp_route.ro_nh && in bbr_output_wtime()
13859 inp->inp_route.ro_nh->nh_ifp)) { in bbr_output_wtime()
13873 inp->inp_route.ro_nh->nh_ifp, in bbr_output_wtime()
13900 inp->inp_route.ro_nh->nh_ifp, in bbr_output_wtime()
[all …]
H A Drack.c2652 } else if (rack->rc_inp->inp_route.ro_nh && in rack_log_hdwr_pacing()
2653 rack->rc_inp->inp_route.ro_nh->nh_ifp) { in rack_log_hdwr_pacing()
2654 ifp = rack->rc_inp->inp_route.ro_nh->nh_ifp; in rack_log_hdwr_pacing()
2724 (rack->rc_inp->inp_route.ro_nh != NULL) && in rack_get_output_bw()
2725 (rack->rc_inp->inp_route.ro_nh->nh_ifp != NULL)) { in rack_get_output_bw()
18153 (rack->rc_inp->inp_route.ro_nh != NULL) && in pace_to_fill_cwnd()
18548 if ((rack->rc_inp->inp_route.ro_nh != NULL) && in rack_get_pacing_delay()
18560 rack->rc_inp->inp_route.ro_nh->nh_ifp, in rack_get_pacing_delay()
18621 rack->rc_inp->inp_route.ro_nh->nh_ifp, in rack_get_pacing_delay()
23005 mtu = inp->inp_route6.ro_nh->nh_mtu; in rack_output()
[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()