Home
last modified time | relevance | path

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

12

/freebsd/sys/netinet6/
H A Dip6_forward.c217 outzone = in6_get_unicast_scopeid(&ip6->ip6_src, nh->nh_ifp); in ip6_forward()
222 in6_ifstat_inc(nh->nh_ifp, ifs6_in_discard); in ip6_forward()
231 if_name(m->m_pkthdr.rcvif), if_name(nh->nh_ifp)); in ip6_forward()
247 outzone = in6_get_unicast_scopeid(&ip6->ip6_dst, nh->nh_ifp); in ip6_forward()
271 if (V_ip6_sendredirects && nh->nh_ifp == m->m_pkthdr.rcvif && !srcrt && in ip6_forward()
283 if ((nh->nh_ifp->if_flags & IFF_LOOPBACK) != 0) { in ip6_forward()
304 if_name(nh->nh_ifp)); in ip6_forward()
311 origifp = nh->nh_ifp; in ip6_forward()
325 if (pfil_mbuf_fwd(V_inet6_pfil_head, &m, nh->nh_ifp, in ip6_forward()
383 if (m->m_pkthdr.len > IN6_LINKMTU(nh->nh_ifp)) { in ip6_forward()
[all …]
H A Dip6_fastfwd.c205 in6_ifstat_inc(nh->nh_ifp, ifs6_in_toobig); in ip6_tryforward()
216 if (pfil_mbuf_out(V_inet6_pfil_head, &m, nh->nh_ifp, in ip6_tryforward()
225 in6_ifstat_inc(nh->nh_ifp, ifs6_in_toobig); in ip6_tryforward()
280 IP_PROBE(send, NULL, NULL, ip6, nh->nh_ifp, NULL, ip6); in ip6_tryforward()
284 error = (*nh->nh_ifp->if_output)(nh->nh_ifp, m, in ip6_tryforward()
287 in6_ifstat_inc(nh->nh_ifp, ifs6_out_discard); in ip6_tryforward()
290 in6_ifstat_inc(nh->nh_ifp, ifs6_out_forward); in ip6_tryforward()
298 in6_ifstat_inc(nh->nh_ifp, ifs6_out_discard); in ip6_tryforward()
H A Din6_rmx.c118 nh->nh_mtu = IN6_LINKMTU(nh->nh_ifp); in rib6_augment_nh()
119 } else if (nh->nh_mtu > IN6_LINKMTU(nh->nh_ifp)) in rib6_augment_nh()
120 nh->nh_mtu = IN6_LINKMTU(nh->nh_ifp); in rib6_augment_nh()
H A Din6_fib.c131 if (RT_LINK_IS_UP(nh->nh_ifp)) { in fib6_lookup()
169 if (RT_LINK_IS_UP(nh->nh_ifp)) { in fib6_lookup()
341 if (RT_LINK_IS_UP(nh->nh_ifp)) in fib6_lookup_debugnet()
/freebsd/sys/netinet/
H A Dip_fastfwd.c404 if (pfil_mbuf_out(V_inet_pfil_head, &m, nh->nh_ifp, in ip_tryforward()
468 nh->nh_ifp == m->m_pkthdr.rcvif) in ip_tryforward()
482 IP_PROBE(send, NULL, NULL, ip, nh->nh_ifp, ip, NULL); in ip_tryforward()
483 error = (*nh->nh_ifp->if_output)(nh->nh_ifp, m, gw, &ro); in ip_tryforward()
499 nh->nh_ifp->if_hwassist) != 0) in ip_tryforward()
515 mtod(m, struct ip *), nh->nh_ifp, in ip_tryforward()
517 error = (*nh->nh_ifp->if_output)(nh->nh_ifp, m, in ip_tryforward()
H A Din_rmx.c74 if (in_broadcast(addr4->sin_addr, nh->nh_ifp)) in rib4_set_nh_pfxflags()
95 nh->nh_mtu = nh->nh_ifp->if_mtu; in rib4_augment_nh()
96 } else if (nh->nh_mtu > nh->nh_ifp->if_mtu) in rib4_augment_nh()
97 nh->nh_mtu = nh->nh_ifp->if_mtu; in rib4_augment_nh()
H A Din_fib.c123 if (RT_LINK_IS_UP(nh->nh_ifp)) { in fib4_lookup()
160 if (RT_LINK_IS_UP(nh->nh_ifp)) { in fib4_lookup()
326 if (RT_LINK_IS_UP(nh->nh_ifp)) in fib4_lookup_debugnet()
H A Dsctp_os_bsd.h208 #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 …inp, ro) in6_selecthlim(&inp->ip_inp.inp, (ro ? (ro->ro_nh ? (ro->ro_nh->nh_ifp) : (NULL)) : (NULL…
H A Dtcp_offload.c97 ifp = nh->nh_ifp; in tcp_offload_connect()
H A Din.c1548 if (!(nh->nh_flags & NHF_HOST) || nh->nh_ifp->if_type != IFT_ETHER || in in_lltable_rtcheck()
1549 (nh->nh_ifp->if_flags & (IFF_NOARP | IFF_STATICARP)) != 0 || in in_lltable_rtcheck()
1563 if ((nh->nh_ifp != ifp) && (nh->nh_flags & NHF_HOST) == 0) { in in_lltable_rtcheck()
/freebsd/sys/net/route/
H A Dnhop_ctl.c95 _Static_assert(__offsetof(struct nhop_object, nh_ifp) == 32,
137 if ((nh->nh_ifp->if_flags & IFF_LOOPBACK) && in get_aifp()
142 if_name(nh->nh_ifp), nh->gwl_sa.sdl_index); in get_aifp()
147 aifp = nh->nh_ifp; in get_aifp()
472 if_name(nh->nh_aifp), if_name(nh->nh_ifp)); in reference_nhop_deps()
473 if (!if_try_ref(nh->nh_ifp)) { in reference_nhop_deps()
549 if_rele(nh->nh_ifp); in destroy_nhop()
708 nh->nh_ifp = nh_orig->nh_ifp; in nhop_copy()
830 nh->nh_ifp = V_loif; in nhop_set_blackhole()
971 nh->nh_ifp = ifp; in nhop_set_transmit_ifp()
[all …]
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.h133 struct ifnet *nh_ifp; /* Logical egress interface. Always != NULL */ member
155 #define NH_IS_VALID(_nh) RT_LINK_IS_UP((_nh)->nh_ifp)
H A Dnhop.c217 .ifentropy = (uint16_t)((((uintptr_t)nh->nh_ifp) >> 6) & 0xFFFF), in hash_priv()
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_addr.c337 } else if (if_getflags(nh->nh_ifp) & IFF_LOOPBACK) { in addr4_resolve()
350 ifp = nh->nh_ifp; in addr4_resolve()
352 } else if (ifp != nh->nh_ifp) { in addr4_resolve()
363 if (if_getflags(nh->nh_ifp) & IFF_LOOPBACK) in addr4_resolve()
369 ifp = nh->nh_ifp; in addr4_resolve()
535 } else if (if_getflags(nh->nh_ifp) & IFF_LOOPBACK) { in addr6_resolve()
548 ifp = nh->nh_ifp; in addr6_resolve()
550 } else if (ifp != nh->nh_ifp) { in addr6_resolve()
561 if (if_getflags(nh->nh_ifp) & IFF_LOOPBACK) in addr6_resolve()
567 ifp = nh->nh_ifp; in addr6_resolve()
[all …]
/freebsd/sys/netlink/route/
H A Drt.c201 rtnh->rtnh_ifindex = if_getindex(wn[i].nh->nh_ifp); in dump_rc_nhg()
256 nlattr_add_u32(nw, NL_RTA_OIF, if_getindex(nh->nh_ifp)); in dump_rc_nhop()
709 if (nh->nh_ifp != NULL) in finalize_nhop()
710 nhop_set_direct_gw(nh, nh->nh_ifp); in finalize_nhop()
719 if (nh->nh_ifp == NULL) { in finalize_nhop()
751 struct ifaddr *ifa = ifaof_ifpforaddr(gw_sa, nh->nh_ifp); in finalize_nhop()
755 ifa = ifaof_ifpforaddr(gw_sa, nh->nh_ifp); in finalize_nhop()
985 if ((attrs->rta_oif != NULL) && (attrs->rta_oif != nh->nh_ifp)) in path_match_func()
H A Dnexthop.c455 nlattr_add_u32(nw, NHA_OIF, if_getindex(nh->nh_ifp)); in dump_nhop()
997 (unhop->un_nhop_src == NULL || unhop->un_nhop_src->nh_ifp != attrs->nha_oif)) in match_unhop()
/freebsd/sys/net/
H A Drtsock.c708 nh->nh_ifp->if_flags & IFF_LOOPBACK) { in fill_addrinfo()
800 if (nh->nh_ifp != NULL && in handle_rtm_get()
801 nh->nh_ifp->if_type == IFT_PROPVIRTUAL) { in handle_rtm_get()
965 ifp = nh->nh_ifp; in update_rtm_from_rc()
1153 rtm->rtm_index = nh->nh_ifp->if_index; in rts_send()
2036 info.rti_ifp = nh->nh_ifp; in rtsock_routemsg()
2265 if (nh->nh_ifp && !(nh->nh_ifp->if_flags & IFF_DYING)) { in sysctl_dumpnhop()
2266 info.rti_info[RTAX_IFP] = nh->nh_ifp->if_addr->ifa_addr; in sysctl_dumpnhop()
2268 if (nh->nh_ifp->if_flags & IFF_POINTOPOINT) in sysctl_dumpnhop()
2290 rtm->rtm_index = nh->nh_ifp->if_index; in sysctl_dumpnhop()
H A Dif_vxlan.c2580 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() local
2587 "hwassist 0x%08x\n", nh_ifp->if_xname, in vxlan_encap4()
2588 csum_flags & ~(uint32_t)nh_ifp->if_hwassist, in vxlan_encap4()
2590 (uint32_t)nh_ifp->if_hwassist); in vxlan_encap4()
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() local
2698 "hwassist 0x%08x\n", nh_ifp in vxlan_encap6()
[all...]
H A Dif_stf.c674 if (nh->nh_ifp != inifp) in stf_checkaddr4()
809 if ((nh->nh_ifp == ifp) && in in_stf_input()
/freebsd/sys/dev/irdma/
H A Dfbsd_kcompat.c371 if (!nh || (nh->nh_ifp != netdev && in irdma_get_route_ifp()
372 rdma_vlan_dev_real_dev(nh->nh_ifp) != netdev)) in irdma_get_route_ifp()
376 *ifp = nh->nh_ifp; in irdma_get_route_ifp()
/freebsd/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c195 ifp = nh4->nh_ifp; in nat64_direct_output_one()
207 ifp = nh6->nh_ifp; in nat64_direct_output_one()
1327 if (V_nat64out->output(nh->nh_ifp, m, (struct sockaddr *)&dst, in nat64_do_handle_ip4()
1717 if (V_nat64out->output(nh->nh_ifp, m, (struct sockaddr *)&dst, in nat64_do_handle_ip6()
/freebsd/sys/tests/fib_lookup/
H A Dfib_lookup.c845 acc += (uintptr_t) nh_fib->nh_ifp; in rnd_lps()
847 acc -= (uintptr_t) nh_fib->nh_ifp; in rnd_lps()
/freebsd/sys/dev/cxgbe/tom/
H A Dt4_connect.c247 if_t rt_ifp = nh->nh_ifp; in t4_connect()
/freebsd/sys/dev/cxgbe/iw_cxgbe/
H A Dcm.c553 *ifp = nh->nh_ifp; in get_ifnet_from_raddr()
2596 if_t nh_ifp; /* Logical egress interface */ in c4iw_connect() local
2652 err = get_ifnet_from_raddr(&cm_id->remote_addr, &nh_ifp); in c4iw_connect()
2663 if (!(if_getcapenable(nh_ifp) & IFCAP_TOE) || in c4iw_connect()
2664 TOEDEV(nh_ifp) == NULL) { in c4iw_connect()

12