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