Lines Matching refs:chunk_len
2068 uint16_t *padding_len, uint16_t *chunk_len)
2179 if ((chunk_len != NULL) &&
2182 memset(mtod(m_at, caddr_t) + *chunk_len, 0, *padding_len);
2184 *chunk_len += *padding_len;
2187 m_at = sctp_add_addr_to_mbuf(m_at, sctp_ifap, chunk_len);
2257 if ((chunk_len != NULL) &&
2260 memset(mtod(m_at, caddr_t) + *chunk_len, 0, *padding_len);
2262 *chunk_len += *padding_len;
2265 m_at = sctp_add_addr_to_mbuf(m_at, laddr->ifa, chunk_len);
5066 uint16_t num_ext, chunk_len, padding_len, parameter_len;
5115 chunk_len = (uint16_t)sizeof(struct sctp_init_chunk);
5136 ali = (struct sctp_adaptation_layer_indication *)(mtod(m, caddr_t) + chunk_len);
5140 chunk_len += parameter_len;
5146 ph = (struct sctp_paramhdr *)(mtod(m, caddr_t) + chunk_len);
5149 chunk_len += parameter_len;
5155 ph = (struct sctp_paramhdr *)(mtod(m, caddr_t) + chunk_len);
5158 chunk_len += parameter_len;
5164 ph = (struct sctp_paramhdr *)(mtod(m, caddr_t) + chunk_len);
5167 chunk_len += parameter_len;
5172 pr_supported = (struct sctp_supported_chunk_types_param *)(mtod(m, caddr_t) + chunk_len);
5197 chunk_len += parameter_len;
5206 memset(mtod(m, caddr_t) + chunk_len, 0, padding_len);
5207 chunk_len += padding_len;
5210 randp = (struct sctp_auth_random *)(mtod(m, caddr_t) + chunk_len);
5215 chunk_len += parameter_len;
5222 memset(mtod(m, caddr_t) + chunk_len, 0, padding_len);
5223 chunk_len += padding_len;
5226 hmacs = (struct sctp_auth_hmac_algo *)(mtod(m, caddr_t) + chunk_len);
5233 chunk_len += parameter_len;
5240 memset(mtod(m, caddr_t) + chunk_len, 0, padding_len);
5241 chunk_len += padding_len;
5244 chunks = (struct sctp_auth_chunk_list *)(mtod(m, caddr_t) + chunk_len);
5251 chunk_len += parameter_len;
5260 memset(mtod(m, caddr_t) + chunk_len, 0, padding_len);
5261 chunk_len += padding_len;
5265 cookie_preserve = (struct sctp_cookie_perserve_param *)(mtod(m, caddr_t) + chunk_len);
5270 chunk_len += parameter_len;
5277 memset(mtod(m, caddr_t) + chunk_len, 0, padding_len);
5278 chunk_len += padding_len;
5288 sup_addr = (struct sctp_supported_addr_param *)(mtod(m, caddr_t) + chunk_len);
5299 chunk_len += parameter_len;
5302 SCTP_BUF_LEN(m) = chunk_len;
5312 &padding_len, &chunk_len);
5314 init->ch.chunk_length = htons(chunk_len);
5877 uint16_t num_ext, chunk_len, padding_len, parameter_len;
5930 chunk_len = (uint16_t)sizeof(struct sctp_init_ack_chunk);
6309 ali = (struct sctp_adaptation_layer_indication *)(mtod(m, caddr_t) + chunk_len);
6313 chunk_len += parameter_len;
6320 ph = (struct sctp_paramhdr *)(mtod(m, caddr_t) + chunk_len);
6323 chunk_len += parameter_len;
6330 ph = (struct sctp_paramhdr *)(mtod(m, caddr_t) + chunk_len);
6333 chunk_len += parameter_len;
6339 ph = (struct sctp_paramhdr *)(mtod(m, caddr_t) + chunk_len);
6342 chunk_len += parameter_len;
6347 pr_supported = (struct sctp_supported_chunk_types_param *)(mtod(m, caddr_t) + chunk_len);
6378 chunk_len += parameter_len;
6389 memset(mtod(m, caddr_t) + chunk_len, 0, padding_len);
6390 chunk_len += padding_len;
6394 randp = (struct sctp_auth_random *)(mtod(m, caddr_t) + chunk_len);
6401 chunk_len += parameter_len;
6404 memset(mtod(m, caddr_t) + chunk_len, 0, padding_len);
6405 chunk_len += padding_len;
6409 hmacs = (struct sctp_auth_hmac_algo *)(mtod(m, caddr_t) + chunk_len);
6416 chunk_len += parameter_len;
6419 memset(mtod(m, caddr_t) + chunk_len, 0, padding_len);
6420 chunk_len += padding_len;
6424 chunks = (struct sctp_auth_chunk_list *)(mtod(m, caddr_t) + chunk_len);
6431 chunk_len += parameter_len;
6433 SCTP_BUF_LEN(m) = chunk_len;
6453 &padding_len, &chunk_len);
6456 memset(mtod(m, caddr_t) + chunk_len, 0, padding_len);
6457 chunk_len += padding_len;
6473 chunk_len += parameter_len;
6482 chunk_len += padding_len;
6502 chunk_len += parameter_len;
6507 initack->ch.chunk_length = htons(chunk_len);
11314 uint16_t cause_len, chunk_len, padding_len;
11357 chunk_len = (uint16_t)sizeof(struct sctp_abort_chunk) + cause_len;
11358 padding_len = SCTP_SIZE32(chunk_len) - chunk_len;
11383 abort->ch.chunk_length = htons(chunk_len);
14494 int chunk_len;
14521 chunk_len = sizeof(*auth) +
14523 auth->ch.chunk_length = htons(chunk_len);
14534 SCTP_BUF_LEN(m_auth) = chunk_len;
14535 m = sctp_copy_mbufchain(m_auth, m, m_end, 1, chunk_len, 0);