Lines Matching refs:chunk_hdr
903 if (chunk && chunk->chunk_hdr && in sctp_make_abort()
904 chunk->chunk_hdr->type == SCTP_CID_INIT) in sctp_make_abort()
1010 int chunklen = ntohs(chunk->chunk_hdr->length); in sctp_addto_param()
1020 chunk->chunk_hdr->length = htons(chunklen + len); in sctp_addto_param()
1044 phdr.type = htons(chunk->chunk_hdr->type); in sctp_make_abort_violation()
1045 phdr.length = chunk->chunk_hdr->length; in sctp_make_abort_violation()
1229 retval->chunk_hdr->length = in sctp_make_auth()
1230 htons(ntohs(retval->chunk_hdr->length) + hmac_desc->hmac_len); in sctp_make_auth()
1324 sctp_chunkhdr_t *chunk_hdr; in sctp_make_chunk() local
1335 chunk_hdr = (sctp_chunkhdr_t *)skb_put(skb, sizeof(sctp_chunkhdr_t)); in sctp_make_chunk()
1336 chunk_hdr->type = type; in sctp_make_chunk()
1337 chunk_hdr->flags = flags; in sctp_make_chunk()
1338 chunk_hdr->length = htons(sizeof(sctp_chunkhdr_t)); in sctp_make_chunk()
1347 retval->chunk_hdr = chunk_hdr; in sctp_make_chunk()
1348 retval->chunk_end = ((__u8 *)chunk_hdr) + sizeof(struct sctp_chunkhdr); in sctp_make_chunk()
1406 int chunklen = ntohs(chunk->chunk_hdr->length); in sctp_addto_chunk()
1416 chunk->chunk_hdr->length = htons(chunklen + padlen + len); in sctp_addto_chunk()
1452 chunk->chunk_hdr->length = in sctp_user_addto_chunk()
1453 htons(ntohs(chunk->chunk_hdr->length) + len); in sctp_user_addto_chunk()
1483 if (lchunk->chunk_hdr->flags & SCTP_DATA_UNORDERED) { in sctp_chunk_assign_ssn()
1486 if (lchunk->chunk_hdr->flags & SCTP_DATA_LAST_FRAG) in sctp_chunk_assign_ssn()
1565 + ntohs(init_chunk->chunk_hdr->length) + addrs_len; in sctp_pack_cookie()
1604 memcpy(&cookie->c.peer_init[0], init_chunk->chunk_hdr, in sctp_pack_cookie()
1605 ntohs(init_chunk->chunk_hdr->length)); in sctp_pack_cookie()
1609 ntohs(init_chunk->chunk_hdr->length), raw_addrs, addrs_len); in sctp_pack_cookie()
1661 bodysize = ntohs(chunk->chunk_hdr->length) - headersize; in sctp_unpack_cookie()
1668 len = ntohs(chunk->chunk_hdr->length); in sctp_unpack_cookie()
1755 len = ntohs(chunk->chunk_hdr->length); in sctp_unpack_cookie()
3134 chunk_len = ntohs(asconf->chunk_hdr->length) - sizeof(sctp_chunkhdr_t); in sctp_process_asconf()
3285 asconf_ack_len = ntohs(asconf_ack->chunk_hdr->length) - in sctp_get_asconf_response()