Lines Matching full:abort
186 /* Check for format error in an ABORT chunk */
347 * Normally, this would cause an ABORT with a Protocol Violation in sctp_sf_do_5_1B_init()
355 * control endpoint, respond with an ABORT. in sctp_sf_do_5_1B_init()
369 * and ABORT. Essentially, this catches the race of INIT being in sctp_sf_do_5_1B_init()
383 * Send an ABORT, with causes if there is any. in sctp_sf_do_5_1B_init()
505 * association by transmitting an ABORT.
553 * Send an ABORT, with causes. If there are no causes, in sctp_sf_do_5_1C_ack()
580 * This means that if we only want to abort associations in sctp_sf_do_5_1C_ack()
581 * in an authenticated way (i.e AUTH+ABORT), then we in sctp_sf_do_5_1C_ack()
717 * control endpoint, respond with an ABORT. in sctp_sf_do_5_1D_ce()
735 * ABORT. in sctp_sf_do_5_1D_ce()
762 * [We should abort the association. --piggy] in sctp_sf_do_5_1D_ce()
1315 /* Helper function to send out an abort for the restart
1396 * with an ABORT.. in sctp_sf_check_restart_addrs()
1562 * Send an ABORT, with causes if there is any. in sctp_sf_do_unexpected_init()
1613 * Upon return an ABORT will have been sent if needed. in sctp_sf_do_unexpected_init()
1824 struct sctp_chunk *abort; in sctp_sf_do_assoc_update() local
1829 abort = sctp_make_abort(asoc, NULL, sizeof(struct sctp_errhdr)); in sctp_sf_do_assoc_update()
1830 if (abort) { in sctp_sf_do_assoc_update()
1831 sctp_init_cause(abort, SCTP_ERROR_RSRC_LOW, 0); in sctp_sf_do_assoc_update()
1832 sctp_add_cmd_sf(cmds, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_do_assoc_update()
2237 * [We should abort the association. --piggy] in sctp_sf_do_5_2_4_dupcook()
2315 * Process an ABORT. (SHUTDOWN-PENDING state)
2332 /* Make sure that the ABORT chunk has a valid length. in sctp_sf_shutdown_pending_abort()
2333 * Since this is an ABORT chunk, we have to discard it in sctp_sf_shutdown_pending_abort()
2336 * If an endpoint receives an ABORT with a format error or for an in sctp_sf_shutdown_pending_abort()
2345 /* ADD-IP: Special case for ABORT chunks in sctp_sf_shutdown_pending_abort()
2346 * F4) One special consideration is that ABORT Chunks arriving in sctp_sf_shutdown_pending_abort()
2361 * Process an ABORT. (SHUTDOWN-SENT state)
2378 /* Make sure that the ABORT chunk has a valid length. in sctp_sf_shutdown_sent_abort()
2379 * Since this is an ABORT chunk, we have to discard it in sctp_sf_shutdown_sent_abort()
2382 * If an endpoint receives an ABORT with a format error or for an in sctp_sf_shutdown_sent_abort()
2391 /* ADD-IP: Special case for ABORT chunks in sctp_sf_shutdown_sent_abort()
2392 * F4) One special consideration is that ABORT Chunks arriving in sctp_sf_shutdown_sent_abort()
2415 * Process an ABORT. (SHUTDOWN-ACK-SENT state)
2605 * Process an ABORT.
2613 * B) Rules for packet carrying ABORT:
2619 * - If the ABORT is sent in response to an OOTB packet, the endpoint
2648 /* Make sure that the ABORT chunk has a valid length. in sctp_sf_do_9_1_abort()
2649 * Since this is an ABORT chunk, we have to discard it in sctp_sf_do_9_1_abort()
2652 * If an endpoint receives an ABORT with a format error or for an in sctp_sf_do_9_1_abort()
2661 /* ADD-IP: Special case for ABORT chunks in sctp_sf_do_9_1_abort()
2662 * F4) One special consideration is that ABORT Chunks arriving in sctp_sf_do_9_1_abort()
2703 * Process an ABORT. (COOKIE-WAIT state)
2722 /* Make sure that the ABORT chunk has a valid length. in sctp_sf_cookie_wait_abort()
2723 * Since this is an ABORT chunk, we have to discard it in sctp_sf_cookie_wait_abort()
2726 * If an endpoint receives an ABORT with a format error or for an in sctp_sf_cookie_wait_abort()
2745 * Process an incoming ICMP as an ABORT. (COOKIE-WAIT state)
2761 * Process an ABORT. (COOKIE-ECHOED state)
2778 * Stop T1 timer and abort association with "INIT failed".
2789 pr_debug("%s: ABORT received (INIT)\n", __func__); in sctp_stop_t1_and_abort()
2874 * sender with an ABORT. in sctp_sf_do_9_2_shutdown()
2959 * sender with an ABORT. in sctp_sf_do_9_2_shut_ctsn()
3417 * sender with an ABORT. in sctp_sf_eat_sack_6_2()
3447 * Generate an ABORT in response to a packet.
3452 * an ABORT. When sending the ABORT, the receiver of the OOTB packet
3456 * Verification Tag is reflected. After sending this ABORT, the
3474 struct sctp_chunk *abort; in sctp_sf_tabort_8_4_8() local
3480 /* Make an ABORT. The T bit will be set if the asoc in sctp_sf_tabort_8_4_8()
3483 abort = sctp_make_abort(asoc, chunk, 0); in sctp_sf_tabort_8_4_8()
3484 if (!abort) { in sctp_sf_tabort_8_4_8()
3490 if (sctp_test_T_bit(abort)) in sctp_sf_tabort_8_4_8()
3494 abort->skb->sk = ep->base.sk; in sctp_sf_tabort_8_4_8()
3496 sctp_packet_append_chunk(packet, abort); in sctp_sf_tabort_8_4_8()
3521 struct sctp_chunk *abort; in sctp_sf_new_encap_port() local
3527 abort = sctp_make_new_encap_port(asoc, chunk); in sctp_sf_new_encap_port()
3528 if (!abort) { in sctp_sf_new_encap_port()
3533 abort->skb->sk = ep->base.sk; in sctp_sf_new_encap_port()
3535 sctp_packet_append_chunk(packet, abort); in sctp_sf_new_encap_port()
3667 * an ABORT. When sending the ABORT, the receiver of the OOTB packet
3671 * Verification Tag is reflected. After sending this ABORT, the
3715 * receives an ABORT MUST NOT respond to that ABORT by in sctp_sf_ootb()
3716 * sending an ABORT of its own. in sctp_sf_ootb()
4008 struct sctp_chunk *abort; in sctp_sf_do_asconf_ack() local
4049 * outstanding the endpoint MUST ABORT the association. Note that a in sctp_sf_do_asconf_ack()
4055 abort = sctp_make_abort(asoc, asconf_ack, in sctp_sf_do_asconf_ack()
4057 if (abort) { in sctp_sf_do_asconf_ack()
4058 sctp_init_cause(abort, SCTP_ERROR_ASCONF_ACK, 0); in sctp_sf_do_asconf_ack()
4060 SCTP_CHUNK(abort)); in sctp_sf_do_asconf_ack()
4062 /* We are going to ABORT, so we might as well stop in sctp_sf_do_asconf_ack()
4087 abort = sctp_make_abort(asoc, asconf_ack, in sctp_sf_do_asconf_ack()
4089 if (abort) { in sctp_sf_do_asconf_ack()
4090 sctp_init_cause(abort, SCTP_ERROR_RSRC_LOW, 0); in sctp_sf_do_asconf_ack()
4092 SCTP_CHUNK(abort)); in sctp_sf_do_asconf_ack()
4094 /* We are going to ABORT, so we might as well stop in sctp_sf_do_asconf_ack()
4623 * 2) If the OOTB packet contains an ABORT chunk, the receiver MUST
4697 struct sctp_chunk *abort = NULL; in sctp_sf_abort_violation() local
4705 * This means that if we only want to abort associations in sctp_sf_abort_violation()
4706 * in an authenticated way (i.e AUTH+ABORT), then we in sctp_sf_abort_violation()
4713 /* Make the abort chunk. */ in sctp_sf_abort_violation()
4714 abort = sctp_make_abort_violation(asoc, chunk, payload, paylen); in sctp_sf_abort_violation()
4715 if (!abort) in sctp_sf_abort_violation()
4726 abort->chunk_hdr->flags |= SCTP_CHUNK_FLAG_T; in sctp_sf_abort_violation()
4736 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_abort_violation()
4759 if (sctp_test_T_bit(abort)) in sctp_sf_abort_violation()
4762 abort->skb->sk = ep->base.sk; in sctp_sf_abort_violation()
4764 sctp_packet_append_chunk(packet, abort); in sctp_sf_abort_violation()
4779 sctp_chunk_free(abort); in sctp_sf_abort_violation()
4790 * We inform the other end by sending an ABORT with a Protocol Violation
4801 * Generate an ABORT chunk and terminate the association.
4832 struct sctp_chunk *abort = NULL; in sctp_sf_violation_paramlen() local
4838 /* Make the abort chunk. */ in sctp_sf_violation_paramlen()
4839 abort = sctp_make_violation_paramlen(asoc, chunk, param); in sctp_sf_violation_paramlen()
4840 if (!abort) in sctp_sf_violation_paramlen()
4843 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_violation_paramlen()
4863 * We inform the other end by sending an ABORT with a Protocol Violation
5144 * Process the ABORT primitive.
5147 * C) Abort
5149 * Format: Abort(association id [, cause code])
5153 * will be discarded and an ABORT chunk is sent to the peer. A success code
5155 * attempting to abort the association results in a failure, an error
5164 * o cause code - reason of the abort to be passed to the peer
5178 /* From 9.1 Abort of an Association in sctp_sf_do_9_1_prm_abort()
5179 * Upon receipt of the ABORT primitive from its upper in sctp_sf_do_9_1_prm_abort()
5186 struct sctp_chunk *abort = arg; in sctp_sf_do_9_1_prm_abort() local
5188 if (abort) in sctp_sf_do_9_1_prm_abort()
5189 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_do_9_1_prm_abort()
5191 /* Even if we can't send the ABORT due to low memory delete the in sctp_sf_do_9_1_prm_abort()
5307 * state table when someone issues an abort while in COOKIE_WAIT state.
5320 struct sctp_chunk *abort = arg; in sctp_sf_cookie_wait_prm_abort() local
5326 if (abort) in sctp_sf_cookie_wait_prm_abort()
5327 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_cookie_wait_prm_abort()
5334 /* Even if we can't send the ABORT due to low memory delete the in sctp_sf_cookie_wait_prm_abort()
5356 * state table when someone issues an abort while in COOKIE_ECHOED state.
5382 * state table when someone issues an abort while in SHUTDOWN-PENDING state.
5409 * state table when someone issues an abort while in SHUTDOWN-SENT state.
5440 * state table when someone issues an abort while in COOKIE_ECHOED state.
5889 * endpoint MUST abort the initialization process and report the
5954 * After that, the endpoint MUST abort the initialization process and
6152 * At the expiration of this timer the sender SHOULD abort the association
6153 * by sending an ABORT chunk.
6314 /* Create an ABORT packet to be sent as a response, with the specified
6325 struct sctp_chunk *abort; in sctp_abort_pkt_new() local
6330 /* Make an ABORT. in sctp_abort_pkt_new()
6333 abort = sctp_make_abort(asoc, chunk, paylen); in sctp_abort_pkt_new()
6334 if (!abort) { in sctp_abort_pkt_new()
6340 if (sctp_test_T_bit(abort)) in sctp_abort_pkt_new()
6346 sctp_addto_chunk(abort, paylen, payload); in sctp_abort_pkt_new()
6349 abort->skb->sk = ep->base.sk; in sctp_abort_pkt_new()
6351 sctp_packet_append_chunk(packet, abort); in sctp_abort_pkt_new()
6609 /* We are going to ABORT, so we might as well stop in sctp_eat_data()