Lines Matching full:abort
186 /* Check for format error in an ABORT chunk */
342 * Normally, this would cause an ABORT with a Protocol Violation in sctp_sf_do_5_1B_init()
350 * control endpoint, respond with an ABORT. in sctp_sf_do_5_1B_init()
364 * and ABORT. Essentially, this catches the race of INIT being in sctp_sf_do_5_1B_init()
378 * Send an ABORT, with causes if there is any. in sctp_sf_do_5_1B_init()
506 * association by transmitting an ABORT.
554 * Send an ABORT, with causes. If there are no causes, in sctp_sf_do_5_1C_ack()
581 * This means that if we only want to abort associations in sctp_sf_do_5_1C_ack()
582 * in an authenticated way (i.e AUTH+ABORT), then we in sctp_sf_do_5_1C_ack()
718 * control endpoint, respond with an ABORT. in sctp_sf_do_5_1D_ce()
736 * ABORT. in sctp_sf_do_5_1D_ce()
763 * [We should abort the association. --piggy] in sctp_sf_do_5_1D_ce()
1320 /* Helper function to send out an abort for the restart
1401 * 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()
1619 * Upon return an ABORT will have been sent if needed. in sctp_sf_do_unexpected_init()
1830 struct sctp_chunk *abort; in sctp_sf_do_assoc_update() local
1835 abort = sctp_make_abort(asoc, NULL, sizeof(struct sctp_errhdr)); in sctp_sf_do_assoc_update()
1836 if (abort) { in sctp_sf_do_assoc_update()
1837 sctp_init_cause(abort, SCTP_ERROR_RSRC_LOW, 0); in sctp_sf_do_assoc_update()
1838 sctp_add_cmd_sf(cmds, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_do_assoc_update()
2242 * [We should abort the association. --piggy] in sctp_sf_do_5_2_4_dupcook()
2319 * Process an ABORT. (SHUTDOWN-PENDING state)
2336 /* Make sure that the ABORT chunk has a valid length. in sctp_sf_shutdown_pending_abort()
2337 * Since this is an ABORT chunk, we have to discard it in sctp_sf_shutdown_pending_abort()
2340 * If an endpoint receives an ABORT with a format error or for an in sctp_sf_shutdown_pending_abort()
2349 /* ADD-IP: Special case for ABORT chunks in sctp_sf_shutdown_pending_abort()
2350 * F4) One special consideration is that ABORT Chunks arriving in sctp_sf_shutdown_pending_abort()
2365 * Process an ABORT. (SHUTDOWN-SENT state)
2382 /* Make sure that the ABORT chunk has a valid length. in sctp_sf_shutdown_sent_abort()
2383 * Since this is an ABORT chunk, we have to discard it in sctp_sf_shutdown_sent_abort()
2386 * If an endpoint receives an ABORT with a format error or for an in sctp_sf_shutdown_sent_abort()
2395 /* ADD-IP: Special case for ABORT chunks in sctp_sf_shutdown_sent_abort()
2396 * F4) One special consideration is that ABORT Chunks arriving in sctp_sf_shutdown_sent_abort()
2419 * Process an ABORT. (SHUTDOWN-ACK-SENT state)
2609 * Process an ABORT.
2617 * B) Rules for packet carrying ABORT:
2623 * - If the ABORT is sent in response to an OOTB packet, the endpoint
2652 /* Make sure that the ABORT chunk has a valid length. in sctp_sf_do_9_1_abort()
2653 * Since this is an ABORT chunk, we have to discard it in sctp_sf_do_9_1_abort()
2656 * If an endpoint receives an ABORT with a format error or for an in sctp_sf_do_9_1_abort()
2665 /* ADD-IP: Special case for ABORT chunks in sctp_sf_do_9_1_abort()
2666 * F4) One special consideration is that ABORT Chunks arriving in sctp_sf_do_9_1_abort()
2707 * Process an ABORT. (COOKIE-WAIT state)
2726 /* Make sure that the ABORT chunk has a valid length. in sctp_sf_cookie_wait_abort()
2727 * Since this is an ABORT chunk, we have to discard it in sctp_sf_cookie_wait_abort()
2730 * If an endpoint receives an ABORT with a format error or for an in sctp_sf_cookie_wait_abort()
2749 * Process an incoming ICMP as an ABORT. (COOKIE-WAIT state)
2765 * Process an ABORT. (COOKIE-ECHOED state)
2782 * Stop T1 timer and abort association with "INIT failed".
2793 pr_debug("%s: ABORT received (INIT)\n", __func__); in sctp_stop_t1_and_abort()
2878 * sender with an ABORT. in sctp_sf_do_9_2_shutdown()
2963 * sender with an ABORT. in sctp_sf_do_9_2_shut_ctsn()
3421 * sender with an ABORT. in sctp_sf_eat_sack_6_2()
3451 * Generate an ABORT in response to a packet.
3456 * an ABORT. When sending the ABORT, the receiver of the OOTB packet
3460 * Verification Tag is reflected. After sending this ABORT, the
3478 struct sctp_chunk *abort; in sctp_sf_tabort_8_4_8() local
3484 /* Make an ABORT. The T bit will be set if the asoc in sctp_sf_tabort_8_4_8()
3487 abort = sctp_make_abort(asoc, chunk, 0); in sctp_sf_tabort_8_4_8()
3488 if (!abort) { in sctp_sf_tabort_8_4_8()
3494 if (sctp_test_T_bit(abort)) in sctp_sf_tabort_8_4_8()
3498 abort->skb->sk = ep->base.sk; in sctp_sf_tabort_8_4_8()
3500 sctp_packet_append_chunk(packet, abort); in sctp_sf_tabort_8_4_8()
3525 struct sctp_chunk *abort; in sctp_sf_new_encap_port() local
3531 abort = sctp_make_new_encap_port(asoc, chunk); in sctp_sf_new_encap_port()
3532 if (!abort) { in sctp_sf_new_encap_port()
3537 abort->skb->sk = ep->base.sk; in sctp_sf_new_encap_port()
3539 sctp_packet_append_chunk(packet, abort); in sctp_sf_new_encap_port()
3671 * an ABORT. When sending the ABORT, the receiver of the OOTB packet
3675 * Verification Tag is reflected. After sending this ABORT, the
3719 * receives an ABORT MUST NOT respond to that ABORT by in sctp_sf_ootb()
3720 * sending an ABORT of its own. in sctp_sf_ootb()
4012 struct sctp_chunk *abort; in sctp_sf_do_asconf_ack() local
4053 * outstanding the endpoint MUST ABORT the association. Note that a in sctp_sf_do_asconf_ack()
4059 abort = sctp_make_abort(asoc, asconf_ack, in sctp_sf_do_asconf_ack()
4061 if (abort) { in sctp_sf_do_asconf_ack()
4062 sctp_init_cause(abort, SCTP_ERROR_ASCONF_ACK, 0); in sctp_sf_do_asconf_ack()
4064 SCTP_CHUNK(abort)); in sctp_sf_do_asconf_ack()
4066 /* We are going to ABORT, so we might as well stop in sctp_sf_do_asconf_ack()
4091 abort = sctp_make_abort(asoc, asconf_ack, in sctp_sf_do_asconf_ack()
4093 if (abort) { in sctp_sf_do_asconf_ack()
4094 sctp_init_cause(abort, SCTP_ERROR_RSRC_LOW, 0); in sctp_sf_do_asconf_ack()
4096 SCTP_CHUNK(abort)); in sctp_sf_do_asconf_ack()
4098 /* We are going to ABORT, so we might as well stop in sctp_sf_do_asconf_ack()
4627 * 2) If the OOTB packet contains an ABORT chunk, the receiver MUST
4701 struct sctp_chunk *abort = NULL; in sctp_sf_abort_violation() local
4709 * This means that if we only want to abort associations in sctp_sf_abort_violation()
4710 * in an authenticated way (i.e AUTH+ABORT), then we in sctp_sf_abort_violation()
4717 /* Make the abort chunk. */ in sctp_sf_abort_violation()
4718 abort = sctp_make_abort_violation(asoc, chunk, payload, paylen); in sctp_sf_abort_violation()
4719 if (!abort) in sctp_sf_abort_violation()
4730 abort->chunk_hdr->flags |= SCTP_CHUNK_FLAG_T; in sctp_sf_abort_violation()
4740 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_abort_violation()
4763 if (sctp_test_T_bit(abort)) in sctp_sf_abort_violation()
4766 abort->skb->sk = ep->base.sk; in sctp_sf_abort_violation()
4768 sctp_packet_append_chunk(packet, abort); in sctp_sf_abort_violation()
4783 sctp_chunk_free(abort); in sctp_sf_abort_violation()
4794 * We inform the other end by sending an ABORT with a Protocol Violation
4805 * Generate an ABORT chunk and terminate the association.
4836 struct sctp_chunk *abort = NULL; in sctp_sf_violation_paramlen() local
4842 /* Make the abort chunk. */ in sctp_sf_violation_paramlen()
4843 abort = sctp_make_violation_paramlen(asoc, chunk, param); in sctp_sf_violation_paramlen()
4844 if (!abort) in sctp_sf_violation_paramlen()
4847 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_violation_paramlen()
4867 * We inform the other end by sending an ABORT with a Protocol Violation
5145 * Process the ABORT primitive.
5148 * C) Abort
5150 * Format: Abort(association id [, cause code])
5154 * will be discarded and an ABORT chunk is sent to the peer. A success code
5156 * attempting to abort the association results in a failure, an error
5165 * o cause code - reason of the abort to be passed to the peer
5179 /* From 9.1 Abort of an Association in sctp_sf_do_9_1_prm_abort()
5180 * Upon receipt of the ABORT primitive from its upper in sctp_sf_do_9_1_prm_abort()
5187 struct sctp_chunk *abort = arg; in sctp_sf_do_9_1_prm_abort() local
5189 if (abort) in sctp_sf_do_9_1_prm_abort()
5190 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_do_9_1_prm_abort()
5192 /* Even if we can't send the ABORT due to low memory delete the in sctp_sf_do_9_1_prm_abort()
5308 * state table when someone issues an abort while in COOKIE_WAIT state.
5321 struct sctp_chunk *abort = arg; in sctp_sf_cookie_wait_prm_abort() local
5327 if (abort) in sctp_sf_cookie_wait_prm_abort()
5328 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_cookie_wait_prm_abort()
5335 /* Even if we can't send the ABORT due to low memory delete the in sctp_sf_cookie_wait_prm_abort()
5357 * state table when someone issues an abort while in COOKIE_ECHOED state.
5383 * state table when someone issues an abort while in SHUTDOWN-PENDING state.
5410 * state table when someone issues an abort while in SHUTDOWN-SENT state.
5441 * state table when someone issues an abort while in COOKIE_ECHOED state.
5890 * endpoint MUST abort the initialization process and report the
5955 * After that, the endpoint MUST abort the initialization process and
6153 * At the expiration of this timer the sender SHOULD abort the association
6154 * by sending an ABORT chunk.
6315 /* Create an ABORT packet to be sent as a response, with the specified
6326 struct sctp_chunk *abort; in sctp_abort_pkt_new() local
6331 /* Make an ABORT. in sctp_abort_pkt_new()
6334 abort = sctp_make_abort(asoc, chunk, paylen); in sctp_abort_pkt_new()
6335 if (!abort) { in sctp_abort_pkt_new()
6341 if (sctp_test_T_bit(abort)) in sctp_abort_pkt_new()
6347 sctp_addto_chunk(abort, paylen, payload); in sctp_abort_pkt_new()
6350 abort->skb->sk = ep->base.sk; in sctp_abort_pkt_new()
6352 sctp_packet_append_chunk(packet, abort); in sctp_abort_pkt_new()
6608 /* We are going to ABORT, so we might as well stop in sctp_eat_data()