Lines Matching defs:chunk
94 * Every endpoint supporting SCTP chunk authentication MUST
318 /* Find the association that goes with this chunk.
405 struct sctp_chunk *chunk;
419 while (NULL != (chunk = sctp_inq_pop(inqueue))) {
420 subtype = SCTP_ST_CHUNK(chunk->chunk_hdr->type);
422 /* If the first chunk in the packet is AUTH, do special
425 if (first_time && (subtype.chunk == SCTP_CID_AUTH)) {
432 /* If the next chunk is COOKIE-ECHO, skip the AUTH
433 * chunk while saving a pointer to it so we can do
438 chunk->auth_chunk = skb_clone(chunk->skb,
440 chunk->auth = 1;
449 * COOKIE-ECHO chunk.
451 if (NULL == chunk->asoc) {
453 sctp_source(chunk),
455 chunk->asoc = asoc;
456 chunk->transport = transport;
460 if (sctp_auth_recv_cid(subtype.chunk, asoc) && !chunk->auth)
463 /* Remember where the last DATA chunk came from so we
466 if (asoc && sctp_chunk_is_data(chunk))
467 asoc->peer.last_data_from = chunk->transport;
471 if (chunk->transport)
472 chunk->transport->last_time_heard = jiffies;
475 ep, asoc, chunk, GFP_ATOMIC);
477 if (error && chunk)
478 chunk->pdiscard = 1;
481 * the incoming chunk. If so, get out of the while loop.