Lines Matching refs:optptr

5176 	uchar_t *optptr;  in tcp_input_add_ancillary()  local
5291 optptr = (uchar_t *)&todi[1]; in tcp_input_add_ancillary()
5295 toh = (struct T_opthdr *)optptr; in tcp_input_add_ancillary()
5301 optptr += sizeof (*toh); in tcp_input_add_ancillary()
5302 *(uint8_t *)optptr = ipp->ipp_type_of_service; in tcp_input_add_ancillary()
5303 optptr = (uchar_t *)toh + toh->len; in tcp_input_add_ancillary()
5304 ASSERT(__TPI_TOPT_ISALIGNED(optptr)); in tcp_input_add_ancillary()
5318 toh = (struct T_opthdr *)optptr; in tcp_input_add_ancillary()
5323 optptr += sizeof (*toh); in tcp_input_add_ancillary()
5324 pkti = (struct in6_pktinfo *)optptr; in tcp_input_add_ancillary()
5327 optptr += sizeof (*pkti); in tcp_input_add_ancillary()
5328 ASSERT(OK_32PTR(optptr)); in tcp_input_add_ancillary()
5334 toh = (struct T_opthdr *)optptr; in tcp_input_add_ancillary()
5339 optptr += sizeof (*toh); in tcp_input_add_ancillary()
5340 *(uint_t *)optptr = ipp->ipp_hoplimit; in tcp_input_add_ancillary()
5341 optptr += sizeof (uint_t); in tcp_input_add_ancillary()
5342 ASSERT(OK_32PTR(optptr)); in tcp_input_add_ancillary()
5348 toh = (struct T_opthdr *)optptr; in tcp_input_add_ancillary()
5353 optptr += sizeof (*toh); in tcp_input_add_ancillary()
5354 *(uint_t *)optptr = ipp->ipp_tclass; in tcp_input_add_ancillary()
5355 optptr += sizeof (uint_t); in tcp_input_add_ancillary()
5356 ASSERT(OK_32PTR(optptr)); in tcp_input_add_ancillary()
5361 toh = (struct T_opthdr *)optptr; in tcp_input_add_ancillary()
5366 optptr += sizeof (*toh); in tcp_input_add_ancillary()
5367 bcopy((uchar_t *)ipp->ipp_hopopts, optptr, ipp->ipp_hopoptslen); in tcp_input_add_ancillary()
5368 optptr += ipp->ipp_hopoptslen; in tcp_input_add_ancillary()
5369 ASSERT(OK_32PTR(optptr)); in tcp_input_add_ancillary()
5376 toh = (struct T_opthdr *)optptr; in tcp_input_add_ancillary()
5381 optptr += sizeof (*toh); in tcp_input_add_ancillary()
5382 bcopy(ipp->ipp_rthdrdstopts, optptr, ipp->ipp_rthdrdstoptslen); in tcp_input_add_ancillary()
5383 optptr += ipp->ipp_rthdrdstoptslen; in tcp_input_add_ancillary()
5384 ASSERT(OK_32PTR(optptr)); in tcp_input_add_ancillary()
5392 toh = (struct T_opthdr *)optptr; in tcp_input_add_ancillary()
5397 optptr += sizeof (*toh); in tcp_input_add_ancillary()
5398 bcopy(ipp->ipp_rthdr, optptr, ipp->ipp_rthdrlen); in tcp_input_add_ancillary()
5399 optptr += ipp->ipp_rthdrlen; in tcp_input_add_ancillary()
5400 ASSERT(OK_32PTR(optptr)); in tcp_input_add_ancillary()
5407 toh = (struct T_opthdr *)optptr; in tcp_input_add_ancillary()
5412 optptr += sizeof (*toh); in tcp_input_add_ancillary()
5413 bcopy(ipp->ipp_dstopts, optptr, ipp->ipp_dstoptslen); in tcp_input_add_ancillary()
5414 optptr += ipp->ipp_dstoptslen; in tcp_input_add_ancillary()
5415 ASSERT(OK_32PTR(optptr)); in tcp_input_add_ancillary()
5421 ASSERT(optptr == mp->b_wptr); in tcp_input_add_ancillary()