Home
last modified time | relevance | path

Searched refs:whereptr (Results 1 – 11 of 11) sorted by relevance

/illumos-gate/usr/src/uts/common/io/mac/plugins/
H A Dmac_ipv6.c180 uint8_t *whereptr, *endptr; in mac_ipv6_header_info() local
196 whereptr = (uint8_t *)(ip6hp + 1); in mac_ipv6_header_info()
199 ip6_dest_t *exthdrptr = (ip6_dest_t *)whereptr; in mac_ipv6_header_info()
201 if (whereptr + sizeof (ip6_dest_t) >= endptr) in mac_ipv6_header_info()
205 whereptr += 8 * (exthdrptr->ip6d_len + 1); in mac_ipv6_header_info()
207 if (whereptr > endptr) in mac_ipv6_header_info()
211 hdr_info->mhi_hdrsize = whereptr - mp->b_rptr; in mac_ipv6_header_info()
231 uint8_t *whereptr, *endptr; in mac_ipv6_pdata_verify() local
256 whereptr = (uint8_t *)(ip6hp + 1); in mac_ipv6_pdata_verify()
259 while (nexthdr != IPPROTO_NONE && whereptr < endptr) { in mac_ipv6_pdata_verify()
[all …]
/illumos-gate/usr/src/common/inet/
H A Dinet_hash.c62 uint8_t *whereptr; in inet_pkthash_ip_hdr_length_v6() local
72 whereptr = ((uint8_t *)&ip6h[1]); /* point to next hdr */ in inet_pkthash_ip_hdr_length_v6()
78 while (whereptr < endptr) { in inet_pkthash_ip_hdr_length_v6()
80 if (whereptr + MIN_EHDR_LEN > endptr) in inet_pkthash_ip_hdr_length_v6()
87 desthdr = (ip6_dest_t *)whereptr; in inet_pkthash_ip_hdr_length_v6()
94 rthdr = (ip6_rthdr_t *)whereptr; in inet_pkthash_ip_hdr_length_v6()
101 fraghdr = (ip6_frag_t *)whereptr; in inet_pkthash_ip_hdr_length_v6()
117 whereptr += ehdrlen; in inet_pkthash_ip_hdr_length_v6()
/illumos-gate/usr/src/uts/common/os/
H A Dip_cksum.c451 uint8_t *whereptr; in ip_hdr_length_nexthdr_v6() local
460 whereptr = ((uint8_t *)&ip6h[1]); /* point to next hdr */ in ip_hdr_length_nexthdr_v6()
464 while (whereptr < endptr) { in ip_hdr_length_nexthdr_v6()
466 if (whereptr + MIN_EHDR_LEN > endptr) in ip_hdr_length_nexthdr_v6()
473 desthdr = (ip6_dest_t *)whereptr; in ip_hdr_length_nexthdr_v6()
480 rthdr = (ip6_rthdr_t *)whereptr; in ip_hdr_length_nexthdr_v6()
487 fraghdr = (ip6_frag_t *)whereptr; in ip_hdr_length_nexthdr_v6()
504 whereptr += ehdrlen; in ip_hdr_length_nexthdr_v6()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute_aux6.c541 uint8_t *whereptr; in IPv6_hdrlen() local
550 whereptr = ((uint8_t *)&ip6h[1]); /* point to next hdr */ in IPv6_hdrlen()
556 if (whereptr >= endptr) in IPv6_hdrlen()
559 while (whereptr < endptr) { in IPv6_hdrlen()
563 hbhhdr = (ip6_hbh_t *)whereptr; in IPv6_hdrlen()
572 desthdr = (ip6_dest_t *)whereptr; in IPv6_hdrlen()
581 rthdr = (ip6_rthdr_t *)whereptr; in IPv6_hdrlen()
591 fraghdr = (ip6_frag_t *)whereptr; in IPv6_hdrlen()
602 whereptr = (uint8_t *)ip6h + length; in IPv6_hdrlen()
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip6.c2601 uint8_t *whereptr, *endptr; in ip_find_hdr_v6() local
2613 whereptr = ((uint8_t *)&ip6h[1]); /* point to next hdr */ in ip_find_hdr_v6()
2617 while (whereptr < endptr) { in ip_find_hdr_v6()
2619 if (whereptr + MIN_EHDR_LEN > endptr) in ip_find_hdr_v6()
2629 tmphopopts = (ip6_hbh_t *)whereptr; in ip_find_hdr_v6()
2637 after_secopt = whereptr; in ip_find_hdr_v6()
2644 (void) tsol_find_secopt_v6(whereptr, ehdrlen, in ip_find_hdr_v6()
2647 if (secopt != NULL && after_secopt - whereptr > 0) { in ip_find_hdr_v6()
2650 ipp->ipp_label_len_v6 = after_secopt - whereptr; in ip_find_hdr_v6()
2653 after_secopt = whereptr; in ip_find_hdr_v6()
[all …]
H A Dipsecah.c3600 uchar_t *whereptr; in ah_auth_in_done() local
3631 whereptr = (uchar_t *)ip6h; in ah_auth_in_done()
3635 whereptr += hdrlen; in ah_auth_in_done()
3640 hbhhdr = (ip6_hbh_t *)whereptr; in ah_auth_in_done()
3645 dsthdr = (ip6_dest_t *)whereptr; in ah_auth_in_done()
3650 rthdr = (ip6_rthdr0_t *)whereptr; in ah_auth_in_done()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping_aux6.c948 uint8_t *whereptr; in IPv6_hdrlen() local
957 whereptr = ((uint8_t *)&ip6h[1]); /* point to next hdr */ in IPv6_hdrlen()
963 if (whereptr >= endptr) in IPv6_hdrlen()
966 while (whereptr < endptr) { in IPv6_hdrlen()
970 hbhhdr = (ip6_hbh_t *)whereptr; in IPv6_hdrlen()
979 desthdr = (ip6_dest_t *)whereptr; in IPv6_hdrlen()
988 rthdr = (ip6_rthdr_t *)whereptr; in IPv6_hdrlen()
998 fraghdr = (ip6_frag_t *)whereptr; in IPv6_hdrlen()
1009 whereptr = (uint8_t *)ip6h + length; in IPv6_hdrlen()
/illumos-gate/usr/src/uts/common/ipp/ipgpc/
H A Dclassifier.c509 uint8_t *nexthdrp, *whereptr, *endptr; in get_port_info() local
514 whereptr = ((uint8_t *)&ip6h[1]); in get_port_info()
517 while (whereptr < endptr) { in get_port_info()
520 hbhhdr = (ip6_hbh_t *)whereptr; in get_port_info()
527 desthdr = (ip6_dest_t *)whereptr; in get_port_info()
534 rthdr = (ip6_rthdr_t *)whereptr; in get_port_info()
572 whereptr += ehdrlen; in get_port_info()
/illumos-gate/usr/src/uts/common/ipp/flowacct/
H A Dflowacct.c131 uint8_t *nexthdrp, *whereptr, *endptr; in flowacct_port_info() local
136 whereptr = ((uint8_t *)&ip6h[1]); in flowacct_port_info()
139 while (whereptr < endptr) { in flowacct_port_info()
142 hbhhdr = (ip6_hbh_t *)whereptr; in flowacct_port_info()
149 desthdr = (ip6_dest_t *)whereptr; in flowacct_port_info()
156 rthdr = (ip6_rthdr_t *)whereptr; in flowacct_port_info()
194 whereptr += ehdrlen; in flowacct_port_info()
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_util.c1593 uint8_t *whereptr; in mac_ip_hdr_length_v6() local
1603 whereptr = ((uint8_t *)&ip6h[1]); /* point to next hdr */ in mac_ip_hdr_length_v6()
1609 while (whereptr < endptr) { in mac_ip_hdr_length_v6()
1611 if (whereptr + MIN_EHDR_LEN > endptr) in mac_ip_hdr_length_v6()
1618 desthdr = (ip6_dest_t *)whereptr; in mac_ip_hdr_length_v6()
1625 rthdr = (ip6_rthdr_t *)whereptr; in mac_ip_hdr_length_v6()
1632 fraghdr = (ip6_frag_t *)whereptr; in mac_ip_hdr_length_v6()
1648 whereptr += ehdrlen; in mac_ip_hdr_length_v6()
H A Dmac_sched.c1709 uint8_t *whereptr; in mac_rx_srs_long_fanout() local
1816 whereptr = (uint8_t *)ip6h + hdr_len; in mac_rx_srs_long_fanout()
1829 if (mp->b_cont == NULL || whereptr + PORTS_SIZE <= mp->b_wptr) in mac_rx_srs_long_fanout()
1838 hash = HASH_ADDR(src_val, dst_val, *(uint32_t *)whereptr); in mac_rx_srs_long_fanout()
1847 *(uint32_t *)whereptr); in mac_rx_srs_long_fanout()