| /f-stack/freebsd/netinet/ |
| H A D | sctp_os_bsd.h | 206 …ine SCTP_ROUTE_IS_REAL_LOOP(ro) ((ro)->ro_nh && (ro)->ro_nh->nh_ifa && (ro)->ro_nh->nh_ifa->ifa_if… 212 #define SCTP_GET_IFN_VOID_FROM_ROUTE(ro) (void *)ro->ro_nh->nh_ifp 213 #define SCTP_GET_IF_INDEX_FROM_ROUTE(ro) (ro)->ro_nh->nh_ifp->if_index 214 #define SCTP_ROUTE_HAS_VALID_IFN(ro) ((ro)->ro_nh && (ro)->ro_nh->nh_ifp) 366 #define SCTP_GET_HLIM(inp, ro) in6_selecthlim(&inp->ip_inp.inp, (ro ? (ro->ro_nh ? (ro->ro_nh->nh_i… 401 if ((ro)->ro_nh == NULL) { \ 402 (ro)->ro_nh = rib_lookup(fibnum, &(ro)->ro_dst, NHR_REF, 0); \
|
| H A D | ip_output.c | 297 int nh_flags = ro->ro_nh->nh_flags; in rt_update_ro_flags() 391 if (ro == NULL || ro->ro_nh == NULL) { in ip_output() 471 if (ro->ro_nh == NULL) { in ip_output() 482 if (ro->ro_nh == NULL || (!NH_IS_VALID(ro->ro_nh))) { in ip_output() 496 ia = ifatoia(ro->ro_nh->nh_ifa); in ip_output() 497 ifp = ro->ro_nh->nh_ifp; in ip_output() 501 gw = &ro->ro_nh->gw4_sa; in ip_output() 502 if (ro->ro_nh->nh_flags & NHF_HOST) in ip_output() 508 if (ro->ro_nh->nh_flags & NHF_HOST) in ip_output() 509 mtu = ro->ro_nh->nh_mtu; in ip_output() [all …]
|
| H A D | in_fib.h | 37 struct nhop_object *ro_nh; member
|
| H A D | ip_input.c | 981 ro.ro_nh = fib4_lookup(M_GETFIB(m), ip->ip_dst, 0, NHR_REF, flowid); in ip_forward() 982 if (ro.ro_nh != NULL) { in ip_forward() 983 ia = ifatoia(ro.ro_nh->nh_ifa); in ip_forward() 1048 nh = ro.ro_nh; in ip_forward() 1069 if (error == EMSGSIZE && ro.ro_nh) in ip_forward() 1070 mtu = ro.ro_nh->nh_mtu; in ip_forward()
|
| H A D | tcp_output.c | 1453 if (error == EMSGSIZE && tp->t_inpcb->inp_route6.ro_nh != NULL) in tcp_output() 1454 mtu = tp->t_inpcb->inp_route6.ro_nh->nh_mtu; in tcp_output() 1496 if (error == EMSGSIZE && tp->t_inpcb->inp_route.ro_nh != NULL) in tcp_output() 1497 mtu = tp->t_inpcb->inp_route.ro_nh->nh_mtu; in tcp_output()
|
| H A D | sctp_timer.c | 349 if (alt->ro.ro_nh == NULL) { in sctp_find_alternate_net() 357 (alt->ro.ro_nh != NULL) && in sctp_find_alternate_net() 1517 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 | 767 errno == EHOSTDOWN) && inp->inp_route.ro_nh) { in udp_notify() 768 NH_FREE(inp->inp_route.ro_nh); in udp_notify() 769 inp->inp_route.ro_nh = (struct nhop_object *)NULL; in udp_notify()
|
| H A D | sctp_pcb.c | 3963 rmtu = SCTP_GATHER_MTU_FROM_ROUTE(net->ro._s_addr, &net->ro._l_addr.sa, net->ro.ro_nh); in sctp_add_remote_addr() 4046 if (net->ro.ro_nh == NULL) { in sctp_add_remote_addr() 4052 } else if (netfirst->ro.ro_nh == NULL) { in sctp_add_remote_addr() 4058 } else if (net->ro.ro_nh->nh_ifp != netfirst->ro.ro_nh->nh_ifp) { in sctp_add_remote_addr() 4079 } else if (netlook->ro.ro_nh == NULL) { in sctp_add_remote_addr() 4083 } else if (netlook->ro.ro_nh->nh_ifp != net->ro.ro_nh->nh_ifp) { in sctp_add_remote_addr() 4096 } else if ((stcb->asoc.primary_destination->ro.ro_nh == NULL) && in sctp_add_remote_addr() 4097 (net->ro.ro_nh) && in sctp_add_remote_addr()
|
| H A D | sctp_output.c | 3376 if (ro->ro_nh == NULL) { in sctp_source_address_selection() 3382 if (ro->ro_nh == NULL) { in sctp_source_address_selection() 4178 if (ro->ro_nh == NULL) { in sctp_lowlevel_chunk_output() 4197 (void *)ro->ro_nh); in sctp_lowlevel_chunk_output() 4237 if ((ro->ro_nh != NULL) && (net->ro._s_addr) && in sctp_lowlevel_chunk_output() 4253 } else if (ro->ro_nh == NULL) { in sctp_lowlevel_chunk_output() 4443 if (ro->ro_nh == NULL) { in sctp_lowlevel_chunk_output() 4570 if (ro->ro_nh == NULL) { in sctp_lowlevel_chunk_output() 4579 if ((ro->ro_nh != NULL) && (net->ro._s_addr) && in sctp_lowlevel_chunk_output() 13820 if (ro == NULL || ro->ro_nh == NULL || in sctp_v4src_match_nexthop() [all …]
|
| H A D | sctp_structs.h | 186 struct nhop_object *ro_nh; member
|
| H A D | tcp_subr.c | 2225 if (inp->inp_route.ro_nh) { in tcp_notify() 2226 NH_FREE(inp->inp_route.ro_nh); in tcp_notify() 2227 inp->inp_route.ro_nh = (struct nhop_object *)NULL; in tcp_notify()
|
| H A D | sctp_asconf.c | 1129 if (net->ro.ro_nh == NULL) in sctp_path_check_and_react()
|
| /f-stack/freebsd/net/ |
| H A D | route.h | 53 struct nhop_object *ro_nh; member 380 if ((_ro)->ro_nh) { \ 381 NH_FREE((_ro)->ro_nh); \ 382 (_ro)->ro_nh = NULL; \ 391 if ((ro)->ro_nh != NULL) { \ 392 NH_FREE((ro)->ro_nh); \ 393 (ro)->ro_nh = NULL; \
|
| H A D | if_vxlan.c | 2524 ro->ro_nh = fib4_lookup(RT_DEFAULT_FIB, ip->ip_dst, 0, NHR_NONE, in vxlan_encap4() 2526 if (ro->ro_nh == NULL) { in vxlan_encap4() 2534 if ((csum_flags & ro->ro_nh->nh_ifp->if_hwassist) != in vxlan_encap4() 2537 const struct ifnet *nh_ifp = ro->ro_nh->nh_ifp; in vxlan_encap4() 2636 ro->ro_nh = fib6_lookup(RT_DEFAULT_FIB, &ip6->ip6_dst, 0, in vxlan_encap6() 2638 if (ro->ro_nh == NULL) { in vxlan_encap6() 2646 if ((csum_flags & ro->ro_nh->nh_ifp->if_hwassist) != in vxlan_encap6() 2649 const struct ifnet *nh_ifp = ro->ro_nh->nh_ifp; in vxlan_encap6()
|
| /f-stack/tools/compat/include/net/ |
| H A D | route.h | 51 struct nhop_object *ro_nh; member 378 if ((_ro)->ro_nh) { \ 379 NH_FREE((_ro)->ro_nh); \ 380 (_ro)->ro_nh = NULL; \ 389 if ((ro)->ro_nh != NULL) { \ 390 NH_FREE((ro)->ro_nh); \ 391 (ro)->ro_nh = NULL; \
|
| /f-stack/freebsd/netinet6/ |
| H A D | in6_src.c | 707 if (ron->ro_nh != NULL && ( in selectroute() 708 !NH_IS_VALID(ron->ro_nh) || in selectroute() 713 if (ron->ro_nh == NULL) { in selectroute() 726 if (ron->ro_nh == NULL || in selectroute() 730 nh = ron->ro_nh; in selectroute() 742 if (ro->ro_nh && in selectroute() 743 (!NH_IS_VALID(ro->ro_nh) || in selectroute() 770 ro->ro_nh = fib6_lookup(fibnum, in selectroute() 784 if (ro->ro_nh) in selectroute() 785 ifp = ro->ro_nh->nh_ifp; in selectroute() [all …]
|
| H A D | ip6_output.c | 677 if (ro == NULL || ro->ro_nh == NULL) { in ip6_output() 691 if (ro->ro_nh != NULL && inp != NULL) { in ip6_output() 697 (!NH_IS_VALID(ro->ro_nh) || in ip6_output() 705 nh = ro->ro_nh; in ip6_output() 865 if (opt && opt->ip6po_nextroute.ro_nh) { in ip6_output() 1537 mtu = ro_pmtu->ro_nh->nh_mtu; in ip6_getpmtu() 2701 if (pktopt->ip6po_nextroute.ro_nh) { in ip6_clearpktopts() 2703 pktopt->ip6po_nextroute.ro_nh = NULL; in ip6_clearpktopts() 2723 if (pktopt->ip6po_route.ro_nh) { in ip6_clearpktopts() 2724 NH_FREE(pktopt->ip6po_route.ro_nh); in ip6_clearpktopts() [all …]
|
| H A D | in6.h | 380 struct nhop_object *ro_nh; member
|
| /f-stack/freebsd/net/route/ |
| H A D | route_var.h | 106 _CHK_ROUTE_FIELD(_route_new, ro_nh) \
|
| /f-stack/tools/compat/include/netinet6/ |
| H A D | in6.h | 380 struct nhop_object *ro_nh; member
|
| /f-stack/freebsd/netinet/tcp_stacks/ |
| H A D | bbr.c | 5539 if ((bbr->rc_inp->inp_route.ro_nh == NULL) || in bbr_update_hardware_pacing_rate() 5540 (bbr->rc_inp->inp_route.ro_nh->nh_ifp == NULL)) { in bbr_update_hardware_pacing_rate() 5556 bbr->rc_inp->inp_route.ro_nh->nh_ifp, in bbr_update_hardware_pacing_rate() 13773 mtu = inp->inp_route6.ro_nh->nh_mtu; in bbr_output_wtime() 13813 if (error == EMSGSIZE && inp->inp_route.ro_nh != NULL) in bbr_output_wtime() 13814 mtu = inp->inp_route.ro_nh->nh_mtu; in bbr_output_wtime() 14071 (inp->inp_route.ro_nh && in bbr_output_wtime() 14072 inp->inp_route.ro_nh->nh_ifp)) { in bbr_output_wtime() 14086 inp->inp_route.ro_nh->nh_ifp, in bbr_output_wtime() 14113 inp->inp_route.ro_nh->nh_ifp, in bbr_output_wtime() [all …]
|
| H A D | rack.c | 11569 if ((rack->rc_inp->inp_route.ro_nh != NULL) && in rack_get_pacing_delay() 11570 (rack->rc_inp->inp_route.ro_nh->nh_ifp != NULL)) { in rack_get_pacing_delay() 11580 rack->rc_inp->inp_route.ro_nh->nh_ifp, in rack_get_pacing_delay() 11589 rack_log_hdwr_pacing(rack, rack->rc_inp->inp_route.ro_nh->nh_ifp, in rack_get_pacing_delay() 11600 rack->rc_inp->inp_route.ro_nh->nh_ifp, in rack_get_pacing_delay() 11614 rack_log_hdwr_pacing(rack, rack->rc_inp->inp_route.ro_nh->nh_ifp, in rack_get_pacing_delay() 13750 if (error == EMSGSIZE && inp->inp_route6.ro_nh != NULL) in rack_output() 13751 mtu = inp->inp_route6.ro_nh->nh_mtu; in rack_output() 13791 if (error == EMSGSIZE && inp->inp_route.ro_nh != NULL) in rack_output() 13792 mtu = inp->inp_route.ro_nh->nh_mtu; in rack_output()
|
| /f-stack/freebsd/kern/ |
| H A D | uipc_ktls.c | 843 nh = inp->inp_route.ro_nh; in ktls_alloc_snd_tag()
|