Lines Matching defs:chunk
263 /* Find the association that goes with this chunk.
329 struct sctp_chunk *chunk;
344 while (NULL != (chunk = sctp_inq_pop(inqueue))) {
345 subtype = SCTP_ST_CHUNK(chunk->chunk_hdr->type);
347 /* If the first chunk in the packet is AUTH, do special
350 if (first_time && (subtype.chunk == SCTP_CID_AUTH)) {
357 /* If the next chunk is COOKIE-ECHO, skip the AUTH
358 * chunk while saving a pointer to it so we can do
363 chunk->auth_chunk = skb_clone(chunk->skb,
365 chunk->auth = 1;
374 * COOKIE-ECHO chunk.
376 if (NULL == chunk->asoc) {
378 sctp_source(chunk),
380 chunk->asoc = asoc;
381 chunk->transport = transport;
385 if (sctp_auth_recv_cid(subtype.chunk, asoc) && !chunk->auth)
388 /* Remember where the last DATA chunk came from so we
391 if (asoc && sctp_chunk_is_data(chunk))
392 asoc->peer.last_data_from = chunk->transport;
399 if (chunk->transport)
400 chunk->transport->last_time_heard = ktime_get();
403 ep, asoc, chunk, GFP_ATOMIC);
405 if (error && chunk)
406 chunk->pdiscard = 1;
409 * the incoming chunk. If so, get out of the while loop.