SCTP_ALIGN
if (!IS_P2ALIGNED(sctp, SCTP_ALIGN)) {
if ((pad = (uintptr_t)hdr % SCTP_ALIGN) != 0) {
pad = SCTP_ALIGN - pad;
if ((pad = (uintptr_t)cp % SCTP_ALIGN) != 0) {
pad = SCTP_ALIGN - pad;
fp->sf_pmss = mss & ~(SCTP_ALIGN - 1);
sctp->sctp_pad_mp = allocb_wait(SCTP_ALIGN, BPRI_MED,
sctp->sctp_pad_mp = allocb(SCTP_ALIGN, BPRI_MED);
bzero(sctp->sctp_pad_mp->b_rptr, SCTP_ALIGN);
if ((pad = len % SCTP_ALIGN) != 0) {
pad = SCTP_ALIGN - pad;
if ((pad = len & (SCTP_ALIGN - 1)) != 0) {
pad = SCTP_ALIGN - pad;
~(SCTP_ALIGN - 1);
~(SCTP_ALIGN - 1);
fp->sf_pmss = (pmtu - hdrlen) & ~(SCTP_ALIGN - 1);
if ((pad = ipsctplen % SCTP_ALIGN) != 0) {
pad = SCTP_ALIGN - pad;
if ((pad = ceclen & (SCTP_ALIGN - 1)) != 0)
pad = SCTP_ALIGN - pad;
if ((pad = len % SCTP_ALIGN) != 0) {
pad = SCTP_ALIGN - pad;
if ((pad = ch_len & (SCTP_ALIGN - 1)) != 0) {
pad = SCTP_ALIGN - pad;
if ((extra = seglen & (SCTP_ALIGN - 1)) != 0)
extra = SCTP_ALIGN - extra;
if ((extra = chunklen & (SCTP_ALIGN - 1)) != 0)
extra = SCTP_ALIGN - extra;
if ((extra = seglen & (SCTP_ALIGN - 1)) != 0)
extra = SCTP_ALIGN - extra;
if ((extra = new_len & (SCTP_ALIGN - 1)) != 0)
extra = SCTP_ALIGN - extra;
if ((extra = seglen & (SCTP_ALIGN - 1)) != 0)
extra = SCTP_ALIGN - extra;
if ((extra = new_len & (SCTP_ALIGN - 1)) != 0)
extra = SCTP_ALIGN - extra;
((intptr_t)chunk_head->b_rptr) & (SCTP_ALIGN - 1) ||
ASSERT(pad < SCTP_ALIGN);
if ((fill = allocb(SCTP_ALIGN, BPRI_MED)) != NULL) {
if ((extra = msglen & (SCTP_ALIGN - 1)) != 0) {
extra = SCTP_ALIGN - extra;