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. ...
652 struct sctp_chunk *chunk,
661 if (event_type == SCTP_EVENT_T_CHUNK && subtype.chunk == SCTP_CID_ABORT)
663 (__u16)error, 0, 0, chunk,
674 abort = sctp_make_violation_max_retrans(asoc, chunk);
688 /* Process an init chunk (may be real INIT/INIT-ACK or an embedded INIT
695 struct sctp_chunk *chunk,
706 if (!sctp_process_init(asoc, chunk, sctp_source(chunk), peer_init, gfp))
760 struct sctp_chunk *chunk)
808 * using the time value carried in the HEARTBEAT ACK chunk.
816 hbinfo = (struct sctp_sender_hb_info *)chunk->skb->data;
830 struct sctp_chunk *chunk)
834 if (sctp_outq_sack(&asoc->outqueue, chunk)) {
846 * the transport for a shutdown chunk.
850 struct sctp_chunk *chunk)
854 if (chunk->transport)
855 t = chunk->transport;
859 chunk->transport = t;
955 struct sctp_chunk *chunk)
959 t = sctp_assoc_choose_alter_transport(asoc, chunk->transport);
961 chunk->transport = t;
967 struct sctp_chunk *chunk)
972 while (chunk->chunk_end > chunk->skb->data) {
973 err_hdr = (struct sctp_errhdr *)(chunk->skb->data);
975 ev = sctp_ulpevent_make_remote_error(asoc, chunk, 0,
990 * an ERROR chunk reporting that it did not recognized
991 * the ASCONF chunk type, the sender of the ASCONF MUST
1103 /* Send the whole message, chunk by chunk, to the outqueue.
1110 struct sctp_chunk *chunk;
1112 list_for_each_entry(chunk, &msg->chunks, frag_list)
1113 sctp_outq_tail(&asoc->outqueue, chunk, gfp);
1208 event_type, subtype.chunk);
1236 state, subtype.chunk);
1241 state, event_type, subtype.chunk);
1246 state, event_type, subtype.chunk);
1252 status, state, event_type, subtype.chunk);
1280 struct sctp_chunk *chunk = NULL, *new_obj;
1292 chunk = event_arg;
1351 cmd->obj.chunk);
1367 cmd->obj.chunk);
1371 /* Generate an INIT ACK chunk. */
1372 new_obj = sctp_make_init_ack(asoc, chunk, GFP_ATOMIC,
1389 error = sctp_cmd_process_init(commands, asoc, chunk,
1394 /* Generate a COOKIE ECHO chunk. */
1395 new_obj = sctp_make_cookie_echo(asoc, chunk);
1397 if (cmd->obj.chunk)
1398 sctp_chunk_free(cmd->obj.chunk);
1405 /* If there is an ERROR chunk to be sent along with
1408 if (cmd->obj.chunk)
1410 SCTP_CHUNK(cmd->obj.chunk));
1423 * in the association being ABORTed if the DATA chunk
1445 /* Generate a SHUTDOWN chunk. */
1446 new_obj = sctp_make_shutdown(asoc, chunk);
1456 /* Send a chunk to the sockets layer. */
1458 __func__, cmd->obj.chunk, &asoc->ulpq);
1461 cmd->obj.chunk,
1480 /* Send a chunk to our peer. */
1481 sctp_outq_tail(&asoc->outqueue, cmd->obj.chunk, gfp);
1511 chunk);
1523 sctp_cmd_setup_t2(commands, asoc, cmd->obj.chunk);
1565 chunk = cmd->obj.chunk;
1569 chunk->transport = t;
1621 subtype, chunk, cmd->obj.u16);
1666 sctp_cmd_transport_on(commands, asoc, t, chunk);
1698 chunk->subh.sack_hdr = &sackh;
1700 SCTP_CHUNK(chunk));
1708 chunk->pdiscard = 1;
1726 cmd->obj.chunk,
1731 sctp_cmd_setup_t4(commands, asoc, cmd->obj.chunk);
1735 sctp_cmd_process_operr(commands, asoc, chunk);
1803 sctp_chunk_free(cmd->obj.chunk);
1810 /* If this is in response to a received chunk, wait until
1814 if (asoc && SCTP_EVENT_T_CHUNK == event_type && chunk) {
1815 if (chunk->end_of_packet || chunk->singleton)