Lines Matching refs:chunk_hdr
943 if (chunk && chunk->chunk_hdr && in sctp_make_abort()
944 chunk->chunk_hdr->type == SCTP_CID_INIT) in sctp_make_abort()
1050 int chunklen = ntohs(chunk->chunk_hdr->length); in sctp_addto_param()
1060 chunk->chunk_hdr->length = htons(chunklen + len); in sctp_addto_param()
1084 phdr.type = htons(chunk->chunk_hdr->type); in sctp_make_abort_violation()
1085 phdr.length = chunk->chunk_hdr->length; in sctp_make_abort_violation()
1288 retval->chunk_hdr->length = in sctp_make_auth()
1289 htons(ntohs(retval->chunk_hdr->length) + hmac_desc->hmac_len); in sctp_make_auth()
1367 sctp_chunkhdr_t *chunk_hdr; in _sctp_make_chunk() local
1378 chunk_hdr = (sctp_chunkhdr_t *)skb_put(skb, sizeof(sctp_chunkhdr_t)); in _sctp_make_chunk()
1379 chunk_hdr->type = type; in _sctp_make_chunk()
1380 chunk_hdr->flags = flags; in _sctp_make_chunk()
1381 chunk_hdr->length = htons(sizeof(sctp_chunkhdr_t)); in _sctp_make_chunk()
1390 retval->chunk_hdr = chunk_hdr; in _sctp_make_chunk()
1391 retval->chunk_end = ((__u8 *)chunk_hdr) + sizeof(struct sctp_chunkhdr); in _sctp_make_chunk()
1462 int chunklen = ntohs(chunk->chunk_hdr->length); in sctp_addto_chunk()
1472 chunk->chunk_hdr->length = htons(chunklen + padlen + len); in sctp_addto_chunk()
1508 chunk->chunk_hdr->length = in sctp_user_addto_chunk()
1509 htons(ntohs(chunk->chunk_hdr->length) + len); in sctp_user_addto_chunk()
1539 if (lchunk->chunk_hdr->flags & SCTP_DATA_UNORDERED) { in sctp_chunk_assign_ssn()
1542 if (lchunk->chunk_hdr->flags & SCTP_DATA_LAST_FRAG) in sctp_chunk_assign_ssn()
1619 + ntohs(init_chunk->chunk_hdr->length) + addrs_len; in sctp_pack_cookie()
1658 memcpy(&cookie->c.peer_init[0], init_chunk->chunk_hdr, in sctp_pack_cookie()
1659 ntohs(init_chunk->chunk_hdr->length)); in sctp_pack_cookie()
1663 ntohs(init_chunk->chunk_hdr->length), raw_addrs, addrs_len); in sctp_pack_cookie()
1713 bodysize = ntohs(chunk->chunk_hdr->length) - headersize; in sctp_unpack_cookie()
1720 len = ntohs(chunk->chunk_hdr->length); in sctp_unpack_cookie()
1794 len = ntohs(chunk->chunk_hdr->length); in sctp_unpack_cookie()
3121 sctp_addip_chunk_t *addip = (sctp_addip_chunk_t *) chunk->chunk_hdr; in sctp_verify_asconf()
3181 sctp_addip_chunk_t *addip = (sctp_addip_chunk_t *) asconf->chunk_hdr; in sctp_process_asconf()
3193 chunk_len = ntohs(asconf->chunk_hdr->length) - sizeof(sctp_chunkhdr_t); in sctp_process_asconf()
3341 asconf_ack_len = ntohs(asconf_ack->chunk_hdr->length) - in sctp_get_asconf_response()