Lines Matching defs:optptr
4984 uchar_t *optptr;
5089 optptr = (uchar_t *)&todi[1];
5099 toh = (struct T_opthdr *)optptr;
5104 optptr += sizeof (*toh);
5105 pkti = (struct in6_pktinfo *)optptr;
5108 optptr += sizeof (*pkti);
5109 ASSERT(OK_32PTR(optptr));
5115 toh = (struct T_opthdr *)optptr;
5120 optptr += sizeof (*toh);
5121 *(uint_t *)optptr = ipp->ipp_hoplimit;
5122 optptr += sizeof (uint_t);
5123 ASSERT(OK_32PTR(optptr));
5129 toh = (struct T_opthdr *)optptr;
5134 optptr += sizeof (*toh);
5135 *(uint_t *)optptr = ipp->ipp_tclass;
5136 optptr += sizeof (uint_t);
5137 ASSERT(OK_32PTR(optptr));
5142 toh = (struct T_opthdr *)optptr;
5147 optptr += sizeof (*toh);
5148 bcopy((uchar_t *)ipp->ipp_hopopts, optptr, ipp->ipp_hopoptslen);
5149 optptr += ipp->ipp_hopoptslen;
5150 ASSERT(OK_32PTR(optptr));
5157 toh = (struct T_opthdr *)optptr;
5162 optptr += sizeof (*toh);
5163 bcopy(ipp->ipp_rthdrdstopts, optptr, ipp->ipp_rthdrdstoptslen);
5164 optptr += ipp->ipp_rthdrdstoptslen;
5165 ASSERT(OK_32PTR(optptr));
5173 toh = (struct T_opthdr *)optptr;
5178 optptr += sizeof (*toh);
5179 bcopy(ipp->ipp_rthdr, optptr, ipp->ipp_rthdrlen);
5180 optptr += ipp->ipp_rthdrlen;
5181 ASSERT(OK_32PTR(optptr));
5188 toh = (struct T_opthdr *)optptr;
5193 optptr += sizeof (*toh);
5194 bcopy(ipp->ipp_dstopts, optptr, ipp->ipp_dstoptslen);
5195 optptr += ipp->ipp_dstoptslen;
5196 ASSERT(OK_32PTR(optptr));
5202 ASSERT(optptr == mp->b_wptr);