Lines Matching defs:whereptr
180 uint8_t *whereptr, *endptr;
196 whereptr = (uint8_t *)(ip6hp + 1);
199 ip6_dest_t *exthdrptr = (ip6_dest_t *)whereptr;
201 if (whereptr + sizeof (ip6_dest_t) >= endptr)
205 whereptr += 8 * (exthdrptr->ip6d_len + 1);
207 if (whereptr > endptr)
211 hdr_info->mhi_hdrsize = whereptr - mp->b_rptr;
231 uint8_t *whereptr, *endptr;
256 whereptr = (uint8_t *)(ip6hp + 1);
259 while (nexthdr != IPPROTO_NONE && whereptr < endptr) {
260 ip6_dest_t *hdrptr = (ip6_dest_t *)whereptr;
263 if (whereptr + sizeof (ip6_dest_t) > endptr)
266 whereptr += 8 * (hdrptr->ip6d_len + 1);
269 return (nexthdr == IPPROTO_NONE && whereptr == endptr);