Lines Matching defs:chunk
387 struct sctp_chunk *chunk;
411 /* Update send queue in case any chunk already in there now
414 list_for_each_entry(chunk, &asoc->outqueue.out_chunk_list, list) {
415 if (sctp_auth_send_cid(chunk->chunk_hdr->type, asoc)) {
416 chunk->auth = 1;
417 if (!chunk->shkey) {
418 chunk->shkey = asoc->shkey;
419 sctp_auth_shkey_hold(chunk->shkey);
522 * the AUTH chunk
637 /* Check to see if the given chunk is supposed to be authenticated */
638 static int __sctp_auth_cid(enum sctp_cid chunk, struct sctp_chunks_param *param)
650 * The chunk types for INIT, INIT-ACK, SHUTDOWN-COMPLETE and AUTH
664 if (param->chunks[i] == chunk)
673 /* Check if peer requested that this chunk is authenticated */
674 int sctp_auth_send_cid(enum sctp_cid chunk, const struct sctp_association *asoc)
682 return __sctp_auth_cid(chunk, asoc->peer.peer_chunks);
685 /* Check if we requested that peer authenticate this chunk. */
686 int sctp_auth_recv_cid(enum sctp_cid chunk, const struct sctp_association *asoc)
694 return __sctp_auth_cid(chunk,
703 * the AUTH-chunk is given by the AUTH chunk with its HMAC field set to
705 * after the AUTH chunk in the SCTP packet.
755 /* Add a chunk to the endpoint authenticated chunk list */
762 /* If this chunk is already specified, we are done */
766 /* Check if we can add this chunk to the array */
1039 * Every endpoint supporting SCTP chunk authentication MUST