Lines Matching full:abort
179 /* Check for format error in an ABORT chunk */
340 * Normally, this would cause an ABORT with a Protocol Violation in sctp_sf_do_5_1B_init()
348 * control endpoint, respond with an ABORT. in sctp_sf_do_5_1B_init()
362 * and ABORT. Essentially, this catches the race of INIT being in sctp_sf_do_5_1B_init()
376 * Send an ABORT, with causes if there is any. in sctp_sf_do_5_1B_init()
498 * association by transmitting an ABORT.
546 * Send an ABORT, with causes. If there are no causes, in sctp_sf_do_5_1C_ack()
573 * This means that if we only want to abort associations in sctp_sf_do_5_1C_ack()
574 * in an authenticated way (i.e AUTH+ABORT), then we in sctp_sf_do_5_1C_ack()
710 * control endpoint, respond with an ABORT. in sctp_sf_do_5_1D_ce()
728 * ABORT. in sctp_sf_do_5_1D_ce()
755 * [We should abort the association. --piggy] in sctp_sf_do_5_1D_ce()
1271 /* Helper function to send out an abort for the restart
1352 * with an ABORT.. in sctp_sf_check_restart_addrs()
1515 * Send an ABORT, with causes if there is any. in sctp_sf_do_unexpected_init()
1566 * Upon return an ABORT will have been sent if needed. in sctp_sf_do_unexpected_init()
1853 struct sctp_chunk *abort; in sctp_sf_do_dupcook_a() local
1855 abort = sctp_make_abort(asoc, NULL, sizeof(struct sctp_errhdr)); in sctp_sf_do_dupcook_a()
1856 if (abort) { in sctp_sf_do_dupcook_a()
1857 sctp_init_cause(abort, SCTP_ERROR_RSRC_LOW, 0); in sctp_sf_do_dupcook_a()
1858 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_do_dupcook_a()
2177 * [We should abort the association. --piggy] in sctp_sf_do_5_2_4_dupcook()
2255 * Process an ABORT. (SHUTDOWN-PENDING state)
2272 /* Make sure that the ABORT chunk has a valid length. in sctp_sf_shutdown_pending_abort()
2273 * Since this is an ABORT chunk, we have to discard it in sctp_sf_shutdown_pending_abort()
2276 * If an endpoint receives an ABORT with a format error or for an in sctp_sf_shutdown_pending_abort()
2285 /* ADD-IP: Special case for ABORT chunks in sctp_sf_shutdown_pending_abort()
2286 * F4) One special consideration is that ABORT Chunks arriving in sctp_sf_shutdown_pending_abort()
2301 * Process an ABORT. (SHUTDOWN-SENT state)
2318 /* Make sure that the ABORT chunk has a valid length. in sctp_sf_shutdown_sent_abort()
2319 * Since this is an ABORT chunk, we have to discard it in sctp_sf_shutdown_sent_abort()
2322 * If an endpoint receives an ABORT with a format error or for an in sctp_sf_shutdown_sent_abort()
2331 /* ADD-IP: Special case for ABORT chunks in sctp_sf_shutdown_sent_abort()
2332 * F4) One special consideration is that ABORT Chunks arriving in sctp_sf_shutdown_sent_abort()
2355 * Process an ABORT. (SHUTDOWN-ACK-SENT state)
2545 * Process an ABORT.
2553 * B) Rules for packet carrying ABORT:
2559 * - If the ABORT is sent in response to an OOTB packet, the endpoint
2588 /* Make sure that the ABORT chunk has a valid length. in sctp_sf_do_9_1_abort()
2589 * Since this is an ABORT chunk, we have to discard it in sctp_sf_do_9_1_abort()
2592 * If an endpoint receives an ABORT with a format error or for an in sctp_sf_do_9_1_abort()
2601 /* ADD-IP: Special case for ABORT chunks in sctp_sf_do_9_1_abort()
2602 * F4) One special consideration is that ABORT Chunks arriving in sctp_sf_do_9_1_abort()
2643 * Process an ABORT. (COOKIE-WAIT state)
2662 /* Make sure that the ABORT chunk has a valid length. in sctp_sf_cookie_wait_abort()
2663 * Since this is an ABORT chunk, we have to discard it in sctp_sf_cookie_wait_abort()
2666 * If an endpoint receives an ABORT with a format error or for an in sctp_sf_cookie_wait_abort()
2685 * Process an incoming ICMP as an ABORT. (COOKIE-WAIT state)
2701 * Process an ABORT. (COOKIE-ECHOED state)
2718 * Stop T1 timer and abort association with "INIT failed".
2729 pr_debug("%s: ABORT received (INIT)\n", __func__); in sctp_stop_t1_and_abort()
2814 * sender with an ABORT. in sctp_sf_do_9_2_shutdown()
2899 * sender with an ABORT. in sctp_sf_do_9_2_shut_ctsn()
3357 * sender with an ABORT. in sctp_sf_eat_sack_6_2()
3387 * Generate an ABORT in response to a packet.
3392 * an ABORT. When sending the ABORT, the receiver of the OOTB packet
3396 * Verification Tag is reflected. After sending this ABORT, the
3414 struct sctp_chunk *abort; in sctp_sf_tabort_8_4_8() local
3420 /* Make an ABORT. The T bit will be set if the asoc in sctp_sf_tabort_8_4_8()
3423 abort = sctp_make_abort(asoc, chunk, 0); in sctp_sf_tabort_8_4_8()
3424 if (!abort) { in sctp_sf_tabort_8_4_8()
3430 if (sctp_test_T_bit(abort)) in sctp_sf_tabort_8_4_8()
3434 abort->skb->sk = ep->base.sk; in sctp_sf_tabort_8_4_8()
3436 sctp_packet_append_chunk(packet, abort); in sctp_sf_tabort_8_4_8()
3568 * an ABORT. When sending the ABORT, the receiver of the OOTB packet
3572 * Verification Tag is reflected. After sending this ABORT, the
3616 * receives an ABORT MUST NOT respond to that ABORT by in sctp_sf_ootb()
3617 * sending an ABORT of its own. in sctp_sf_ootb()
3909 struct sctp_chunk *abort; in sctp_sf_do_asconf_ack() local
3950 * outstanding the endpoint MUST ABORT the association. Note that a in sctp_sf_do_asconf_ack()
3956 abort = sctp_make_abort(asoc, asconf_ack, in sctp_sf_do_asconf_ack()
3958 if (abort) { in sctp_sf_do_asconf_ack()
3959 sctp_init_cause(abort, SCTP_ERROR_ASCONF_ACK, 0); in sctp_sf_do_asconf_ack()
3961 SCTP_CHUNK(abort)); in sctp_sf_do_asconf_ack()
3963 /* We are going to ABORT, so we might as well stop in sctp_sf_do_asconf_ack()
3988 abort = sctp_make_abort(asoc, asconf_ack, in sctp_sf_do_asconf_ack()
3990 if (abort) { in sctp_sf_do_asconf_ack()
3991 sctp_init_cause(abort, SCTP_ERROR_RSRC_LOW, 0); in sctp_sf_do_asconf_ack()
3993 SCTP_CHUNK(abort)); in sctp_sf_do_asconf_ack()
3995 /* We are going to ABORT, so we might as well stop in sctp_sf_do_asconf_ack()
4524 * 2) If the OOTB packet contains an ABORT chunk, the receiver MUST
4598 struct sctp_chunk *abort = NULL; in sctp_sf_abort_violation() local
4606 * This means that if we only want to abort associations in sctp_sf_abort_violation()
4607 * in an authenticated way (i.e AUTH+ABORT), then we in sctp_sf_abort_violation()
4614 /* Make the abort chunk. */ in sctp_sf_abort_violation()
4615 abort = sctp_make_abort_violation(asoc, chunk, payload, paylen); in sctp_sf_abort_violation()
4616 if (!abort) in sctp_sf_abort_violation()
4627 abort->chunk_hdr->flags |= SCTP_CHUNK_FLAG_T; in sctp_sf_abort_violation()
4637 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_abort_violation()
4660 if (sctp_test_T_bit(abort)) in sctp_sf_abort_violation()
4663 abort->skb->sk = ep->base.sk; in sctp_sf_abort_violation()
4665 sctp_packet_append_chunk(packet, abort); in sctp_sf_abort_violation()
4680 sctp_chunk_free(abort); in sctp_sf_abort_violation()
4691 * We inform the other end by sending an ABORT with a Protocol Violation
4702 * Generate an ABORT chunk and terminate the association.
4733 struct sctp_chunk *abort = NULL; in sctp_sf_violation_paramlen() local
4739 /* Make the abort chunk. */ in sctp_sf_violation_paramlen()
4740 abort = sctp_make_violation_paramlen(asoc, chunk, param); in sctp_sf_violation_paramlen()
4741 if (!abort) in sctp_sf_violation_paramlen()
4744 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_violation_paramlen()
4764 * We inform the other end by sending an ABORT with a Protocol Violation
5045 * Process the ABORT primitive.
5048 * C) Abort
5050 * Format: Abort(association id [, cause code])
5054 * will be discarded and an ABORT chunk is sent to the peer. A success code
5056 * attempting to abort the association results in a failure, an error
5065 * o cause code - reason of the abort to be passed to the peer
5079 /* From 9.1 Abort of an Association in sctp_sf_do_9_1_prm_abort()
5080 * Upon receipt of the ABORT primitive from its upper in sctp_sf_do_9_1_prm_abort()
5087 struct sctp_chunk *abort = arg; in sctp_sf_do_9_1_prm_abort() local
5089 if (abort) in sctp_sf_do_9_1_prm_abort()
5090 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_do_9_1_prm_abort()
5092 /* Even if we can't send the ABORT due to low memory delete the in sctp_sf_do_9_1_prm_abort()
5208 * state table when someone issues an abort while in COOKIE_WAIT state.
5221 struct sctp_chunk *abort = arg; in sctp_sf_cookie_wait_prm_abort() local
5227 if (abort) in sctp_sf_cookie_wait_prm_abort()
5228 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_cookie_wait_prm_abort()
5235 /* Even if we can't send the ABORT due to low memory delete the in sctp_sf_cookie_wait_prm_abort()
5257 * state table when someone issues an abort while in COOKIE_ECHOED state.
5283 * state table when someone issues an abort while in SHUTDOWN-PENDING state.
5310 * state table when someone issues an abort while in SHUTDOWN-SENT state.
5341 * state table when someone issues an abort while in COOKIE_ECHOED state.
5790 * endpoint MUST abort the initialization process and report the
5855 * After that, the endpoint MUST abort the initialization process and
6053 * At the expiration of this timer the sender SHOULD abort the association
6054 * by sending an ABORT chunk.
6215 /* Create an ABORT packet to be sent as a response, with the specified
6226 struct sctp_chunk *abort; in sctp_abort_pkt_new() local
6231 /* Make an ABORT. in sctp_abort_pkt_new()
6234 abort = sctp_make_abort(asoc, chunk, paylen); in sctp_abort_pkt_new()
6235 if (!abort) { in sctp_abort_pkt_new()
6241 if (sctp_test_T_bit(abort)) in sctp_abort_pkt_new()
6247 sctp_addto_chunk(abort, paylen, payload); in sctp_abort_pkt_new()
6250 abort->skb->sk = ep->base.sk; in sctp_abort_pkt_new()
6252 sctp_packet_append_chunk(packet, abort); in sctp_abort_pkt_new()
6508 /* We are going to ABORT, so we might as well stop in sctp_eat_data()