Lines Matching refs:whereptr
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()
260 ip6_dest_t *hdrptr = (ip6_dest_t *)whereptr; in mac_ipv6_pdata_verify()
263 if (whereptr + sizeof (ip6_dest_t) > endptr) in mac_ipv6_pdata_verify()
266 whereptr += 8 * (hdrptr->ip6d_len + 1); in mac_ipv6_pdata_verify()
269 return (nexthdr == IPPROTO_NONE && whereptr == endptr); in mac_ipv6_pdata_verify()