Lines Matching full:abort
187 /* Check for format error in an ABORT chunk */
343 * Normally, this would cause an ABORT with a Protocol Violation in sctp_sf_do_5_1B_init()
351 * control endpoint, respond with an ABORT. in sctp_sf_do_5_1B_init()
365 * and ABORT. Essentially, this catches the race of INIT being in sctp_sf_do_5_1B_init()
379 * Send an ABORT, with causes if there is any. in sctp_sf_do_5_1B_init()
507 * association by transmitting an ABORT.
555 * Send an ABORT, with causes. If there are no causes, in sctp_sf_do_5_1C_ack()
582 * This means that if we only want to abort associations in sctp_sf_do_5_1C_ack()
583 * in an authenticated way (i.e AUTH+ABORT), then we in sctp_sf_do_5_1C_ack()
719 * control endpoint, respond with an ABORT. in sctp_sf_do_5_1D_ce()
737 * ABORT. in sctp_sf_do_5_1D_ce()
764 * [We should abort the association. --piggy] in sctp_sf_do_5_1D_ce()
1321 /* Helper function to send out an abort for the restart
1402 * with an ABORT.. in sctp_sf_check_restart_addrs()
1563 * Send an ABORT, with causes if there is any. in sctp_sf_do_unexpected_init()
1620 * Upon return an ABORT will have been sent if needed. in sctp_sf_do_unexpected_init()
1831 struct sctp_chunk *abort; in sctp_sf_do_assoc_update() local
1836 abort = sctp_make_abort(asoc, NULL, sizeof(struct sctp_errhdr)); in sctp_sf_do_assoc_update()
1837 if (abort) { in sctp_sf_do_assoc_update()
1838 sctp_init_cause(abort, SCTP_ERROR_RSRC_LOW, 0); in sctp_sf_do_assoc_update()
1839 sctp_add_cmd_sf(cmds, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_do_assoc_update()
2243 * [We should abort the association. --piggy] in sctp_sf_do_5_2_4_dupcook()
2330 * Process an ABORT. (SHUTDOWN-PENDING state)
2347 /* Make sure that the ABORT chunk has a valid length. in sctp_sf_shutdown_pending_abort()
2348 * Since this is an ABORT chunk, we have to discard it in sctp_sf_shutdown_pending_abort()
2351 * If an endpoint receives an ABORT with a format error or for an in sctp_sf_shutdown_pending_abort()
2360 /* ADD-IP: Special case for ABORT chunks in sctp_sf_shutdown_pending_abort()
2361 * F4) One special consideration is that ABORT Chunks arriving in sctp_sf_shutdown_pending_abort()
2376 * Process an ABORT. (SHUTDOWN-SENT state)
2393 /* Make sure that the ABORT chunk has a valid length. in sctp_sf_shutdown_sent_abort()
2394 * Since this is an ABORT chunk, we have to discard it in sctp_sf_shutdown_sent_abort()
2397 * If an endpoint receives an ABORT with a format error or for an in sctp_sf_shutdown_sent_abort()
2406 /* ADD-IP: Special case for ABORT chunks in sctp_sf_shutdown_sent_abort()
2407 * F4) One special consideration is that ABORT Chunks arriving in sctp_sf_shutdown_sent_abort()
2430 * Process an ABORT. (SHUTDOWN-ACK-SENT state)
2620 * Process an ABORT.
2628 * B) Rules for packet carrying ABORT:
2634 * - If the ABORT is sent in response to an OOTB packet, the endpoint
2663 /* Make sure that the ABORT chunk has a valid length. in sctp_sf_do_9_1_abort()
2664 * Since this is an ABORT chunk, we have to discard it in sctp_sf_do_9_1_abort()
2667 * If an endpoint receives an ABORT with a format error or for an in sctp_sf_do_9_1_abort()
2676 /* ADD-IP: Special case for ABORT chunks in sctp_sf_do_9_1_abort()
2677 * F4) One special consideration is that ABORT Chunks arriving in sctp_sf_do_9_1_abort()
2718 * Process an ABORT. (COOKIE-WAIT state)
2737 /* Make sure that the ABORT chunk has a valid length. in sctp_sf_cookie_wait_abort()
2738 * Since this is an ABORT chunk, we have to discard it in sctp_sf_cookie_wait_abort()
2741 * If an endpoint receives an ABORT with a format error or for an in sctp_sf_cookie_wait_abort()
2760 * Process an incoming ICMP as an ABORT. (COOKIE-WAIT state)
2776 * Process an ABORT. (COOKIE-ECHOED state)
2793 * Stop T1 timer and abort association with "INIT failed".
2804 pr_debug("%s: ABORT received (INIT)\n", __func__); in sctp_stop_t1_and_abort()
2889 * sender with an ABORT. in sctp_sf_do_9_2_shutdown()
2974 * sender with an ABORT. in sctp_sf_do_9_2_shut_ctsn()
3432 * sender with an ABORT. in sctp_sf_eat_sack_6_2()
3462 * Generate an ABORT in response to a packet.
3467 * an ABORT. When sending the ABORT, the receiver of the OOTB packet
3471 * Verification Tag is reflected. After sending this ABORT, the
3489 struct sctp_chunk *abort; in sctp_sf_tabort_8_4_8() local
3495 /* Make an ABORT. The T bit will be set if the asoc in sctp_sf_tabort_8_4_8()
3498 abort = sctp_make_abort(asoc, chunk, 0); in sctp_sf_tabort_8_4_8()
3499 if (!abort) { in sctp_sf_tabort_8_4_8()
3505 if (sctp_test_T_bit(abort)) in sctp_sf_tabort_8_4_8()
3509 abort->skb->sk = ep->base.sk; in sctp_sf_tabort_8_4_8()
3511 sctp_packet_append_chunk(packet, abort); in sctp_sf_tabort_8_4_8()
3536 struct sctp_chunk *abort; in sctp_sf_new_encap_port() local
3542 abort = sctp_make_new_encap_port(asoc, chunk); in sctp_sf_new_encap_port()
3543 if (!abort) { in sctp_sf_new_encap_port()
3548 abort->skb->sk = ep->base.sk; in sctp_sf_new_encap_port()
3550 sctp_packet_append_chunk(packet, abort); in sctp_sf_new_encap_port()
3682 * an ABORT. When sending the ABORT, the receiver of the OOTB packet
3686 * Verification Tag is reflected. After sending this ABORT, the
3730 * receives an ABORT MUST NOT respond to that ABORT by in sctp_sf_ootb()
3731 * sending an ABORT of its own. in sctp_sf_ootb()
4023 struct sctp_chunk *abort; in sctp_sf_do_asconf_ack() local
4064 * outstanding the endpoint MUST ABORT the association. Note that a in sctp_sf_do_asconf_ack()
4070 abort = sctp_make_abort(asoc, asconf_ack, in sctp_sf_do_asconf_ack()
4072 if (abort) { in sctp_sf_do_asconf_ack()
4073 sctp_init_cause(abort, SCTP_ERROR_ASCONF_ACK, 0); in sctp_sf_do_asconf_ack()
4075 SCTP_CHUNK(abort)); in sctp_sf_do_asconf_ack()
4077 /* We are going to ABORT, so we might as well stop in sctp_sf_do_asconf_ack()
4102 abort = sctp_make_abort(asoc, asconf_ack, in sctp_sf_do_asconf_ack()
4104 if (abort) { in sctp_sf_do_asconf_ack()
4105 sctp_init_cause(abort, SCTP_ERROR_RSRC_LOW, 0); in sctp_sf_do_asconf_ack()
4107 SCTP_CHUNK(abort)); in sctp_sf_do_asconf_ack()
4109 /* We are going to ABORT, so we might as well stop in sctp_sf_do_asconf_ack()
4638 * 2) If the OOTB packet contains an ABORT chunk, the receiver MUST
4712 struct sctp_chunk *abort = NULL; in sctp_sf_abort_violation() local
4720 * This means that if we only want to abort associations in sctp_sf_abort_violation()
4721 * in an authenticated way (i.e AUTH+ABORT), then we in sctp_sf_abort_violation()
4728 /* Make the abort chunk. */ in sctp_sf_abort_violation()
4729 abort = sctp_make_abort_violation(asoc, chunk, payload, paylen); in sctp_sf_abort_violation()
4730 if (!abort) in sctp_sf_abort_violation()
4741 abort->chunk_hdr->flags |= SCTP_CHUNK_FLAG_T; in sctp_sf_abort_violation()
4751 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_abort_violation()
4774 if (sctp_test_T_bit(abort)) in sctp_sf_abort_violation()
4777 abort->skb->sk = ep->base.sk; in sctp_sf_abort_violation()
4779 sctp_packet_append_chunk(packet, abort); in sctp_sf_abort_violation()
4794 sctp_chunk_free(abort); in sctp_sf_abort_violation()
4805 * We inform the other end by sending an ABORT with a Protocol Violation
4816 * Generate an ABORT chunk and terminate the association.
4847 struct sctp_chunk *abort = NULL; in sctp_sf_violation_paramlen() local
4853 /* Make the abort chunk. */ in sctp_sf_violation_paramlen()
4854 abort = sctp_make_violation_paramlen(asoc, chunk, param); in sctp_sf_violation_paramlen()
4855 if (!abort) in sctp_sf_violation_paramlen()
4858 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_violation_paramlen()
4878 * We inform the other end by sending an ABORT with a Protocol Violation
5156 * Process the ABORT primitive.
5159 * C) Abort
5161 * Format: Abort(association id [, cause code])
5165 * will be discarded and an ABORT chunk is sent to the peer. A success code
5167 * attempting to abort the association results in a failure, an error
5176 * o cause code - reason of the abort to be passed to the peer
5190 /* From 9.1 Abort of an Association in sctp_sf_do_9_1_prm_abort()
5191 * Upon receipt of the ABORT primitive from its upper in sctp_sf_do_9_1_prm_abort()
5198 struct sctp_chunk *abort = arg; in sctp_sf_do_9_1_prm_abort() local
5200 if (abort) in sctp_sf_do_9_1_prm_abort()
5201 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_do_9_1_prm_abort()
5203 /* Even if we can't send the ABORT due to low memory delete the in sctp_sf_do_9_1_prm_abort()
5319 * state table when someone issues an abort while in COOKIE_WAIT state.
5332 struct sctp_chunk *abort = arg; in sctp_sf_cookie_wait_prm_abort() local
5338 if (abort) in sctp_sf_cookie_wait_prm_abort()
5339 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_cookie_wait_prm_abort()
5346 /* Even if we can't send the ABORT due to low memory delete the in sctp_sf_cookie_wait_prm_abort()
5368 * state table when someone issues an abort while in COOKIE_ECHOED state.
5394 * state table when someone issues an abort while in SHUTDOWN-PENDING state.
5421 * state table when someone issues an abort while in SHUTDOWN-SENT state.
5452 * state table when someone issues an abort while in COOKIE_ECHOED state.
5901 * endpoint MUST abort the initialization process and report the
5966 * After that, the endpoint MUST abort the initialization process and
6164 * At the expiration of this timer the sender SHOULD abort the association
6165 * by sending an ABORT chunk.
6326 /* Create an ABORT packet to be sent as a response, with the specified
6337 struct sctp_chunk *abort; in sctp_abort_pkt_new() local
6342 /* Make an ABORT. in sctp_abort_pkt_new()
6345 abort = sctp_make_abort(asoc, chunk, paylen); in sctp_abort_pkt_new()
6346 if (!abort) { in sctp_abort_pkt_new()
6352 if (sctp_test_T_bit(abort)) in sctp_abort_pkt_new()
6358 sctp_addto_chunk(abort, paylen, payload); in sctp_abort_pkt_new()
6361 abort->skb->sk = ep->base.sk; in sctp_abort_pkt_new()
6363 sctp_packet_append_chunk(packet, abort); in sctp_abort_pkt_new()
6619 /* We are going to ABORT, so we might as well stop in sctp_eat_data()