Lines Matching defs:chunk
195 * A2) a serial number should be assigned to the chunk. The serial
211 * After the reception of the first data chunk in an
213 * sack to acknowledge the data chunk. Subsequent
552 /* Reset the transport of each chunk on this list */
862 * 2**32 - 1. That is, the next TSN a DATA chunk MUST use
887 /* Return an ecne chunk to get prepended to a packet.
888 * Note: We are sly and return a shared, prealloced chunk. FIXME:
897 * Not being able to allocate a chunk here is not deadly.
911 struct sctp_chunk *chunk;
933 list_for_each_entry(chunk, &active->transmitted,
936 if (key == chunk->subh.data_hdr->tsn) {
948 list_for_each_entry(chunk, &transport->transmitted,
950 if (key == chunk->subh.data_hdr->tsn) {
969 struct sctp_chunk *chunk;
980 while (NULL != (chunk = sctp_inq_pop(inqueue))) {
982 subtype = SCTP_ST_CHUNK(chunk->chunk_hdr->type);
984 /* If the first chunk in the packet is AUTH, do special
987 if (first_time && subtype.chunk == SCTP_CID_AUTH) {
994 /* If the next chunk is COOKIE-ECHO, skip the AUTH
995 * chunk while saving a pointer to it so we can do
1000 chunk->auth_chunk = skb_clone(chunk->skb,
1002 chunk->auth = 1;
1009 * The receiver has a list of chunk types which it expects
1010 * to be received only after an AUTH-chunk. This list has
1013 * after an AUTH chunk in the packet.
1015 if (sctp_auth_recv_cid(subtype.chunk, asoc) && !chunk->auth)
1018 /* Remember where the last DATA chunk came from so we
1021 if (sctp_chunk_is_data(chunk))
1022 asoc->peer.last_data_from = chunk->transport;
1026 if (chunk->chunk_hdr->type == SCTP_CID_SACK)
1030 if (chunk->transport)
1031 chunk->transport->last_time_heard = ktime_get();
1035 state, ep, asoc, chunk, GFP_ATOMIC);
1038 * the incoming chunk. If so, get out of the while loop.
1043 /* If there is an error on chunk, discard this packet. */
1044 if (error && chunk)
1045 chunk->pdiscard = 1;
1686 * ack chunk whose serial number matches that of the request.
1702 /* Free any cached ASCONF_ACK chunk. */
1708 /* Free any cached ASCONF chunk. */