/freebsd-current/sys/dev/sfxge/ |
H A D | sfxge_rx.h | 63 * @nh: IP (v4 or v6) header of super-packet 84 void *nh; member in struct:sfxge_lro_conn
|
/freebsd-current/sys/net/route/ |
H A D | nhop_var.h | 89 struct nhop_object *nh; /* backreference to the dataplane nhop */ member in struct:nhop_priv
|
H A D | fib_algo.h | 125 uint32_t fib_get_nhop_idx(struct fib_data *fd, struct nhop_object *nh);
|
/freebsd-current/usr.bin/sort/ |
H A D | coll.h | 93 struct n_hint nh; member in union:key_hint::__anon6509
|
/freebsd-current/sys/netinet6/ |
H A D | ip6_output.c | 412 struct nhop_object *nh; local 680 nh = NULL; 699 nh = ro->ro_nh; 711 &nh, fibnum, m->m_pkthdr.flowid); 724 if (nh == NULL) { 733 ifp = nh->nh_ifp; 734 origifp = nh->nh_aifp; 735 ia = (struct in6_ifaddr *)(nh->nh_ifa); 736 counter_u64_add(nh->nh_pksent, 1); 739 struct nhop_object *nh; local 1467 struct nhop_object *nh; local 1500 struct nhop_object *nh; local [all...] |
H A D | nd6.c | 1277 struct nhop_object *nh; local 1278 nh = fib6_lookup(ifp->if_fib, &addr->sin6_addr, 0, NHR_NONE, 0); 1279 if (nh != NULL && nh->nh_aifp == ifp && (nh->nh_flags & NHF_GATEWAY) == 0) 1577 nd6_isdynrte(const struct rtentry *rt, const struct nhop_object *nh, void *xap) argument 1580 if (nh->nh_flags & NHF_REDIRECT) 1614 struct nhop_object *nh; local 1616 nh = rc->rc_nh_old; 1618 if ((nh ! [all...] |
/freebsd-current/sys/contrib/dpdk_rte_lpm/ |
H A D | dpdk_lpm6.c | 302 struct nhop_object *nh; local 308 nh = rt_get_raw_nhop(rt); 317 fib_get_nhop_idx(dd->fd, nh); 328 .rc_nh_new = nh, 335 uint32_t nhidx = fib_get_nhop_idx(dd->fd, nh); 341 FIB_PRINTF(LOG_DEBUG, dd->fd, "ADD %p %s/%d nh %u = %d",
|
H A D | dpdk_lpm.c | 250 struct nhop_object *nh; local 255 nh = rt_get_raw_nhop(rt); 266 .rc_nh_new = nh, 273 uint32_t nhidx = fib_get_nhop_idx(dd->fd, nh); 279 FIB_PRINTF(LOG_DEBUG, dd->fd, "ADD %p %s/%d nh %u = %d",
|
/freebsd-current/sys/netinet/ |
H A D | ip_icmp.c | 783 struct nhop_object *nh; local 867 nh = fib4_lookup(M_GETFIB(m), ip->ip_dst, 0, NHR_NONE, 0); 868 if (nh == NULL) { 873 t = IA_SIN(ifatoia(nh->nh_ifa))->sin_addr; 963 struct nhop_object *nh; local 976 nh = fib4_lookup(fibnum, dst->sin_addr, 0, NHR_NONE, 0); 977 if (nh == NULL) 986 if (!sa_equal((struct sockaddr *)src, &nh->gw_sa)) 988 if (nh->nh_ifa != ifa && ifa->ifa_addr->sa_family != AF_LINK) 992 if (nh [all...] |
H A D | ip_options.c | 109 struct nhop_object *nh; local 255 nh = fib4_lookup(M_GETFIB(m), ipaddr.sin_addr, 257 if (nh == NULL) 260 memcpy(cp + off, &(IA_SIN(nh->nh_ifa)->sin_addr), 301 } else if ((nh = fib4_lookup(M_GETFIB(m), 303 memcpy(cp + off, &(IA_SIN(nh->nh_ifa)->sin_addr),
|
H A D | ip_input.c | 1008 struct nhop_object *nh; local 1010 nh = ro.ro_nh; 1012 if (nh != NULL && ((nh->nh_flags & (NHF_REDIRECT|NHF_DEFAULT)) == 0)) { 1013 struct in_ifaddr *nh_ia = (struct in_ifaddr *)(nh->nh_ifa); 1021 if (nh->nh_flags & NHF_GATEWAY) { 1022 if (nh->gw_sa.sa_family == AF_INET) 1023 dest.s_addr = nh->gw4_sa.sin_addr.s_addr;
|
H A D | in_fib_dxr.c | 664 uint32_t nh) 682 fhp->nexthop = nh; 696 uint32_t preflen, nh, start, end, scopeid; local 709 nh = fib_get_nhop_idx(da->fd, rt_get_raw_nhop(rt)); 712 heap_inject(da, start, end, preflen, nh); 731 nh != fp->nexthop) { 736 if ((--fp)->nexthop == nh) 741 fp->nexthop = nh; 742 heap_inject(da, start, end, preflen, nh); 754 uint32_t start, nh, local 663 heap_inject(struct dxr_aux *da, uint32_t start, uint32_t end, uint32_t preflen, uint32_t nh) argument [all...] |
H A D | sctp_os_bsd.h | 306 #define SCTP_GATHER_MTU_FROM_ROUTE(sctp_ifa, sa, nh) ((uint32_t)((nh != NULL) ? nh->nh_mtu : 0))
|
/freebsd-current/crypto/heimdal/lib/roken/ |
H A D | getifaddrs.c | 332 struct nlmsghdr *nh; local 352 nh = (struct nlmsghdr *)buff; 353 for (nh = (struct nlmsghdr *)buff; 354 NLMSG_OK(nh, read_size); 355 nh = (struct nlmsghdr *)NLMSG_NEXT(nh, read_size)){ 356 if (nh->nlmsg_pid != pid || 357 nh->nlmsg_seq != seq) 359 if (nh->nlmsg_type == NLMSG_DONE){ 363 if (nh [all...] |
/freebsd-current/sys/netlink/route/ |
H A D | route_var.h | 136 int nl_set_nexthop_gw(struct nhop_object *nh, struct sockaddr *gw,
|
/freebsd-current/sys/net/ |
H A D | if_stf.c | 672 struct nhop_object *nh; local 675 nh = fib4_lookup(sc->sc_fibnum, *in, 0, 0, 0); 676 if (nh == NULL) 679 if (nh->nh_ifp != inifp) 732 struct nhop_object *nh; local 808 nh = fib6_lookup(sc->sc_fibnum, &ip6->ip6_dst, 0, 0, 0); 809 if (nh == NULL) { 814 if ((nh->nh_ifp == ifp) && 815 (!IN6_ARE_ADDR_EQUAL(&ip6->ip6_src, &nh->gw6_sa.sin6_addr))) {
|
H A D | debugnet.c | 703 struct nhop_object *nh; local 713 nh = fib4_lookup_debugnet(debugnet_fib, dest_sin.sin_addr, 0, 717 if (nh == NULL) { 725 if (nh->gw_sa.sa_family == AF_INET) 726 gw_sin = &nh->gw4_sa; 728 if (nh->gw_sa.sa_family == AF_LINK) 733 MPASS(nh->nh_ifa->ifa_addr->sa_family == AF_INET); 734 local_sin = (struct sockaddr_in *)nh->nh_ifa->ifa_addr; 736 rt_ifp = nh->nh_ifp;
|
/freebsd-current/sys/dev/cxgbe/tom/ |
H A D | t4_connect.c | 232 t4_connect(struct toedev *tod, struct socket *so, struct nhop_object *nh, argument 238 if_t rt_ifp = nh->nh_ifp; 285 nh->nh_flags & NHF_GATEWAY ? &nh->gw_sa : nam);
|
H A D | t4_listen.c | 1082 struct nhop_object *nh; local 1095 nh = fib6_lookup(RT_DEFAULT_FIB, &inc->inc6_faddr, 0, NHR_NONE, 0); 1096 if (nh == NULL) 1098 if (nh->nh_ifp != ifp) 1100 if (nh->nh_flags & NHF_GATEWAY) 1101 ((struct sockaddr_in6 *)dst)->sin6_addr = nh->gw6_sa.sin6_addr; 1108 nh = fib4_lookup(RT_DEFAULT_FIB, inc->inc_faddr, 0, NHR_NONE, 0); 1109 if (nh == NULL) 1111 if (nh->nh_ifp != ifp) 1113 if (nh [all...] |
/freebsd-current/tests/sys/netinet6/frag6/ |
H A D | frag6_16.py | 117 sp.IPv6ExtHdrFragment(offset=foffset, m=mbit, id=16, nh=socket.IPPROTO_UDP) / \
|
/freebsd-current/sys/dev/irdma/ |
H A D | fbsd_kcompat.c | 364 struct nhop_object *nh; local 367 nh = fib6_lookup(RT_DEFAULT_FIB, &((struct sockaddr_in6 *)dst_sin)->sin6_addr, 370 nh = fib4_lookup(RT_DEFAULT_FIB, ((struct sockaddr_in *)dst_sin)->sin_addr, 0, NHR_NONE, 0); 371 if (!nh || (nh->nh_ifp != netdev && 372 rdma_vlan_dev_real_dev(nh->nh_ifp) != netdev)) 374 *gateway = (nh->nh_flags & NHF_GATEWAY) ? true : false; 375 *nexthop = (*gateway) ? &nh->gw_sa : dst_sin; 376 *ifp = nh->nh_ifp;
|
/freebsd-current/sys/netpfil/ipfilter/netinet/ |
H A D | ip_fil_freebsd.c | 681 struct nhop_object *nh; local 759 nh = fib4_lookup(fibnum, dst->sin_addr, 0, NHR_NONE, 0); 760 if (nh == NULL) { 769 ifp = nh->nh_ifp; 770 if (nh->nh_flags & NHF_GATEWAY) { 771 gw = &nh->gw_sa; 927 struct nhop_object *nh; local 930 nh = fib4_lookup(RT_DEFAULT_FIB, fin->fin_src, 0, NHR_NONE, 0); 931 if (nh == NULL) 933 return (fin->fin_ifp == nh [all...] |
/freebsd-current/usr.sbin/traceroute6/ |
H A D | traceroute6.c | 1507 u_char *cp = (u_char *)ip6, nh; local 1514 nh = ip6->ip6_nxt; 1517 while (lim - cp >= (nh == IPPROTO_NONE ? 0 : 8)) { 1518 switch (nh) { 1522 return (useproto == nh ? cp : NULL); 1526 return (useproto == nh ? cp : NULL); 1528 return (useproto == nh ? none_hdr : NULL); 1531 nh = ((struct ip6_frag *)cp)->ip6f_nxt; 1535 nh = ((struct ip6_ext *)cp)->ip6e_nxt; 1539 nh [all...] |
/freebsd-current/usr.sbin/route6d/ |
H A D | route6d.c | 811 struct in6_addr *nh; /* next hop */ local 828 nh = NULL; 839 nh = NULL; 878 nrt = 0; np = ripbuf->rip6_nets; nh = NULL; 900 if (nh == NULL || !IN6_ARE_ADDR_EQUAL(nh, &rrt->rrt_gw)) { 903 nh = NULL; 912 nh = &rrt->rrt_gw; 915 } else if (nh && (rrt->rrt_index != ifcp->ifc_index || 916 !IN6_ARE_ADDR_EQUAL(nh, 1106 struct in6_addr nh; /* next hop */ local [all...] |
/freebsd-current/usr.sbin/arp/ |
H A D | arp_netlink.c | 161 struct snl_parsed_nhop nh = {}; local 162 if (!snl_parse_nlmsg(ss, hdr, &snl_nhmsg_parser, &nh)) 165 return (nh.nhaf_aif);
|