/illumos-gate/usr/src/uts/common/io/mac/plugins/ |
H A D | mac_ipv6.c | 180 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 D | inet_hash.c | 62 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 D | ip_cksum.c | 451 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 D | traceroute_aux6.c | 541 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 D | ip6.c | 2601 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 D | ipsecah.c | 3600 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 D | ping_aux6.c | 915 uint8_t *whereptr; in IPv6_hdrlen() local 924 whereptr = ((uint8_t *)&ip6h[1]); /* point to next hdr */ in IPv6_hdrlen() 930 if (whereptr >= endptr) in IPv6_hdrlen() 933 while (whereptr < endptr) { in IPv6_hdrlen() 937 hbhhdr = (ip6_hbh_t *)whereptr; in IPv6_hdrlen() 946 desthdr = (ip6_dest_t *)whereptr; in IPv6_hdrlen() 955 rthdr = (ip6_rthdr_t *)whereptr; in IPv6_hdrlen() 965 fraghdr = (ip6_frag_t *)whereptr; in IPv6_hdrlen() 976 whereptr = (uint8_t *)ip6h + length; in IPv6_hdrlen()
|
/illumos-gate/usr/src/uts/common/ipp/ipgpc/ |
H A D | classifier.c | 509 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 D | flowacct.c | 131 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 D | mac_util.c | 1488 uint8_t *whereptr; in mac_ip_hdr_length_v6() local 1498 whereptr = ((uint8_t *)&ip6h[1]); /* point to next hdr */ in mac_ip_hdr_length_v6() 1504 while (whereptr < endptr) { in mac_ip_hdr_length_v6() 1506 if (whereptr + MIN_EHDR_LEN > endptr) in mac_ip_hdr_length_v6() 1513 desthdr = (ip6_dest_t *)whereptr; in mac_ip_hdr_length_v6() 1520 rthdr = (ip6_rthdr_t *)whereptr; in mac_ip_hdr_length_v6() 1527 fraghdr = (ip6_frag_t *)whereptr; in mac_ip_hdr_length_v6() 1543 whereptr += ehdrlen; in mac_ip_hdr_length_v6()
|
H A D | mac_sched.c | 1709 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()
|