Lines Matching defs:chunk

73 /* Helper function for delayed processing of SCTP ECNE chunk.  */
80 * by including the CWR chunk. This chunk contains one data
81 * element, i.e. the TSN number that was sent in the ECNE chunk.
87 struct sctp_chunk *chunk)
119 repl = sctp_make_cwr(asoc, asoc->last_cwr_tsn, chunk);
127 /* Helper function to do delayed processing of ECN CWR chunk. */
171 * second packet (not every second DATA chunk) received, and
173 * unacknowledged DATA chunk. ...
620 struct sctp_chunk *chunk,
629 if (event_type == SCTP_EVENT_T_CHUNK && subtype.chunk == SCTP_CID_ABORT)
631 (__u16)error, 0, 0, chunk,
642 abort = sctp_make_violation_max_retrans(asoc, chunk);
656 /* Process an init chunk (may be real INIT/INIT-ACK or an embedded INIT
663 struct sctp_chunk *chunk,
674 if (!sctp_process_init(asoc, chunk, sctp_source(chunk), peer_init, gfp))
728 struct sctp_chunk *chunk)
776 * using the time value carried in the HEARTBEAT ACK chunk.
784 hbinfo = (struct sctp_sender_hb_info *)chunk->skb->data;
798 struct sctp_chunk *chunk)
802 if (sctp_outq_sack(&asoc->outqueue, chunk)) {
814 * the transport for a shutdown chunk.
818 struct sctp_chunk *chunk)
822 if (chunk->transport)
823 t = chunk->transport;
827 chunk->transport = t;
945 struct sctp_chunk *chunk)
949 t = sctp_assoc_choose_alter_transport(asoc, chunk->transport);
951 chunk->transport = t;
957 struct sctp_chunk *chunk)
962 while (chunk->chunk_end > chunk->skb->data) {
963 err_hdr = (struct sctp_errhdr *)(chunk->skb->data);
965 ev = sctp_ulpevent_make_remote_error(asoc, chunk, 0,
981 * an ERROR chunk reporting that it did not recognized
982 * the ASCONF chunk type, the sender of the ASCONF MUST
1094 /* Send the whole message, chunk by chunk, to the outqueue.
1101 struct sctp_chunk *chunk;
1103 list_for_each_entry(chunk, &msg->chunks, frag_list)
1104 sctp_outq_tail(&asoc->outqueue, chunk, gfp);
1199 event_type, subtype.chunk);
1227 state, subtype.chunk);
1232 state, event_type, subtype.chunk);
1237 state, event_type, subtype.chunk);
1243 status, state, event_type, subtype.chunk);
1271 struct sctp_chunk *chunk = NULL, *new_obj;
1283 chunk = event_arg;
1346 cmd->obj.chunk);
1362 cmd->obj.chunk);
1366 /* Generate an INIT ACK chunk. */
1367 new_obj = sctp_make_init_ack(asoc, chunk, GFP_ATOMIC,
1384 error = sctp_cmd_process_init(commands, asoc, chunk,
1389 /* Generate a COOKIE ECHO chunk. */
1390 new_obj = sctp_make_cookie_echo(asoc, chunk);
1392 if (cmd->obj.chunk)
1393 sctp_chunk_free(cmd->obj.chunk);
1400 /* If there is an ERROR chunk to be sent along with
1403 if (cmd->obj.chunk)
1405 SCTP_CHUNK(cmd->obj.chunk));
1418 * in the association being ABORTed if the DATA chunk
1440 /* Generate a SHUTDOWN chunk. */
1441 new_obj = sctp_make_shutdown(asoc, chunk);
1451 /* Send a chunk to the sockets layer. */
1453 __func__, cmd->obj.chunk, &asoc->ulpq);
1456 cmd->obj.chunk,
1475 /* Send a chunk to our peer. */
1476 sctp_outq_tail(&asoc->outqueue, cmd->obj.chunk, gfp);
1506 chunk);
1518 sctp_cmd_setup_t2(commands, asoc, cmd->obj.chunk);
1560 chunk = cmd->obj.chunk;
1564 chunk->transport = t;
1616 subtype, chunk, cmd->obj.u16);
1661 sctp_cmd_transport_on(commands, asoc, t, chunk);
1688 chunk->subh.sack_hdr = &sackh;
1690 SCTP_CHUNK(chunk));
1698 chunk->pdiscard = 1;
1716 cmd->obj.chunk,
1721 sctp_cmd_setup_t4(commands, asoc, cmd->obj.chunk);
1725 sctp_cmd_process_operr(commands, asoc, chunk);
1793 sctp_chunk_free(cmd->obj.chunk);
1800 /* If this is in response to a received chunk, wait until
1804 if (asoc && SCTP_EVENT_T_CHUNK == event_type && chunk) {
1805 if (chunk->end_of_packet || chunk->singleton)