Lines Matching defs:chunk

191 	 * A2) a serial number should be assigned to the chunk. The serial
207 * After the reception of the first data chunk in an
209 * sack to acknowledge the data chunk. Subsequent
550 /* Reset the transport of each chunk on this list */
871 * 2**32 - 1. That is, the next TSN a DATA chunk MUST use
896 /* Return an ecne chunk to get prepended to a packet.
897 * Note: We are sly and return a shared, prealloced chunk. FIXME:
906 * Not being able to allocate a chunk here is not deadly.
920 struct sctp_chunk *chunk;
942 list_for_each_entry(chunk, &active->transmitted,
945 if (key == chunk->subh.data_hdr->tsn) {
957 list_for_each_entry(chunk, &transport->transmitted,
959 if (key == chunk->subh.data_hdr->tsn) {
978 struct sctp_chunk *chunk;
989 while (NULL != (chunk = sctp_inq_pop(inqueue))) {
991 subtype = SCTP_ST_CHUNK(chunk->chunk_hdr->type);
993 /* If the first chunk in the packet is AUTH, do special
996 if (first_time && subtype.chunk == SCTP_CID_AUTH) {
1003 /* If the next chunk is COOKIE-ECHO, skip the AUTH
1004 * chunk while saving a pointer to it so we can do
1009 chunk->auth_chunk = skb_clone(chunk->skb,
1011 chunk->auth = 1;
1018 * The receiver has a list of chunk types which it expects
1019 * to be received only after an AUTH-chunk. This list has
1022 * after an AUTH chunk in the packet.
1024 if (sctp_auth_recv_cid(subtype.chunk, asoc) && !chunk->auth)
1027 /* Remember where the last DATA chunk came from so we
1030 if (sctp_chunk_is_data(chunk))
1031 asoc->peer.last_data_from = chunk->transport;
1035 if (chunk->chunk_hdr->type == SCTP_CID_SACK)
1039 if (chunk->transport)
1040 chunk->transport->last_time_heard = ktime_get();
1044 state, ep, asoc, chunk, GFP_ATOMIC);
1047 * the incoming chunk. If so, get out of the while loop.
1052 /* If there is an error on chunk, discard this packet. */
1053 if (error && chunk)
1054 chunk->pdiscard = 1;
1694 * ack chunk whose serial number matches that of the request.
1710 /* Free any cached ASCONF_ACK chunk. */
1716 /* Free any cached ASCONF chunk. */