Lines Matching refs:chunks
102 * add a chunk to the required chunks list
117 if (list->chunks[chunk] == 0) {
118 list->chunks[chunk] = 1;
128 * delete a chunk from the required chunks list
136 if (list->chunks[chunk] == 1) {
137 list->chunks[chunk] = 0;
156 * return the current number and list of required chunks caller must
168 if (list->chunks[i] != 0) {
187 if (list->chunks[i] != 0) {
197 if (list->chunks[i] != 0) {
1417 struct sctp_auth_chunk_list *chunks = NULL;
1477 chunks = (struct sctp_auth_chunk_list *)phdr;
1478 num_chunks = plen - sizeof(*chunks);
1479 /* save chunks list and num for the key */
1485 (void)sctp_auth_add_chunk(chunks->chunk_types[i],
1498 if (chunks != NULL) {
1499 keylen += sizeof(*chunks) + num_chunks;
1510 /* append in the AUTH chunks */
1511 if (chunks != NULL) {
1512 memcpy(new_key->key + keylen, chunks,
1513 sizeof(*chunks) + num_chunks);
1514 keylen += sizeof(*chunks) + num_chunks;
1904 struct sctp_auth_chunk_list *chunks;
1921 chunks = (struct sctp_auth_chunk_list *)phdr;
1922 num_chunks = plen - sizeof(*chunks);
1925 if (chunks->chunk_types[i] == SCTP_ASCONF)
1927 if (chunks->chunk_types[i] == SCTP_ASCONF_ACK)
1979 /* initialize auth chunks list from endpoint */
1986 if (stcb->asoc.local_auth_chunks->chunks[i])
1997 /* now set the concatenated key (random + chunks + hmacs) */
2014 /* append in the AUTH chunks */
2015 /* NOTE: currently we always have chunks to list */
2025 if (stcb->asoc.local_auth_chunks->chunks[i])