Lines Matching defs:whereptr

2611 	uint8_t *whereptr, *endptr;
2623 whereptr = ((uint8_t *)&ip6h[1]); /* point to next hdr */
2627 while (whereptr < endptr) {
2629 if (whereptr + MIN_EHDR_LEN > endptr)
2639 tmphopopts = (ip6_hbh_t *)whereptr;
2647 after_secopt = whereptr;
2654 (void) tsol_find_secopt_v6(whereptr, ehdrlen,
2657 if (secopt != NULL && after_secopt - whereptr > 0) {
2660 ipp->ipp_label_len_v6 = after_secopt - whereptr;
2663 after_secopt = whereptr;
2676 tmpdstopts = (ip6_dest_t *)whereptr;
2694 tmprthdr = (ip6_rthdr_t *)whereptr;
2719 tmpfraghdr = (ip6_frag_t *)whereptr;
2735 whereptr += ehdrlen;
2759 uint8_t *whereptr;
2767 whereptr = ((uint8_t *)&ip6h[1]); /* point to next hdr */
2771 while (whereptr < endptr) {
2773 if (whereptr + MIN_EHDR_LEN > endptr)
2780 desthdr = (ip6_dest_t *)whereptr;
2787 rthdr = (ip6_rthdr_t *)whereptr;
2794 fraghdr = (ip6_frag_t *)whereptr;
2808 whereptr += ehdrlen;
3144 uint8_t *whereptr;
3162 whereptr = ((uint8_t *)&ip6h[1]); /* point to next hdr */
3171 while (whereptr < endptr) {
3173 if (whereptr + MIN_EHDR_LEN > endptr)
3180 desthdr = (ip6_dest_t *)whereptr;
3195 rthdr = (ip6_rthdr_t *)whereptr;
3221 whereptr += ehdrlen;
3892 pluck_out_dst(const mblk_t *mp, uint8_t *whereptr, in6_addr_t oldrv)
3898 rt0 = (ip6_rthdr0_t *)whereptr;
3901 uint8_t *, whereptr);
3908 (mp != NULL && whereptr + (rt0->ip6r0_len + 1) * 8 > mp->b_wptr) ||
3918 whereptr);
3942 uint8_t *whereptr;
3946 whereptr = (uint8_t *)ip6h;
3951 (mp->b_rptr <= whereptr && mp->b_wptr >= whereptr + ehdrlen));
3966 rv = pluck_out_dst(current_mp, whereptr, rv);
3973 whereptr + ehdrlen >= current_mp->b_wptr) {
3974 ehdrlen -= (current_mp->b_wptr - whereptr);
3982 whereptr = current_mp->b_rptr;
3984 whereptr += ehdrlen;
3986 nexthdr = *whereptr;
3987 ASSERT(current_mp == NULL || whereptr + 1 < current_mp->b_wptr);
3988 ehdrlen = (*(whereptr + 1) + 1) * 8;
4944 uint8_t *whereptr;
4955 whereptr = (uint8_t *)&ip6h[1];
4961 hbhhdr = (ip6_hbh_t *)whereptr;
4966 dsthdr = (ip6_dest_t *)whereptr;
4971 rthdr = (ip6_rthdr_t *)whereptr;
4997 ah = (ah_t *)whereptr;
5002 if (whereptr + ehdrlen >= mp->b_wptr) {
5007 whereptr = mp->b_cont->b_rptr;
5009 whereptr += ehdrlen;
5012 dsthdr = (ip6_dest_t *)whereptr;
5018 whereptr += ehdrlen;