Lines Matching refs:chunk
102 struct sctp_chunk *chunk) in sctp_do_ecn_ecne_work() argument
134 repl = sctp_make_cwr(asoc, asoc->last_cwr_tsn, chunk); in sctp_do_ecn_ecne_work()
571 struct sctp_chunk *chunk, in sctp_cmd_assoc_failed() argument
579 if (event_type == SCTP_EVENT_T_CHUNK && subtype.chunk == SCTP_CID_ABORT) in sctp_cmd_assoc_failed()
581 (__u16)error, 0, 0, chunk, in sctp_cmd_assoc_failed()
592 abort = sctp_make_violation_max_retrans(asoc, chunk); in sctp_cmd_assoc_failed()
613 struct sctp_chunk *chunk, in sctp_cmd_process_init() argument
624 if (!sctp_process_init(asoc, chunk, sctp_source(chunk), peer_init, gfp)) in sctp_cmd_process_init()
690 struct sctp_chunk *chunk) in sctp_cmd_transport_on() argument
746 hbinfo = (sctp_sender_hb_info_t *) chunk->skb->data; in sctp_cmd_transport_on()
761 struct sctp_chunk *chunk) in sctp_cmd_process_sack() argument
765 if (sctp_outq_sack(&asoc->outqueue, chunk)) { in sctp_cmd_process_sack()
783 struct sctp_chunk *chunk) in sctp_cmd_setup_t2() argument
787 if (chunk->transport) in sctp_cmd_setup_t2()
788 t = chunk->transport; in sctp_cmd_setup_t2()
792 chunk->transport = t; in sctp_cmd_setup_t2()
878 struct sctp_chunk *chunk) in sctp_cmd_setup_t4() argument
882 t = sctp_assoc_choose_alter_transport(asoc, chunk->transport); in sctp_cmd_setup_t4()
884 chunk->transport = t; in sctp_cmd_setup_t4()
890 struct sctp_chunk *chunk) in sctp_cmd_process_operr() argument
895 while (chunk->chunk_end > chunk->skb->data) { in sctp_cmd_process_operr()
896 err_hdr = (struct sctp_errhdr *)(chunk->skb->data); in sctp_cmd_process_operr()
898 ev = sctp_ulpevent_make_remote_error(asoc, chunk, 0, in sctp_cmd_process_operr()
939 struct sctp_chunk *chunk) in sctp_cmd_process_fwdtsn() argument
943 sctp_walk_fwdtsn(skip, chunk) { in sctp_cmd_process_fwdtsn()
1034 struct sctp_chunk *chunk; in sctp_cmd_send_msg() local
1037 list_for_each_entry(chunk, &msg->chunks, frag_list) { in sctp_cmd_send_msg()
1038 error = sctp_outq_tail(&asoc->outqueue, chunk); in sctp_cmd_send_msg()
1163 event_type, subtype.chunk); in sctp_side_effects()
1190 state, subtype.chunk); in sctp_side_effects()
1195 state, event_type, subtype.chunk); in sctp_side_effects()
1200 state, event_type, subtype.chunk); in sctp_side_effects()
1206 status, state, event_type, subtype.chunk); in sctp_side_effects()
1234 struct sctp_chunk *chunk = NULL; in sctp_cmd_interpreter() local
1243 chunk = event_arg; in sctp_cmd_interpreter()
1313 sctp_cmd_process_fwdtsn(&asoc->ulpq, cmd->obj.chunk); in sctp_cmd_interpreter()
1329 cmd->obj.chunk); in sctp_cmd_interpreter()
1334 new_obj = sctp_make_init_ack(asoc, chunk, GFP_ATOMIC, in sctp_cmd_interpreter()
1351 error = sctp_cmd_process_init(commands, asoc, chunk, in sctp_cmd_interpreter()
1357 new_obj = sctp_make_cookie_echo(asoc, chunk); in sctp_cmd_interpreter()
1359 if (cmd->obj.chunk) in sctp_cmd_interpreter()
1360 sctp_chunk_free(cmd->obj.chunk); in sctp_cmd_interpreter()
1370 if (cmd->obj.chunk) in sctp_cmd_interpreter()
1372 SCTP_CHUNK(cmd->obj.chunk)); in sctp_cmd_interpreter()
1408 new_obj = sctp_make_shutdown(asoc, chunk); in sctp_cmd_interpreter()
1420 __func__, cmd->obj.chunk, &asoc->ulpq); in sctp_cmd_interpreter()
1422 sctp_ulpq_tail_data(&asoc->ulpq, cmd->obj.chunk, in sctp_cmd_interpreter()
1441 error = sctp_outq_tail(&asoc->outqueue, cmd->obj.chunk); in sctp_cmd_interpreter()
1471 chunk); in sctp_cmd_interpreter()
1483 sctp_cmd_setup_t2(commands, asoc, cmd->obj.chunk); in sctp_cmd_interpreter()
1517 chunk = cmd->obj.chunk; in sctp_cmd_interpreter()
1521 chunk->transport = t; in sctp_cmd_interpreter()
1573 subtype, chunk, cmd->obj.err); in sctp_cmd_interpreter()
1618 sctp_cmd_transport_on(commands, asoc, t, chunk); in sctp_cmd_interpreter()
1645 chunk->subh.sack_hdr = &sackh; in sctp_cmd_interpreter()
1647 SCTP_CHUNK(chunk)); in sctp_cmd_interpreter()
1655 chunk->pdiscard = 1; in sctp_cmd_interpreter()
1672 sctp_ulpq_renege(&asoc->ulpq, cmd->obj.chunk, in sctp_cmd_interpreter()
1677 sctp_cmd_setup_t4(commands, asoc, cmd->obj.chunk); in sctp_cmd_interpreter()
1681 sctp_cmd_process_operr(commands, asoc, chunk); in sctp_cmd_interpreter()
1745 sctp_chunk_free(cmd->obj.chunk); in sctp_cmd_interpreter()
1756 if (asoc && SCTP_EVENT_T_CHUNK == event_type && chunk) { in sctp_cmd_interpreter()
1757 if (chunk->end_of_packet || chunk->singleton) in sctp_cmd_interpreter()