Lines Matching full:abort

188 /* Check for format error in an ABORT chunk */
344 * Normally, this would cause an ABORT with a Protocol Violation in sctp_sf_do_5_1B_init()
352 * control endpoint, respond with an ABORT. in sctp_sf_do_5_1B_init()
366 * and ABORT. Essentially, this catches the race of INIT being in sctp_sf_do_5_1B_init()
380 * Send an ABORT, with causes if there is any. in sctp_sf_do_5_1B_init()
508 * association by transmitting an ABORT.
556 * Send an ABORT, with causes. If there are no causes, in sctp_sf_do_5_1C_ack()
583 * This means that if we only want to abort associations in sctp_sf_do_5_1C_ack()
584 * in an authenticated way (i.e AUTH+ABORT), then we in sctp_sf_do_5_1C_ack()
720 * control endpoint, respond with an ABORT. in sctp_sf_do_5_1D_ce()
738 * ABORT. in sctp_sf_do_5_1D_ce()
765 * [We should abort the association. --piggy] in sctp_sf_do_5_1D_ce()
1323 /* Helper function to send out an abort for the restart
1404 * with an ABORT.. in sctp_sf_check_restart_addrs()
1565 * Send an ABORT, with causes if there is any. in sctp_sf_do_unexpected_init()
1622 * Upon return an ABORT will have been sent if needed. in sctp_sf_do_unexpected_init()
1833 struct sctp_chunk *abort; in sctp_sf_do_assoc_update() local
1838 abort = sctp_make_abort(asoc, NULL, sizeof(struct sctp_errhdr)); in sctp_sf_do_assoc_update()
1839 if (abort) { in sctp_sf_do_assoc_update()
1840 sctp_init_cause(abort, SCTP_ERROR_RSRC_LOW, 0); in sctp_sf_do_assoc_update()
1841 sctp_add_cmd_sf(cmds, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_do_assoc_update()
2245 * [We should abort the association. --piggy] in sctp_sf_do_5_2_4_dupcook()
2332 * Process an ABORT. (SHUTDOWN-PENDING state)
2349 /* Make sure that the ABORT chunk has a valid length. in sctp_sf_shutdown_pending_abort()
2350 * Since this is an ABORT chunk, we have to discard it in sctp_sf_shutdown_pending_abort()
2353 * If an endpoint receives an ABORT with a format error or for an in sctp_sf_shutdown_pending_abort()
2362 /* ADD-IP: Special case for ABORT chunks in sctp_sf_shutdown_pending_abort()
2363 * F4) One special consideration is that ABORT Chunks arriving in sctp_sf_shutdown_pending_abort()
2378 * Process an ABORT. (SHUTDOWN-SENT state)
2395 /* Make sure that the ABORT chunk has a valid length. in sctp_sf_shutdown_sent_abort()
2396 * Since this is an ABORT chunk, we have to discard it in sctp_sf_shutdown_sent_abort()
2399 * If an endpoint receives an ABORT with a format error or for an in sctp_sf_shutdown_sent_abort()
2408 /* ADD-IP: Special case for ABORT chunks in sctp_sf_shutdown_sent_abort()
2409 * F4) One special consideration is that ABORT Chunks arriving in sctp_sf_shutdown_sent_abort()
2432 * Process an ABORT. (SHUTDOWN-ACK-SENT state)
2622 * Process an ABORT.
2630 * B) Rules for packet carrying ABORT:
2636 * - If the ABORT is sent in response to an OOTB packet, the endpoint
2665 /* Make sure that the ABORT chunk has a valid length. in sctp_sf_do_9_1_abort()
2666 * Since this is an ABORT chunk, we have to discard it in sctp_sf_do_9_1_abort()
2669 * If an endpoint receives an ABORT with a format error or for an in sctp_sf_do_9_1_abort()
2678 /* ADD-IP: Special case for ABORT chunks in sctp_sf_do_9_1_abort()
2679 * F4) One special consideration is that ABORT Chunks arriving in sctp_sf_do_9_1_abort()
2720 * Process an ABORT. (COOKIE-WAIT state)
2739 /* Make sure that the ABORT chunk has a valid length. in sctp_sf_cookie_wait_abort()
2740 * Since this is an ABORT chunk, we have to discard it in sctp_sf_cookie_wait_abort()
2743 * If an endpoint receives an ABORT with a format error or for an in sctp_sf_cookie_wait_abort()
2762 * Process an incoming ICMP as an ABORT. (COOKIE-WAIT state)
2778 * Process an ABORT. (COOKIE-ECHOED state)
2795 * Stop T1 timer and abort association with "INIT failed".
2806 pr_debug("%s: ABORT received (INIT)\n", __func__); in sctp_stop_t1_and_abort()
2891 * sender with an ABORT. in sctp_sf_do_9_2_shutdown()
2976 * sender with an ABORT. in sctp_sf_do_9_2_shut_ctsn()
3434 * sender with an ABORT. in sctp_sf_eat_sack_6_2()
3464 * Generate an ABORT in response to a packet.
3469 * an ABORT. When sending the ABORT, the receiver of the OOTB packet
3473 * Verification Tag is reflected. After sending this ABORT, the
3491 struct sctp_chunk *abort; in sctp_sf_tabort_8_4_8() local
3497 /* Make an ABORT. The T bit will be set if the asoc in sctp_sf_tabort_8_4_8()
3500 abort = sctp_make_abort(asoc, chunk, 0); in sctp_sf_tabort_8_4_8()
3501 if (!abort) { in sctp_sf_tabort_8_4_8()
3507 if (sctp_test_T_bit(abort)) in sctp_sf_tabort_8_4_8()
3511 abort->skb->sk = ep->base.sk; in sctp_sf_tabort_8_4_8()
3513 sctp_packet_append_chunk(packet, abort); in sctp_sf_tabort_8_4_8()
3538 struct sctp_chunk *abort; in sctp_sf_new_encap_port() local
3544 abort = sctp_make_new_encap_port(asoc, chunk); in sctp_sf_new_encap_port()
3545 if (!abort) { in sctp_sf_new_encap_port()
3550 abort->skb->sk = ep->base.sk; in sctp_sf_new_encap_port()
3552 sctp_packet_append_chunk(packet, abort); in sctp_sf_new_encap_port()
3684 * an ABORT. When sending the ABORT, the receiver of the OOTB packet
3688 * Verification Tag is reflected. After sending this ABORT, the
3732 * receives an ABORT MUST NOT respond to that ABORT by in sctp_sf_ootb()
3733 * sending an ABORT of its own. in sctp_sf_ootb()
4025 struct sctp_chunk *abort; in sctp_sf_do_asconf_ack() local
4066 * outstanding the endpoint MUST ABORT the association. Note that a in sctp_sf_do_asconf_ack()
4072 abort = sctp_make_abort(asoc, asconf_ack, in sctp_sf_do_asconf_ack()
4074 if (abort) { in sctp_sf_do_asconf_ack()
4075 sctp_init_cause(abort, SCTP_ERROR_ASCONF_ACK, 0); in sctp_sf_do_asconf_ack()
4077 SCTP_CHUNK(abort)); in sctp_sf_do_asconf_ack()
4079 /* We are going to ABORT, so we might as well stop in sctp_sf_do_asconf_ack()
4104 abort = sctp_make_abort(asoc, asconf_ack, in sctp_sf_do_asconf_ack()
4106 if (abort) { in sctp_sf_do_asconf_ack()
4107 sctp_init_cause(abort, SCTP_ERROR_RSRC_LOW, 0); in sctp_sf_do_asconf_ack()
4109 SCTP_CHUNK(abort)); in sctp_sf_do_asconf_ack()
4111 /* We are going to ABORT, so we might as well stop in sctp_sf_do_asconf_ack()
4640 * 2) If the OOTB packet contains an ABORT chunk, the receiver MUST
4714 struct sctp_chunk *abort = NULL; in sctp_sf_abort_violation() local
4722 * This means that if we only want to abort associations in sctp_sf_abort_violation()
4723 * in an authenticated way (i.e AUTH+ABORT), then we in sctp_sf_abort_violation()
4730 /* Make the abort chunk. */ in sctp_sf_abort_violation()
4731 abort = sctp_make_abort_violation(asoc, chunk, payload, paylen); in sctp_sf_abort_violation()
4732 if (!abort) in sctp_sf_abort_violation()
4743 abort->chunk_hdr->flags |= SCTP_CHUNK_FLAG_T; in sctp_sf_abort_violation()
4753 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_abort_violation()
4776 if (sctp_test_T_bit(abort)) in sctp_sf_abort_violation()
4779 abort->skb->sk = ep->base.sk; in sctp_sf_abort_violation()
4781 sctp_packet_append_chunk(packet, abort); in sctp_sf_abort_violation()
4796 sctp_chunk_free(abort); in sctp_sf_abort_violation()
4807 * We inform the other end by sending an ABORT with a Protocol Violation
4818 * Generate an ABORT chunk and terminate the association.
4849 struct sctp_chunk *abort = NULL; in sctp_sf_violation_paramlen() local
4855 /* Make the abort chunk. */ in sctp_sf_violation_paramlen()
4856 abort = sctp_make_violation_paramlen(asoc, chunk, param); in sctp_sf_violation_paramlen()
4857 if (!abort) in sctp_sf_violation_paramlen()
4860 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_violation_paramlen()
4880 * We inform the other end by sending an ABORT with a Protocol Violation
5158 * Process the ABORT primitive.
5161 * C) Abort
5163 * Format: Abort(association id [, cause code])
5167 * will be discarded and an ABORT chunk is sent to the peer. A success code
5169 * attempting to abort the association results in a failure, an error
5178 * o cause code - reason of the abort to be passed to the peer
5192 /* From 9.1 Abort of an Association in sctp_sf_do_9_1_prm_abort()
5193 * Upon receipt of the ABORT primitive from its upper in sctp_sf_do_9_1_prm_abort()
5200 struct sctp_chunk *abort = arg; in sctp_sf_do_9_1_prm_abort() local
5202 if (abort) in sctp_sf_do_9_1_prm_abort()
5203 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_do_9_1_prm_abort()
5205 /* Even if we can't send the ABORT due to low memory delete the in sctp_sf_do_9_1_prm_abort()
5321 * state table when someone issues an abort while in COOKIE_WAIT state.
5334 struct sctp_chunk *abort = arg; in sctp_sf_cookie_wait_prm_abort() local
5340 if (abort) in sctp_sf_cookie_wait_prm_abort()
5341 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_cookie_wait_prm_abort()
5348 /* Even if we can't send the ABORT due to low memory delete the in sctp_sf_cookie_wait_prm_abort()
5370 * state table when someone issues an abort while in COOKIE_ECHOED state.
5396 * state table when someone issues an abort while in SHUTDOWN-PENDING state.
5423 * state table when someone issues an abort while in SHUTDOWN-SENT state.
5454 * state table when someone issues an abort while in COOKIE_ECHOED state.
5903 * endpoint MUST abort the initialization process and report the
5968 * After that, the endpoint MUST abort the initialization process and
6166 * At the expiration of this timer the sender SHOULD abort the association
6167 * by sending an ABORT chunk.
6328 /* Create an ABORT packet to be sent as a response, with the specified
6339 struct sctp_chunk *abort; in sctp_abort_pkt_new() local
6344 /* Make an ABORT. in sctp_abort_pkt_new()
6347 abort = sctp_make_abort(asoc, chunk, paylen); in sctp_abort_pkt_new()
6348 if (!abort) { in sctp_abort_pkt_new()
6354 if (sctp_test_T_bit(abort)) in sctp_abort_pkt_new()
6360 sctp_addto_chunk(abort, paylen, payload); in sctp_abort_pkt_new()
6363 abort->skb->sk = ep->base.sk; in sctp_abort_pkt_new()
6365 sctp_packet_append_chunk(packet, abort); in sctp_abort_pkt_new()
6621 /* We are going to ABORT, so we might as well stop in sctp_eat_data()