Home
last modified time | relevance | path

Searched refs:nh_ifp (Results 1 – 25 of 43) sorted by relevance

12

/freebsd-13.1/sys/netinet6/
H A Dip6_forward.c212 in6_ifstat_inc(nh->nh_ifp, ifs6_in_discard); in ip6_forward()
222 if_name(m->m_pkthdr.rcvif), if_name(nh->nh_ifp)); in ip6_forward()
274 if ((nh->nh_ifp->if_flags & IFF_LOOPBACK) != 0) { in ip6_forward()
295 if_name(nh->nh_ifp)); in ip6_forward()
302 origifp = nh->nh_ifp; in ip6_forward()
374 if (m->m_pkthdr.len > IN6_LINKMTU(nh->nh_ifp)) { in ip6_forward()
375 in6_ifstat_inc(nh->nh_ifp, ifs6_in_toobig); in ip6_forward()
378 IN6_LINKMTU(nh->nh_ifp)); in ip6_forward()
387 error = nd6_output_ifp(nh->nh_ifp, origifp, m, &dst, NULL); in ip6_forward()
389 in6_ifstat_inc(nh->nh_ifp, ifs6_out_discard); in ip6_forward()
[all …]
H A Dip6_fastfwd.c206 in6_ifstat_inc(nh->nh_ifp, ifs6_in_toobig); in ip6_tryforward()
217 if (pfil_run_hooks(V_inet6_pfil_head, &m, nh->nh_ifp, PFIL_OUT | in ip6_tryforward()
226 in6_ifstat_inc(nh->nh_ifp, ifs6_in_toobig); in ip6_tryforward()
281 IP_PROBE(send, NULL, NULL, ip6, nh->nh_ifp, NULL, ip6); in ip6_tryforward()
285 error = (*nh->nh_ifp->if_output)(nh->nh_ifp, m, in ip6_tryforward()
288 in6_ifstat_inc(nh->nh_ifp, ifs6_out_discard); in ip6_tryforward()
291 in6_ifstat_inc(nh->nh_ifp, ifs6_out_forward); in ip6_tryforward()
299 in6_ifstat_inc(nh->nh_ifp, ifs6_out_discard); in ip6_tryforward()
H A Din6_rmx.c115 nh->nh_mtu = IN6_LINKMTU(nh->nh_ifp); in rib6_preadd()
116 } else if (nh->nh_mtu > IN6_LINKMTU(nh->nh_ifp)) in rib6_preadd()
117 nh->nh_mtu = IN6_LINKMTU(nh->nh_ifp); in rib6_preadd()
H A Din6_fib.c132 if (RT_LINK_IS_UP(nh->nh_ifp)) { in fib6_lookup()
170 if (RT_LINK_IS_UP(nh->nh_ifp)) { in fib6_lookup()
342 if (RT_LINK_IS_UP(nh->nh_ifp)) in fib6_lookup_debugnet()
H A Din6_src.c728 ifp = nh->nh_ifp; in selectroute()
782 ifp = ro->ro_nh->nh_ifp; in selectroute()
922 hlim = ND_IFINFO(nh->nh_ifp)->chlim; in in6_selecthlim()
/freebsd-13.1/sys/net/route/
H A Dnhop_ctl.c151 aifp = nh->nh_ifp; in get_aifp()
445 nh->nh_ifp = info->rti_ifp; in alter_nhop_from_info()
479 nh->nh_ifp = nh_orig->nh_ifp; in nhop_create_from_nhop()
532 if (!if_try_ref(nh->nh_ifp)) { in reference_nhop_deps()
610 if_rele(nh->nh_ifp); in destroy_nhop()
814 if (nh->nh_ifp == ifp) { in nhops_update_ifmtu()
844 if_name(nh->nh_ifp), abuf); in nhop_print_buf()
851 if_name(nh->nh_ifp), abuf); in nhop_print_buf()
856 if_name(nh->nh_ifp)); in nhop_print_buf()
860 if_name(nh->nh_ifp)); in nhop_print_buf()
[all …]
H A Dnhop.h135 struct ifnet *nh_ifp; /* Logical egress interface. Always != NULL */ member
157 #define NH_IS_VALID(_nh) RT_LINK_IS_UP((_nh)->nh_ifp)
H A Droute_ddb.c145 if ((nh->nh_ifp->if_flags & IFF_DYING) == 0) { in rt_dumpentry_ddb()
146 rt_dumpaddr_ddb("ifp", nh->nh_ifp->if_addr->ifa_addr); in rt_dumpentry_ddb()
H A Dnhop.c218 ifindex = nh->nh_ifp->if_index & 0xFFFF; in hash_priv()
/freebsd-13.1/sys/netinet/
H A Dip_fastfwd.c413 if (pfil_run_hooks(V_inet_pfil_head, &m, nh->nh_ifp, in ip_tryforward()
477 nh->nh_ifp == m->m_pkthdr.rcvif) in ip_tryforward()
491 IP_PROBE(send, NULL, NULL, ip, nh->nh_ifp, ip, NULL); in ip_tryforward()
492 error = (*nh->nh_ifp->if_output)(nh->nh_ifp, m, gw, &ro); in ip_tryforward()
508 nh->nh_ifp->if_hwassist) != 0) in ip_tryforward()
524 mtod(m, struct ip *), nh->nh_ifp, in ip_tryforward()
526 error = (*nh->nh_ifp->if_output)(nh->nh_ifp, m, in ip_tryforward()
H A Din_rmx.c79 if (in_broadcast(addr4->sin_addr, nh->nh_ifp)) { in rib4_preadd()
92 nh->nh_mtu = nh->nh_ifp->if_mtu; in rib4_preadd()
93 } else if (nh->nh_mtu > nh->nh_ifp->if_mtu) in rib4_preadd()
94 nh->nh_mtu = nh->nh_ifp->if_mtu; in rib4_preadd()
H A Din_fib.c124 if (RT_LINK_IS_UP(nh->nh_ifp)) { in fib4_lookup()
161 if (RT_LINK_IS_UP(nh->nh_ifp)) { in fib4_lookup()
327 if (RT_LINK_IS_UP(nh->nh_ifp)) in fib4_lookup_debugnet()
H A Dsctp_os_bsd.h212 #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)
365 …inp, ro) in6_selecthlim(&inp->ip_inp.inp, (ro ? (ro->ro_nh ? (ro->ro_nh->nh_ifp) : (NULL)) : (NULL…
H A Dtcp_offload.c98 ifp = nh->nh_ifp; in tcp_offload_connect()
H A Din.c1429 if (!(nh->nh_flags & NHF_HOST) || nh->nh_ifp->if_type != IFT_ETHER || in in_lltable_rtcheck()
1430 (nh->nh_ifp->if_flags & (IFF_NOARP | IFF_STATICARP)) != 0 || in in_lltable_rtcheck()
1444 if ((nh->nh_ifp != ifp) && (nh->nh_flags & NHF_HOST) == 0) { in in_lltable_rtcheck()
/freebsd-13.1/sys/ofed/drivers/infiniband/core/
H A Dib_addr.c341 } else if (nh->nh_ifp->if_flags & IFF_LOOPBACK) { in addr4_resolve()
354 ifp = nh->nh_ifp; in addr4_resolve()
356 } else if (ifp != nh->nh_ifp) { in addr4_resolve()
367 if (nh->nh_ifp->if_flags & IFF_LOOPBACK) in addr4_resolve()
373 ifp = nh->nh_ifp; in addr4_resolve()
539 } else if (nh->nh_ifp->if_flags & IFF_LOOPBACK) { in addr6_resolve()
552 ifp = nh->nh_ifp; in addr6_resolve()
554 } else if (ifp != nh->nh_ifp) { in addr6_resolve()
565 if (nh->nh_ifp->if_flags & IFF_LOOPBACK) in addr6_resolve()
571 ifp = nh->nh_ifp; in addr6_resolve()
[all …]
/freebsd-13.1/sys/net/
H A Droute.c396 info->rti_ifp = nh->nh_ifp; in rt_exportinfo()
438 if (RT_LINK_IS_UP(nh->nh_ifp)) { in rib_lookup_info()
483 if (nh->nh_ifp != ifp) in rt_ifdelroute()
H A Drtsock.c793 if (nh->nh_ifp != NULL && in handle_rtm_get()
794 nh->nh_ifp->if_type == IFT_PROPVIRTUAL) { in handle_rtm_get()
956 ifp = nh->nh_ifp; in update_rtm_from_rc()
1129 rtm->rtm_index = nh->nh_ifp->if_index; in route_output()
1992 info.rti_ifp = nh->nh_ifp; in rtsock_routemsg()
2252 if (nh->nh_ifp && !(nh->nh_ifp->if_flags & IFF_DYING)) { in sysctl_dumpnhop()
2253 info.rti_info[RTAX_IFP] = nh->nh_ifp->if_addr->ifa_addr; in sysctl_dumpnhop()
2255 if (nh->nh_ifp->if_flags & IFF_POINTOPOINT) in sysctl_dumpnhop()
2277 rtm->rtm_index = nh->nh_ifp->if_index; in sysctl_dumpnhop()
H A Dif_vxlan.c2544 if ((csum_flags & ro->ro_nh->nh_ifp->if_hwassist) != in vxlan_encap4()
2547 const struct ifnet *nh_ifp = ro->ro_nh->nh_ifp; in vxlan_encap4() local
2551 "hwassist 0x%08x\n", nh_ifp->if_xname, in vxlan_encap4()
2552 csum_flags & ~(uint32_t)nh_ifp->if_hwassist, in vxlan_encap4()
2554 (uint32_t)nh_ifp->if_hwassist); in vxlan_encap4()
2656 if ((csum_flags & ro->ro_nh->nh_ifp->if_hwassist) != in vxlan_encap6()
2659 const struct ifnet *nh_ifp = ro->ro_nh->nh_ifp; in vxlan_encap6() local
2663 "hwassist 0x%08x\n", nh_ifp->if_xname, in vxlan_encap6()
2664 csum_flags & ~(uint32_t)nh_ifp->if_hwassist, in vxlan_encap6()
2666 (uint32_t)nh_ifp->if_hwassist); in vxlan_encap6()
/freebsd-13.1/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c196 ifp = nh4->nh_ifp; in nat64_direct_output_one()
208 ifp = nh6->nh_ifp; in nat64_direct_output_one()
1328 if (V_nat64out->output(nh->nh_ifp, m, (struct sockaddr *)&dst, in nat64_do_handle_ip4()
1718 if (V_nat64out->output(nh->nh_ifp, m, (struct sockaddr *)&dst, in nat64_do_handle_ip6()
/freebsd-13.1/sys/tests/fib_lookup/
H A Dfib_lookup.c846 acc += (uintptr_t) nh_fib->nh_ifp; in rnd_lps()
848 acc -= (uintptr_t) nh_fib->nh_ifp; in rnd_lps()
/freebsd-13.1/sys/dev/cxgbe/tom/
H A Dt4_connect.c240 struct ifnet *rt_ifp = nh->nh_ifp; in t4_connect()
/freebsd-13.1/sys/dev/cxgbe/iw_cxgbe/
H A Dcm.c561 *ifp = nh->nh_ifp; in get_ifnet_from_raddr()
2597 struct ifnet *nh_ifp; /* Logical egress interface */ in c4iw_connect() local
2651 err = get_ifnet_from_raddr(&cm_id->remote_addr, &nh_ifp); in c4iw_connect()
2663 if (!(nh_ifp->if_capenable & IFCAP_TOE) || in c4iw_connect()
2664 TOEDEV(nh_ifp) == NULL) { in c4iw_connect()
/freebsd-13.1/sys/netpfil/ipfilter/netinet/
H A Dip_fil_freebsd.c764 ifp = nh->nh_ifp; in ipf_fastroute()
929 return (fin->fin_ifp == nh->nh_ifp);
/freebsd-13.1/sys/netgraph/netflow/
H A Dnetflow.c362 fle->f.fle_o_ifx = nh->nh_ifp->if_index; in hash_insert()
440 fle6->f.fle_o_ifx = nh->nh_ifp->if_index; in hash6_insert()

12