Lines Matching refs:optptr

327 	uchar_t			*optptr;  in sctp_input_add_ancillary()  local
471 optptr = (uchar_t *)tudi + tudi->OPT_offset; in sctp_input_add_ancillary()
477 cmsg = (struct cmsghdr *)optptr; in sctp_input_add_ancillary()
481 optptr += sizeof (*cmsg); in sctp_input_add_ancillary()
499 optptr += sizeof (*sri); in sctp_input_add_ancillary()
511 cmsg = (struct cmsghdr *)optptr; in sctp_input_add_ancillary()
515 optptr += sizeof (*cmsg); in sctp_input_add_ancillary()
517 pkti = (struct in6_pktinfo *)optptr; in sctp_input_add_ancillary()
525 optptr += sizeof (*pkti); in sctp_input_add_ancillary()
526 ASSERT(OK_32PTR(optptr)); in sctp_input_add_ancillary()
532 cmsg = (struct cmsghdr *)optptr; in sctp_input_add_ancillary()
536 optptr += sizeof (*cmsg); in sctp_input_add_ancillary()
538 *(uint_t *)optptr = ipp->ipp_hoplimit; in sctp_input_add_ancillary()
539 optptr += sizeof (uint_t); in sctp_input_add_ancillary()
540 ASSERT(OK_32PTR(optptr)); in sctp_input_add_ancillary()
546 cmsg = (struct cmsghdr *)optptr; in sctp_input_add_ancillary()
550 optptr += sizeof (*cmsg); in sctp_input_add_ancillary()
552 *(uint_t *)optptr = ipp->ipp_tclass; in sctp_input_add_ancillary()
553 optptr += sizeof (uint_t); in sctp_input_add_ancillary()
554 ASSERT(OK_32PTR(optptr)); in sctp_input_add_ancillary()
559 cmsg = (struct cmsghdr *)optptr; in sctp_input_add_ancillary()
563 optptr += sizeof (*cmsg); in sctp_input_add_ancillary()
565 bcopy(ipp->ipp_hopopts, optptr, ipp->ipp_hopoptslen); in sctp_input_add_ancillary()
566 optptr += ipp->ipp_hopoptslen; in sctp_input_add_ancillary()
567 ASSERT(OK_32PTR(optptr)); in sctp_input_add_ancillary()
575 cmsg = (struct cmsghdr *)optptr; in sctp_input_add_ancillary()
579 optptr += sizeof (*cmsg); in sctp_input_add_ancillary()
581 bcopy(ipp->ipp_rthdrdstopts, optptr, ipp->ipp_rthdrdstoptslen); in sctp_input_add_ancillary()
582 optptr += ipp->ipp_rthdrdstoptslen; in sctp_input_add_ancillary()
583 ASSERT(OK_32PTR(optptr)); in sctp_input_add_ancillary()
591 cmsg = (struct cmsghdr *)optptr; in sctp_input_add_ancillary()
595 optptr += sizeof (*cmsg); in sctp_input_add_ancillary()
597 bcopy(ipp->ipp_rthdr, optptr, ipp->ipp_rthdrlen); in sctp_input_add_ancillary()
598 optptr += ipp->ipp_rthdrlen; in sctp_input_add_ancillary()
599 ASSERT(OK_32PTR(optptr)); in sctp_input_add_ancillary()
607 cmsg = (struct cmsghdr *)optptr; in sctp_input_add_ancillary()
611 optptr += sizeof (*cmsg); in sctp_input_add_ancillary()
613 bcopy(ipp->ipp_dstopts, optptr, ipp->ipp_dstoptslen); in sctp_input_add_ancillary()
614 optptr += ipp->ipp_dstoptslen; in sctp_input_add_ancillary()
615 ASSERT(OK_32PTR(optptr)); in sctp_input_add_ancillary()
623 ASSERT(optptr == mp1->b_wptr); in sctp_input_add_ancillary()