Lines Matching refs:chunk
104 * add a chunk to the required chunks list
107 sctp_auth_add_chunk(uint8_t chunk, sctp_auth_chklist_t *list)
112 /* is chunk restricted? */
113 if ((chunk == SCTP_INITIATION) ||
114 (chunk == SCTP_INITIATION_ACK) ||
115 (chunk == SCTP_SHUTDOWN_COMPLETE) ||
116 (chunk == SCTP_AUTHENTICATION)) {
119 if (list->chunks[chunk] == 0) {
120 list->chunks[chunk] = 1;
123 "SCTP: added chunk %u (0x%02x) to Auth list\n",
124 chunk, chunk);
130 * delete a chunk from the required chunks list
133 sctp_auth_delete_chunk(uint8_t chunk, sctp_auth_chklist_t *list)
138 if (list->chunks[chunk] == 1) {
139 list->chunks[chunk] = 0;
142 "SCTP: deleted chunk %u (0x%02x) from Auth list\n",
143 chunk, chunk);
1519 /* zero the digest + chunk padding */
1592 * process the incoming Authentication chunk
1659 /* if the shared key isn't found, discard the chunk */
1695 "SCTP Auth: chunk too short for HMAC\n");
1704 /* compare the computed digest with the one in the AUTH chunk */
1804 /* A supported extension chunk */
1910 "SCTP: peer sent chunk list w/o AUTH\n");