Lines Matching defs:chunk
266 /* Find the association that goes with this chunk.
334 struct sctp_chunk *chunk;
349 while (NULL != (chunk = sctp_inq_pop(inqueue))) {
350 subtype = SCTP_ST_CHUNK(chunk->chunk_hdr->type);
352 /* If the first chunk in the packet is AUTH, do special
355 if (first_time && (subtype.chunk == SCTP_CID_AUTH)) {
362 /* If the next chunk is COOKIE-ECHO, skip the AUTH
363 * chunk while saving a pointer to it so we can do
368 chunk->auth_chunk = skb_clone(chunk->skb,
370 chunk->auth = 1;
379 * COOKIE-ECHO chunk.
381 if (NULL == chunk->asoc) {
383 sctp_source(chunk),
385 chunk->asoc = asoc;
386 chunk->transport = transport;
390 if (sctp_auth_recv_cid(subtype.chunk, asoc) && !chunk->auth)
393 /* Remember where the last DATA chunk came from so we
396 if (asoc && sctp_chunk_is_data(chunk))
397 asoc->peer.last_data_from = chunk->transport;
404 if (chunk->transport)
405 chunk->transport->last_time_heard = ktime_get();
408 ep, asoc, chunk, GFP_ATOMIC);
410 if (error && chunk)
411 chunk->pdiscard = 1;
414 * the incoming chunk. If so, get out of the while loop.