Lines Matching full:commands

59 			 struct sctp_cmd_seq *commands);
68 struct sctp_cmd_seq *commands,
76 struct sctp_cmd_seq *commands);
83 struct sctp_cmd_seq *commands);
90 struct sctp_cmd_seq *commands);
97 struct sctp_cmd_seq *commands);
102 struct sctp_cmd_seq *commands,
112 struct sctp_cmd_seq *commands,
122 struct sctp_cmd_seq *commands);
130 struct sctp_cmd_seq *commands);
138 struct sctp_cmd_seq *commands);
146 struct sctp_cmd_seq *commands);
158 struct sctp_cmd_seq *commands);
164 struct sctp_cmd_seq *commands);
236 void *arg, struct sctp_cmd_seq *commands) in sctp_sf_do_4_C() argument
242 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_4_C()
250 return sctp_sf_violation_chunk(net, ep, asoc, type, arg, commands); in sctp_sf_do_4_C()
255 commands); in sctp_sf_do_4_C()
267 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, in sctp_sf_do_4_C()
278 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_do_4_C()
281 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_do_4_C()
284 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE, in sctp_sf_do_4_C()
290 sctp_add_cmd_sf(commands, SCTP_CMD_DELETE_TCB, SCTP_NULL()); in sctp_sf_do_4_C()
322 struct sctp_cmd_seq *commands) in sctp_sf_do_5_1B_init() argument
340 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_1B_init()
348 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_1B_init()
355 return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_1B_init()
362 return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_1B_init()
371 return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_1B_init()
391 sctp_add_cmd_sf(commands, SCTP_CMD_SEND_PKT, in sctp_sf_do_5_1B_init()
400 commands); in sctp_sf_do_5_1B_init()
417 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_1B_init()
467 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_ASOC, SCTP_ASOC(new_asoc)); in sctp_sf_do_5_1B_init()
469 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(repl)); in sctp_sf_do_5_1B_init()
477 sctp_add_cmd_sf(commands, SCTP_CMD_DELETE_TCB, SCTP_NULL()); in sctp_sf_do_5_1B_init()
522 struct sctp_cmd_seq *commands) in sctp_sf_do_5_1C_ack() argument
530 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_1C_ack()
537 return sctp_sf_violation_chunk(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_1C_ack()
542 commands); in sctp_sf_do_5_1C_ack()
569 sctp_add_cmd_sf(commands, SCTP_CMD_SEND_PKT, in sctp_sf_do_5_1C_ack()
588 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_1C_ack()
591 return sctp_stop_t1_and_abort(net, commands, error, ECONNREFUSED, in sctp_sf_do_5_1C_ack()
602 sctp_add_cmd_sf(commands, SCTP_CMD_PEER_INIT, in sctp_sf_do_5_1C_ack()
606 sctp_add_cmd_sf(commands, SCTP_CMD_INIT_COUNTER_RESET, SCTP_NULL()); in sctp_sf_do_5_1C_ack()
612 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_do_5_1C_ack()
614 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_START, in sctp_sf_do_5_1C_ack()
616 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE, in sctp_sf_do_5_1C_ack()
622 sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_SHKEY, SCTP_NULL()); in sctp_sf_do_5_1C_ack()
630 sctp_add_cmd_sf(commands, SCTP_CMD_GEN_COOKIE_ECHO, in sctp_sf_do_5_1C_ack()
704 struct sctp_cmd_seq *commands) in sctp_sf_do_5_1D_ce() argument
716 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_1D_ce()
723 return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_1D_ce()
733 commands); in sctp_sf_do_5_1D_ce()
742 return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_1D_ce()
775 sctp_send_stale_cookie_err(net, ep, asoc, chunk, commands, in sctp_sf_do_5_1D_ce()
777 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_1D_ce()
781 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_1D_ce()
787 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_1D_ce()
790 /* Delay state machine commands until later. in sctp_sf_do_5_1D_ce()
814 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_1D_ce()
854 /* Add all the state machine commands now since we've created in sctp_sf_do_5_1D_ce()
859 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_ASOC, SCTP_ASOC(new_asoc)); in sctp_sf_do_5_1D_ce()
860 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE, in sctp_sf_do_5_1D_ce()
864 sctp_add_cmd_sf(commands, SCTP_CMD_HB_TIMERS_START, SCTP_NULL()); in sctp_sf_do_5_1D_ce()
867 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_START, in sctp_sf_do_5_1D_ce()
871 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(repl)); in sctp_sf_do_5_1D_ce()
874 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, SCTP_ULPEVENT(ev)); in sctp_sf_do_5_1D_ce()
878 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, in sctp_sf_do_5_1D_ce()
882 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, in sctp_sf_do_5_1D_ce()
925 struct sctp_cmd_seq *commands) in sctp_sf_do_5_1E_ca() argument
931 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_1E_ca()
936 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_1E_ca()
943 commands); in sctp_sf_do_5_1E_ca()
951 sctp_add_cmd_sf(commands, SCTP_CMD_INIT_COUNTER_RESET, SCTP_NULL()); in sctp_sf_do_5_1E_ca()
959 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_do_5_1E_ca()
961 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE, in sctp_sf_do_5_1E_ca()
965 sctp_add_cmd_sf(commands, SCTP_CMD_HB_TIMERS_START, SCTP_NULL()); in sctp_sf_do_5_1E_ca()
967 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_START, in sctp_sf_do_5_1E_ca()
982 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, SCTP_ULPEVENT(ev)); in sctp_sf_do_5_1E_ca()
994 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, in sctp_sf_do_5_1E_ca()
1003 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, in sctp_sf_do_5_1E_ca()
1018 struct sctp_cmd_seq *commands) in sctp_sf_heartbeat() argument
1031 sctp_add_cmd_sf(commands, SCTP_CMD_RTO_PENDING, in sctp_sf_heartbeat()
1034 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(reply)); in sctp_sf_heartbeat()
1044 struct sctp_cmd_seq *commands) in sctp_sf_sendbeat_8_3() argument
1049 sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR, in sctp_sf_sendbeat_8_3()
1052 sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_FAILED, in sctp_sf_sendbeat_8_3()
1069 commands)) in sctp_sf_sendbeat_8_3()
1075 sctp_add_cmd_sf(commands, SCTP_CMD_TRANSPORT_HB_SENT, in sctp_sf_sendbeat_8_3()
1078 sctp_add_cmd_sf(commands, SCTP_CMD_TRANSPORT_IDLE, in sctp_sf_sendbeat_8_3()
1080 sctp_add_cmd_sf(commands, SCTP_CMD_HB_TIMER_UPDATE, in sctp_sf_sendbeat_8_3()
1092 struct sctp_cmd_seq *commands) in sctp_sf_send_reconf() argument
1097 sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR, in sctp_sf_send_reconf()
1100 sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_FAILED, in sctp_sf_send_reconf()
1108 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, in sctp_sf_send_reconf()
1110 sctp_add_cmd_sf(commands, SCTP_CMD_STRIKE, SCTP_TRANSPORT(transport)); in sctp_sf_send_reconf()
1121 struct sctp_cmd_seq *commands) in sctp_sf_send_probe() argument
1133 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(reply)); in sctp_sf_send_probe()
1134 sctp_add_cmd_sf(commands, SCTP_CMD_PROBE_TIMER_UPDATE, in sctp_sf_send_probe()
1168 void *arg, struct sctp_cmd_seq *commands) in sctp_sf_beat_8_3() argument
1176 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_beat_8_3()
1182 commands); in sctp_sf_beat_8_3()
1194 param_hdr, commands); in sctp_sf_beat_8_3()
1203 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(reply)); in sctp_sf_beat_8_3()
1243 struct sctp_cmd_seq *commands) in sctp_sf_backbeat_8_3() argument
1252 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_backbeat_8_3()
1258 commands); in sctp_sf_backbeat_8_3()
1296 return sctp_sf_send_probe(net, ep, asoc, type, link, commands); in sctp_sf_backbeat_8_3()
1316 sctp_add_cmd_sf(commands, SCTP_CMD_TRANSPORT_ON, SCTP_TRANSPORT(link)); in sctp_sf_backbeat_8_3()
1326 struct sctp_cmd_seq *commands) in sctp_sf_send_restart_abort() argument
1359 sctp_add_cmd_sf(commands, SCTP_CMD_SEND_PKT, SCTP_PACKET(pkt)); in sctp_sf_send_restart_abort()
1364 sctp_add_cmd_sf(commands, SCTP_CMD_DISCARD_PACKET, SCTP_NULL()); in sctp_sf_send_restart_abort()
1391 struct sctp_cmd_seq *commands) in sctp_sf_check_restart_addrs() argument
1413 commands); in sctp_sf_check_restart_addrs()
1517 struct sctp_cmd_seq *commands) in sctp_sf_do_unexpected_init() argument
1536 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_unexpected_init()
1540 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_unexpected_init()
1546 return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands); in sctp_sf_do_unexpected_init()
1549 return sctp_sf_new_encap_port(net, ep, asoc, type, arg, commands); in sctp_sf_do_unexpected_init()
1573 sctp_add_cmd_sf(commands, SCTP_CMD_SEND_PKT, in sctp_sf_do_unexpected_init()
1583 commands); in sctp_sf_do_unexpected_init()
1601 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_unexpected_init()
1624 commands)) { in sctp_sf_do_unexpected_init()
1668 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_ASOC, SCTP_ASOC(new_asoc)); in sctp_sf_do_unexpected_init()
1669 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(repl)); in sctp_sf_do_unexpected_init()
1676 sctp_add_cmd_sf(commands, SCTP_CMD_DELETE_TCB, SCTP_NULL()); in sctp_sf_do_unexpected_init()
1736 struct sctp_cmd_seq *commands) in sctp_sf_do_5_2_1_siminit() argument
1741 return sctp_sf_do_unexpected_init(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_2_1_siminit()
1791 struct sctp_cmd_seq *commands) in sctp_sf_do_5_2_2_dupinit() argument
1796 return sctp_sf_do_unexpected_init(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_2_2_dupinit()
1815 struct sctp_cmd_seq *commands) in sctp_sf_do_5_2_3_initack() argument
1821 return sctp_sf_ootb(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_2_3_initack()
1823 return sctp_sf_discard_chunk(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_2_3_initack()
1860 struct sctp_cmd_seq *commands, in sctp_sf_do_dupcook_a() argument
1887 if (!sctp_sf_check_restart_addrs(new_asoc, asoc, chunk, commands)) in sctp_sf_do_dupcook_a()
1899 chunk, commands); in sctp_sf_do_dupcook_a()
1907 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, in sctp_sf_do_dupcook_a()
1916 sctp_add_cmd_sf(commands, SCTP_CMD_T3_RTX_TIMERS_STOP, SCTP_NULL()); in sctp_sf_do_dupcook_a()
1917 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_do_dupcook_a()
1919 sctp_add_cmd_sf(commands, SCTP_CMD_PURGE_OUTQUEUE, SCTP_NULL()); in sctp_sf_do_dupcook_a()
1924 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_do_dupcook_a()
1926 sctp_add_cmd_sf(commands, SCTP_CMD_PURGE_ASCONF_QUEUE, SCTP_NULL()); in sctp_sf_do_dupcook_a()
1929 if (sctp_sf_do_assoc_update((struct sctp_association *)asoc, new_asoc, commands)) in sctp_sf_do_dupcook_a()
1944 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, SCTP_ULPEVENT(ev)); in sctp_sf_do_dupcook_a()
1953 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(repl)); in sctp_sf_do_dupcook_a()
1956 commands); in sctp_sf_do_dupcook_a()
1958 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE, in sctp_sf_do_dupcook_a()
1960 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(repl)); in sctp_sf_do_dupcook_a()
1983 struct sctp_cmd_seq *commands, in sctp_sf_do_dupcook_b() argument
2003 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE, in sctp_sf_do_dupcook_b()
2007 sctp_add_cmd_sf(commands, SCTP_CMD_HB_TIMERS_START, SCTP_NULL()); in sctp_sf_do_dupcook_b()
2010 if (sctp_sf_do_assoc_update((struct sctp_association *)asoc, new_asoc, commands)) in sctp_sf_do_dupcook_b()
2017 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(repl)); in sctp_sf_do_dupcook_b()
2031 sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_CHANGE, SCTP_U8(SCTP_COMM_UP)); in sctp_sf_do_dupcook_b()
2042 sctp_add_cmd_sf(commands, SCTP_CMD_ADAPTATION_IND, SCTP_NULL()); in sctp_sf_do_dupcook_b()
2045 sctp_add_cmd_sf(commands, SCTP_CMD_PEER_NO_AUTH, SCTP_NULL()); in sctp_sf_do_dupcook_b()
2067 struct sctp_cmd_seq *commands, in sctp_sf_do_dupcook_c() argument
2090 struct sctp_cmd_seq *commands, in sctp_sf_do_dupcook_d() argument
2108 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_do_dupcook_d()
2110 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE, in sctp_sf_do_dupcook_d()
2113 sctp_add_cmd_sf(commands, SCTP_CMD_HB_TIMERS_START, in sctp_sf_do_dupcook_d()
2157 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(repl)); in sctp_sf_do_dupcook_d()
2160 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, in sctp_sf_do_dupcook_d()
2163 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, in sctp_sf_do_dupcook_d()
2166 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, in sctp_sf_do_dupcook_d()
2203 struct sctp_cmd_seq *commands) in sctp_sf_do_5_2_4_dupcook() argument
2220 return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_2_4_dupcook()
2254 sctp_send_stale_cookie_err(net, ep, asoc, chunk, commands, in sctp_sf_do_5_2_4_dupcook()
2256 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_2_4_dupcook()
2259 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_2_4_dupcook()
2282 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_2_4_dupcook()
2289 retval = sctp_sf_do_dupcook_a(net, ep, asoc, chunk, commands, in sctp_sf_do_5_2_4_dupcook()
2294 retval = sctp_sf_do_dupcook_b(net, ep, asoc, chunk, commands, in sctp_sf_do_5_2_4_dupcook()
2299 retval = sctp_sf_do_dupcook_c(net, ep, asoc, chunk, commands, in sctp_sf_do_5_2_4_dupcook()
2304 retval = sctp_sf_do_dupcook_d(net, ep, asoc, chunk, commands, in sctp_sf_do_5_2_4_dupcook()
2309 retval = sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_5_2_4_dupcook()
2314 sctp_add_cmd_sf(commands, SCTP_CMD_SET_ASOC, SCTP_ASOC(new_asoc)); in sctp_sf_do_5_2_4_dupcook()
2315 sctp_add_cmd_sf(commands, SCTP_CMD_DELETE_TCB, SCTP_NULL()); in sctp_sf_do_5_2_4_dupcook()
2320 sctp_add_cmd_sf(commands, SCTP_CMD_SET_ASOC, in sctp_sf_do_5_2_4_dupcook()
2340 struct sctp_cmd_seq *commands) in sctp_sf_shutdown_pending_abort() argument
2345 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_shutdown_pending_abort()
2358 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_shutdown_pending_abort()
2367 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_shutdown_pending_abort()
2370 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_shutdown_pending_abort()
2372 return __sctp_sf_do_9_1_abort(net, ep, asoc, type, arg, commands); in sctp_sf_shutdown_pending_abort()
2386 struct sctp_cmd_seq *commands) in sctp_sf_shutdown_sent_abort() argument
2391 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_shutdown_sent_abort()
2404 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_shutdown_sent_abort()
2413 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_shutdown_sent_abort()
2416 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_shutdown_sent_abort()
2419 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_shutdown_sent_abort()
2423 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_shutdown_sent_abort()
2426 return __sctp_sf_do_9_1_abort(net, ep, asoc, type, arg, commands); in sctp_sf_shutdown_sent_abort()
2440 struct sctp_cmd_seq *commands) in sctp_sf_shutdown_ack_sent_abort() argument
2445 return sctp_sf_shutdown_sent_abort(net, ep, asoc, type, arg, commands); in sctp_sf_shutdown_ack_sent_abort()
2468 struct sctp_cmd_seq *commands) in sctp_sf_cookie_echoed_err() argument
2474 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_cookie_echoed_err()
2481 commands); in sctp_sf_cookie_echoed_err()
2491 arg, commands); in sctp_sf_cookie_echoed_err()
2499 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_cookie_echoed_err()
2533 struct sctp_cmd_seq *commands) in sctp_sf_do_5_2_6_stale() argument
2543 sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR, in sctp_sf_do_5_2_6_stale()
2545 sctp_add_cmd_sf(commands, SCTP_CMD_INIT_FAILED, in sctp_sf_do_5_2_6_stale()
2582 sctp_add_cmd_sf(commands, SCTP_CMD_CLEAR_INIT_TAG, SCTP_NULL()); in sctp_sf_do_5_2_6_stale()
2585 sctp_add_cmd_sf(commands, SCTP_CMD_T3_RTX_TIMERS_STOP, SCTP_NULL()); in sctp_sf_do_5_2_6_stale()
2586 sctp_add_cmd_sf(commands, SCTP_CMD_HB_TIMERS_STOP, SCTP_NULL()); in sctp_sf_do_5_2_6_stale()
2591 sctp_add_cmd_sf(commands, SCTP_CMD_DEL_NON_PRIMARY, SCTP_NULL()); in sctp_sf_do_5_2_6_stale()
2596 sctp_add_cmd_sf(commands, SCTP_CMD_T1_RETRAN, in sctp_sf_do_5_2_6_stale()
2602 sctp_add_cmd_sf(commands, SCTP_CMD_INIT_COUNTER_INC, SCTP_NULL()); in sctp_sf_do_5_2_6_stale()
2604 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_do_5_2_6_stale()
2606 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE, in sctp_sf_do_5_2_6_stale()
2608 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_START, in sctp_sf_do_5_2_6_stale()
2611 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(reply)); in sctp_sf_do_5_2_6_stale()
2656 struct sctp_cmd_seq *commands) in sctp_sf_do_9_1_abort() argument
2661 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_9_1_abort()
2674 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_9_1_abort()
2683 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_9_1_abort()
2686 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_9_1_abort()
2688 return __sctp_sf_do_9_1_abort(net, ep, asoc, type, arg, commands); in sctp_sf_do_9_1_abort()
2697 struct sctp_cmd_seq *commands) in __sctp_sf_do_9_1_abort() argument
2708 sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR, SCTP_ERROR(ECONNRESET)); in __sctp_sf_do_9_1_abort()
2710 sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_FAILED, SCTP_PERR(error)); in __sctp_sf_do_9_1_abort()
2728 struct sctp_cmd_seq *commands) in sctp_sf_cookie_wait_abort() argument
2735 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_cookie_wait_abort()
2748 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_cookie_wait_abort()
2755 return sctp_stop_t1_and_abort(net, commands, error, ECONNREFUSED, asoc, in sctp_sf_cookie_wait_abort()
2768 struct sctp_cmd_seq *commands) in sctp_sf_cookie_wait_icmp_abort() argument
2770 return sctp_stop_t1_and_abort(net, commands, SCTP_ERROR_NO_ERROR, in sctp_sf_cookie_wait_icmp_abort()
2784 struct sctp_cmd_seq *commands) in sctp_sf_cookie_echoed_abort() argument
2789 return sctp_sf_cookie_wait_abort(net, ep, asoc, type, arg, commands); in sctp_sf_cookie_echoed_abort()
2799 struct sctp_cmd_seq *commands, in sctp_stop_t1_and_abort() argument
2806 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE, in sctp_stop_t1_and_abort()
2809 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_stop_t1_and_abort()
2811 sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR, SCTP_ERROR(sk_err)); in sctp_stop_t1_and_abort()
2813 sctp_add_cmd_sf(commands, SCTP_CMD_INIT_FAILED, in sctp_stop_t1_and_abort()
2858 struct sctp_cmd_seq *commands) in sctp_sf_do_9_2_shutdown() argument
2867 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_9_2_shutdown()
2872 commands); in sctp_sf_do_9_2_shutdown()
2892 return sctp_sf_violation_ctsn(net, ep, asoc, type, arg, commands); in sctp_sf_do_9_2_shutdown()
2903 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, SCTP_ULPEVENT(ev)); in sctp_sf_do_9_2_shutdown()
2911 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE, in sctp_sf_do_9_2_shutdown()
2917 arg, commands); in sctp_sf_do_9_2_shutdown()
2927 sctp_add_cmd_sf(commands, SCTP_CMD_PROCESS_CTSN, in sctp_sf_do_9_2_shutdown()
2948 struct sctp_cmd_seq *commands) in sctp_sf_do_9_2_shut_ctsn() argument
2955 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_9_2_shut_ctsn()
2960 commands); in sctp_sf_do_9_2_shut_ctsn()
2977 return sctp_sf_violation_ctsn(net, ep, asoc, type, arg, commands); in sctp_sf_do_9_2_shut_ctsn()
2983 sctp_add_cmd_sf(commands, SCTP_CMD_PROCESS_CTSN, in sctp_sf_do_9_2_shut_ctsn()
3000 struct sctp_cmd_seq *commands) in __sctp_sf_do_9_2_reshutack() argument
3008 commands); in __sctp_sf_do_9_2_reshutack()
3021 sctp_add_cmd_sf(commands, SCTP_CMD_SETUP_T2, SCTP_CHUNK(reply)); in __sctp_sf_do_9_2_reshutack()
3024 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_RESTART, in __sctp_sf_do_9_2_reshutack()
3027 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(reply)); in __sctp_sf_do_9_2_reshutack()
3038 struct sctp_cmd_seq *commands) in sctp_sf_do_9_2_reshutack() argument
3043 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_9_2_reshutack()
3046 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_9_2_reshutack()
3049 return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands); in sctp_sf_do_9_2_reshutack()
3051 return __sctp_sf_do_9_2_reshutack(net, ep, asoc, type, arg, commands); in sctp_sf_do_9_2_reshutack()
3084 struct sctp_cmd_seq *commands) in sctp_sf_do_ecn_cwr() argument
3091 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_ecn_cwr()
3095 commands); in sctp_sf_do_ecn_cwr()
3105 sctp_add_cmd_sf(commands, in sctp_sf_do_ecn_cwr()
3139 void *arg, struct sctp_cmd_seq *commands) in sctp_sf_do_ecne() argument
3145 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_ecne()
3149 commands); in sctp_sf_do_ecne()
3155 sctp_add_cmd_sf(commands, SCTP_CMD_ECN_ECNE, in sctp_sf_do_ecne()
3196 struct sctp_cmd_seq *commands) in sctp_sf_eat_data_6_2() argument
3203 sctp_add_cmd_sf(commands, SCTP_CMD_REPORT_BAD_TAG, in sctp_sf_eat_data_6_2()
3205 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_eat_data_6_2()
3210 commands); in sctp_sf_eat_data_6_2()
3212 error = sctp_eat_data(asoc, chunk, commands); in sctp_sf_eat_data_6_2()
3227 return sctp_sf_abort_violation(net, ep, asoc, chunk, commands, in sctp_sf_eat_data_6_2()
3238 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_RESTART, in sctp_sf_eat_data_6_2()
3265 sctp_add_cmd_sf(commands, SCTP_CMD_GEN_SACK, force); in sctp_sf_eat_data_6_2()
3285 sctp_add_cmd_sf(commands, SCTP_CMD_GEN_SACK, SCTP_FORCE()); in sctp_sf_eat_data_6_2()
3290 sctp_add_cmd_sf(commands, SCTP_CMD_GEN_SACK, force); in sctp_sf_eat_data_6_2()
3317 struct sctp_cmd_seq *commands) in sctp_sf_eat_data_fast_4_4() argument
3323 sctp_add_cmd_sf(commands, SCTP_CMD_REPORT_BAD_TAG, in sctp_sf_eat_data_fast_4_4()
3325 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_eat_data_fast_4_4()
3330 commands); in sctp_sf_eat_data_fast_4_4()
3332 error = sctp_eat_data(asoc, chunk, commands); in sctp_sf_eat_data_fast_4_4()
3343 return sctp_sf_abort_violation(net, ep, asoc, chunk, commands, in sctp_sf_eat_data_fast_4_4()
3362 sctp_add_cmd_sf(commands, SCTP_CMD_GEN_SHUTDOWN, SCTP_NULL()); in sctp_sf_eat_data_fast_4_4()
3363 sctp_add_cmd_sf(commands, SCTP_CMD_GEN_SACK, SCTP_FORCE()); in sctp_sf_eat_data_fast_4_4()
3364 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_RESTART, in sctp_sf_eat_data_fast_4_4()
3408 struct sctp_cmd_seq *commands) in sctp_sf_eat_sack_6_2() argument
3415 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_eat_sack_6_2()
3420 commands); in sctp_sf_eat_sack_6_2()
3426 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_eat_sack_6_2()
3435 return sctp_sf_violation_ctsn(net, ep, asoc, type, arg, commands); in sctp_sf_eat_sack_6_2()
3453 sctp_add_cmd_sf(commands, SCTP_CMD_PROCESS_SACK, SCTP_CHUNK(chunk)); in sctp_sf_eat_sack_6_2()
3485 struct sctp_cmd_seq *commands) in sctp_sf_tabort_8_4_8() argument
3513 sctp_add_cmd_sf(commands, SCTP_CMD_SEND_PKT, SCTP_PACKET(packet)); in sctp_sf_tabort_8_4_8()
3517 sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_tabort_8_4_8()
3532 struct sctp_cmd_seq *commands) in sctp_sf_new_encap_port() argument
3552 sctp_add_cmd_sf(commands, SCTP_CMD_SEND_PKT, in sctp_sf_new_encap_port()
3557 sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_new_encap_port()
3574 struct sctp_cmd_seq *commands) in sctp_sf_operr_notify() argument
3580 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_operr_notify()
3585 commands); in sctp_sf_operr_notify()
3589 (void *)err, commands); in sctp_sf_operr_notify()
3591 sctp_add_cmd_sf(commands, SCTP_CMD_PROCESS_OPERR, in sctp_sf_operr_notify()
3612 struct sctp_cmd_seq *commands) in sctp_sf_do_9_2_final() argument
3619 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_9_2_final()
3624 commands); in sctp_sf_do_9_2_final()
3640 /* Do all the commands now (after allocation), so that we in sctp_sf_do_9_2_final()
3643 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, SCTP_ULPEVENT(ev)); in sctp_sf_do_9_2_final()
3648 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_do_9_2_final()
3651 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_do_9_2_final()
3654 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE, in sctp_sf_do_9_2_final()
3658 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(reply)); in sctp_sf_do_9_2_final()
3661 sctp_add_cmd_sf(commands, SCTP_CMD_DELETE_TCB, SCTP_NULL()); in sctp_sf_do_9_2_final()
3694 void *arg, struct sctp_cmd_seq *commands) in sctp_sf_ootb() argument
3714 commands); in sctp_sf_ootb()
3720 commands); in sctp_sf_ootb()
3734 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_ootb()
3757 return sctp_sf_shut_8_4_5(net, ep, asoc, type, arg, commands); in sctp_sf_ootb()
3759 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_ootb()
3761 return sctp_sf_tabort_8_4_8(net, ep, asoc, type, arg, commands); in sctp_sf_ootb()
3778 * (endpoint, asoc, type, arg, commands)
3791 struct sctp_cmd_seq *commands) in sctp_sf_shut_8_4_5() argument
3819 sctp_add_cmd_sf(commands, SCTP_CMD_SEND_PKT, in sctp_sf_shut_8_4_5()
3828 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_shut_8_4_5()
3847 struct sctp_cmd_seq *commands) in sctp_sf_do_8_5_1_E_sa() argument
3857 commands); in sctp_sf_do_8_5_1_E_sa()
3866 return sctp_sf_shut_8_4_5(net, ep, NULL, type, arg, commands); in sctp_sf_do_8_5_1_E_sa()
3875 struct sctp_cmd_seq *commands) in sctp_sf_do_asconf() argument
3884 sctp_add_cmd_sf(commands, SCTP_CMD_REPORT_BAD_TAG, in sctp_sf_do_asconf()
3886 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_asconf()
3892 commands); in sctp_sf_do_asconf()
3902 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_asconf()
3910 (void *)err_param, commands); in sctp_sf_do_asconf()
3974 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(asconf_ack)); in sctp_sf_do_asconf()
3976 sctp_sf_heartbeat(ep, asoc, type, asoc->new_transport, commands); in sctp_sf_do_asconf()
3988 struct sctp_cmd_seq *commands) in sctp_send_next_asconf() argument
4003 return sctp_sf_do_prm_asconf(net, ep, asoc, type, asconf, commands); in sctp_send_next_asconf()
4016 struct sctp_cmd_seq *commands) in sctp_sf_do_asconf_ack() argument
4026 sctp_add_cmd_sf(commands, SCTP_CMD_REPORT_BAD_TAG, in sctp_sf_do_asconf_ack()
4028 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_asconf_ack()
4035 commands); in sctp_sf_do_asconf_ack()
4045 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_asconf_ack()
4053 (void *)err_param, commands); in sctp_sf_do_asconf_ack()
4074 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, in sctp_sf_do_asconf_ack()
4080 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_do_asconf_ack()
4082 sctp_add_cmd_sf(commands, SCTP_CMD_DISCARD_PACKET, SCTP_NULL()); in sctp_sf_do_asconf_ack()
4083 sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR, in sctp_sf_do_asconf_ack()
4085 sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_FAILED, in sctp_sf_do_asconf_ack()
4093 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_do_asconf_ack()
4100 type, commands); in sctp_sf_do_asconf_ack()
4106 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, in sctp_sf_do_asconf_ack()
4112 sctp_add_cmd_sf(commands, SCTP_CMD_DISCARD_PACKET, SCTP_NULL()); in sctp_sf_do_asconf_ack()
4113 sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR, in sctp_sf_do_asconf_ack()
4115 sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_FAILED, in sctp_sf_do_asconf_ack()
4131 struct sctp_cmd_seq *commands) in sctp_sf_do_reconf() argument
4139 sctp_add_cmd_sf(commands, SCTP_CMD_REPORT_BAD_TAG, in sctp_sf_do_reconf()
4141 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_do_reconf()
4147 commands); in sctp_sf_do_reconf()
4151 (void *)err_param, commands); in sctp_sf_do_reconf()
4178 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, in sctp_sf_do_reconf()
4182 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, in sctp_sf_do_reconf()
4208 struct sctp_cmd_seq *commands) in sctp_sf_eat_fwd_tsn() argument
4216 sctp_add_cmd_sf(commands, SCTP_CMD_REPORT_BAD_TAG, in sctp_sf_eat_fwd_tsn()
4218 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_eat_fwd_tsn()
4222 return sctp_sf_unk_chunk(net, ep, asoc, type, arg, commands); in sctp_sf_eat_fwd_tsn()
4227 commands); in sctp_sf_eat_fwd_tsn()
4247 sctp_add_cmd_sf(commands, SCTP_CMD_REPORT_FWDTSN, SCTP_U32(tsn)); in sctp_sf_eat_fwd_tsn()
4249 sctp_add_cmd_sf(commands, SCTP_CMD_PROCESS_FWDTSN, in sctp_sf_eat_fwd_tsn()
4254 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_RESTART, in sctp_sf_eat_fwd_tsn()
4261 sctp_add_cmd_sf(commands, SCTP_CMD_GEN_SACK, SCTP_NOFORCE()); in sctp_sf_eat_fwd_tsn()
4275 struct sctp_cmd_seq *commands) in sctp_sf_eat_fwd_tsn_fast() argument
4283 sctp_add_cmd_sf(commands, SCTP_CMD_REPORT_BAD_TAG, in sctp_sf_eat_fwd_tsn_fast()
4285 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_eat_fwd_tsn_fast()
4289 return sctp_sf_unk_chunk(net, ep, asoc, type, arg, commands); in sctp_sf_eat_fwd_tsn_fast()
4294 commands); in sctp_sf_eat_fwd_tsn_fast()
4314 sctp_add_cmd_sf(commands, SCTP_CMD_REPORT_FWDTSN, SCTP_U32(tsn)); in sctp_sf_eat_fwd_tsn_fast()
4316 sctp_add_cmd_sf(commands, SCTP_CMD_PROCESS_FWDTSN, in sctp_sf_eat_fwd_tsn_fast()
4327 sctp_add_cmd_sf(commands, SCTP_CMD_GEN_SHUTDOWN, SCTP_NULL()); in sctp_sf_eat_fwd_tsn_fast()
4328 sctp_add_cmd_sf(commands, SCTP_CMD_GEN_SACK, SCTP_FORCE()); in sctp_sf_eat_fwd_tsn_fast()
4329 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_RESTART, in sctp_sf_eat_fwd_tsn_fast()
4436 void *arg, struct sctp_cmd_seq *commands) in sctp_sf_eat_auth() argument
4445 return sctp_sf_unk_chunk(net, ep, asoc, type, arg, commands); in sctp_sf_eat_auth()
4448 sctp_add_cmd_sf(commands, SCTP_CMD_REPORT_BAD_TAG, in sctp_sf_eat_auth()
4450 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_eat_auth()
4456 commands); in sctp_sf_eat_auth()
4470 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, in sctp_sf_eat_auth()
4476 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_eat_auth()
4480 commands); in sctp_sf_eat_auth()
4498 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, in sctp_sf_eat_auth()
4533 struct sctp_cmd_seq *commands) in sctp_sf_unk_chunk() argument
4542 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_unk_chunk()
4550 commands); in sctp_sf_unk_chunk()
4555 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_unk_chunk()
4564 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, in sctp_sf_unk_chunk()
4569 sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_unk_chunk()
4582 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, in sctp_sf_unk_chunk()
4613 struct sctp_cmd_seq *commands) in sctp_sf_discard_chunk() argument
4618 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_discard_chunk()
4626 commands); in sctp_sf_discard_chunk()
4655 void *arg, struct sctp_cmd_seq *commands) in sctp_sf_pdiscard() argument
4658 sctp_add_cmd_sf(commands, SCTP_CMD_DISCARD_PACKET, SCTP_NULL()); in sctp_sf_pdiscard()
4683 struct sctp_cmd_seq *commands) in sctp_sf_violation() argument
4688 return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); in sctp_sf_violation()
4693 commands); in sctp_sf_violation()
4706 struct sctp_cmd_seq *commands, in sctp_sf_abort_violation() argument
4746 sctp_add_cmd_sf(commands, SCTP_CMD_UPDATE_INITTAG, in sctp_sf_abort_violation()
4751 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_abort_violation()
4755 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_abort_violation()
4757 sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR, in sctp_sf_abort_violation()
4759 sctp_add_cmd_sf(commands, SCTP_CMD_INIT_FAILED, in sctp_sf_abort_violation()
4762 sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR, in sctp_sf_abort_violation()
4764 sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_FAILED, in sctp_sf_abort_violation()
4781 sctp_add_cmd_sf(commands, SCTP_CMD_SEND_PKT, in sctp_sf_abort_violation()
4790 sctp_sf_pdiscard(net, ep, asoc, SCTP_ST_CHUNK(0), arg, commands); in sctp_sf_abort_violation()
4824 struct sctp_cmd_seq *commands) in sctp_sf_violation_chunklen() argument
4828 return sctp_sf_abort_violation(net, ep, asoc, arg, commands, err_str, in sctp_sf_violation_chunklen()
4844 struct sctp_cmd_seq *commands) in sctp_sf_violation_paramlen() argument
4858 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_violation_paramlen()
4861 sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR, in sctp_sf_violation_paramlen()
4863 sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_FAILED, in sctp_sf_violation_paramlen()
4869 sctp_sf_pdiscard(net, ep, asoc, SCTP_ST_CHUNK(0), arg, commands); in sctp_sf_violation_paramlen()
4887 struct sctp_cmd_seq *commands) in sctp_sf_violation_ctsn() argument
4891 return sctp_sf_abort_violation(net, ep, asoc, arg, commands, err_str, in sctp_sf_violation_ctsn()
4907 struct sctp_cmd_seq *commands) in sctp_sf_violation_chunk() argument
4911 return sctp_sf_abort_violation(net, ep, asoc, arg, commands, err_str, in sctp_sf_violation_chunk()
4979 struct sctp_cmd_seq *commands) in sctp_sf_do_prm_asoc() argument
4988 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE, in sctp_sf_do_prm_asoc()
5004 sctp_add_cmd_sf(commands, SCTP_CMD_INIT_CHOOSE_TRANSPORT, in sctp_sf_do_prm_asoc()
5011 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_ASOC, SCTP_ASOC(my_asoc)); in sctp_sf_do_prm_asoc()
5016 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_START, in sctp_sf_do_prm_asoc()
5018 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(repl)); in sctp_sf_do_prm_asoc()
5091 struct sctp_cmd_seq *commands) in sctp_sf_do_prm_send() argument
5095 sctp_add_cmd_sf(commands, SCTP_CMD_SEND_MSG, SCTP_DATAMSG(msg)); in sctp_sf_do_prm_send()
5131 struct sctp_cmd_seq *commands) in sctp_sf_do_9_2_prm_shutdown() argument
5143 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE, in sctp_sf_do_9_2_prm_shutdown()
5149 arg, commands); in sctp_sf_do_9_2_prm_shutdown()
5188 struct sctp_cmd_seq *commands) in sctp_sf_do_9_1_prm_abort() argument
5201 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); in sctp_sf_do_9_1_prm_abort()
5207 sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR, in sctp_sf_do_9_1_prm_abort()
5210 sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_FAILED, in sctp_sf_do_9_1_prm_abort()
5225 struct sctp_cmd_seq *commands) in sctp_sf_error_closed() argument
5227 sctp_add_cmd_sf(commands, SCTP_CMD_REPORT_ERROR, SCTP_ERROR(-EINVAL)); in sctp_sf_error_closed()
5240 struct sctp_cmd_seq *commands) in sctp_sf_error_shutdown() argument
5242 sctp_add_cmd_sf(commands, SCTP_CMD_REPORT_ERROR, in sctp_sf_error_shutdown()
5267 struct sctp_cmd_seq *commands) in sctp_sf_cookie_wait_prm_shutdown() argument
5269 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_cookie_wait_prm_shutdown()
5272 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE, in sctp_sf_cookie_wait_prm_shutdown()
5277 sctp_add_cmd_sf(commands, SCTP_CMD_DELETE_TCB, SCTP_NULL()); in sctp_sf_cookie_wait_prm_shutdown()
5302 struct sctp_cmd_seq *commands) in sctp_sf_cookie_echoed_prm_shutdown() argument
5307 return sctp_sf_cookie_wait_prm_shutdown(net, ep, asoc, type, arg, commands); in sctp_sf_cookie_echoed_prm_shutdown()
5330 struct sctp_cmd_seq *commands) in sctp_sf_cookie_wait_prm_abort() argument
5335 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, 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()
5341 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE, in sctp_sf_cookie_wait_prm_abort()
5350 sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR, in sctp_sf_cookie_wait_prm_abort()
5353 sctp_add_cmd_sf(commands, SCTP_CMD_INIT_FAILED, in sctp_sf_cookie_wait_prm_abort()
5379 struct sctp_cmd_seq *commands) in sctp_sf_cookie_echoed_prm_abort() argument
5384 return sctp_sf_cookie_wait_prm_abort(net, ep, asoc, type, arg, commands); in sctp_sf_cookie_echoed_prm_abort()
5405 struct sctp_cmd_seq *commands) in sctp_sf_shutdown_pending_prm_abort() argument
5408 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_shutdown_pending_prm_abort()
5411 return sctp_sf_do_9_1_prm_abort(net, ep, asoc, type, arg, commands); in sctp_sf_shutdown_pending_prm_abort()
5432 struct sctp_cmd_seq *commands) in sctp_sf_shutdown_sent_prm_abort() argument
5435 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_shutdown_sent_prm_abort()
5439 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_shutdown_sent_prm_abort()
5442 return sctp_sf_do_9_1_prm_abort(net, ep, asoc, type, arg, commands); in sctp_sf_shutdown_sent_prm_abort()
5463 struct sctp_cmd_seq *commands) in sctp_sf_shutdown_ack_sent_prm_abort() argument
5468 return sctp_sf_shutdown_sent_prm_abort(net, ep, asoc, type, arg, commands); in sctp_sf_shutdown_ack_sent_prm_abort()
5499 struct sctp_cmd_seq *commands) in sctp_sf_do_prm_requestheartbeat() argument
5502 (struct sctp_transport *)arg, commands)) in sctp_sf_do_prm_requestheartbeat()
5516 sctp_add_cmd_sf(commands, SCTP_CMD_TRANSPORT_HB_SENT, in sctp_sf_do_prm_requestheartbeat()
5531 struct sctp_cmd_seq *commands) in sctp_sf_do_prm_asconf() argument
5535 sctp_add_cmd_sf(commands, SCTP_CMD_SETUP_T4, SCTP_CHUNK(chunk)); in sctp_sf_do_prm_asconf()
5536 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_START, in sctp_sf_do_prm_asconf()
5538 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(chunk)); in sctp_sf_do_prm_asconf()
5548 struct sctp_cmd_seq *commands) in sctp_sf_do_prm_reconf() argument
5552 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(chunk)); in sctp_sf_do_prm_reconf()
5567 struct sctp_cmd_seq *commands) in sctp_sf_ignore_primitive() argument
5591 struct sctp_cmd_seq *commands) in sctp_sf_do_no_pending_tsn() argument
5599 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, SCTP_ULPEVENT(event)); in sctp_sf_do_no_pending_tsn()
5623 struct sctp_cmd_seq *commands) in sctp_sf_do_9_2_start_shutdown() argument
5639 sctp_add_cmd_sf(commands, SCTP_CMD_SETUP_T2, SCTP_CHUNK(reply)); in sctp_sf_do_9_2_start_shutdown()
5642 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_START, in sctp_sf_do_9_2_start_shutdown()
5649 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_RESTART, in sctp_sf_do_9_2_start_shutdown()
5653 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_do_9_2_start_shutdown()
5657 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE, in sctp_sf_do_9_2_start_shutdown()
5665 sctp_add_cmd_sf(commands, SCTP_CMD_HB_TIMERS_STOP, SCTP_NULL()); in sctp_sf_do_9_2_start_shutdown()
5667 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(reply)); in sctp_sf_do_9_2_start_shutdown()
5693 struct sctp_cmd_seq *commands) in sctp_sf_do_9_2_shutdown_ack() argument
5708 commands); in sctp_sf_do_9_2_shutdown_ack()
5714 arg, commands); in sctp_sf_do_9_2_shutdown_ack()
5727 sctp_add_cmd_sf(commands, SCTP_CMD_SETUP_T2, SCTP_CHUNK(reply)); in sctp_sf_do_9_2_shutdown_ack()
5730 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_RESTART, in sctp_sf_do_9_2_shutdown_ack()
5734 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_do_9_2_shutdown_ack()
5738 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE, in sctp_sf_do_9_2_shutdown_ack()
5746 sctp_add_cmd_sf(commands, SCTP_CMD_HB_TIMERS_STOP, SCTP_NULL()); in sctp_sf_do_9_2_shutdown_ack()
5748 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(reply)); in sctp_sf_do_9_2_shutdown_ack()
5766 struct sctp_cmd_seq *commands) in sctp_sf_ignore_other() argument
5794 struct sctp_cmd_seq *commands) in sctp_sf_do_6_3_3_rtx() argument
5812 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_START_ONCE, in sctp_sf_do_6_3_3_rtx()
5815 sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR, in sctp_sf_do_6_3_3_rtx()
5818 sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_FAILED, in sctp_sf_do_6_3_3_rtx()
5854 sctp_add_cmd_sf(commands, SCTP_CMD_STRIKE, SCTP_TRANSPORT(transport)); in sctp_sf_do_6_3_3_rtx()
5857 sctp_add_cmd_sf(commands, SCTP_CMD_RETRAN, SCTP_TRANSPORT(transport)); in sctp_sf_do_6_3_3_rtx()
5882 struct sctp_cmd_seq *commands) in sctp_sf_do_6_2_sack() argument
5885 sctp_add_cmd_sf(commands, SCTP_CMD_GEN_SACK, SCTP_FORCE()); in sctp_sf_do_6_2_sack()
5914 struct sctp_cmd_seq *commands) in sctp_sf_t1_init_timer_expire() argument
5931 sctp_add_cmd_sf(commands, SCTP_CMD_INIT_CHOOSE_TRANSPORT, in sctp_sf_t1_init_timer_expire()
5935 sctp_add_cmd_sf(commands, SCTP_CMD_INIT_RESTART, in sctp_sf_t1_init_timer_expire()
5938 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(repl)); in sctp_sf_t1_init_timer_expire()
5944 sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR, in sctp_sf_t1_init_timer_expire()
5946 sctp_add_cmd_sf(commands, SCTP_CMD_INIT_FAILED, in sctp_sf_t1_init_timer_expire()
5979 struct sctp_cmd_seq *commands) in sctp_sf_t1_cookie_timer_expire() argument
5993 sctp_add_cmd_sf(commands, SCTP_CMD_INIT_CHOOSE_TRANSPORT, in sctp_sf_t1_cookie_timer_expire()
5996 sctp_add_cmd_sf(commands, SCTP_CMD_COOKIEECHO_RESTART, in sctp_sf_t1_cookie_timer_expire()
5999 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(repl)); in sctp_sf_t1_cookie_timer_expire()
6001 sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR, in sctp_sf_t1_cookie_timer_expire()
6003 sctp_add_cmd_sf(commands, SCTP_CMD_INIT_FAILED, in sctp_sf_t1_cookie_timer_expire()
6030 struct sctp_cmd_seq *commands) in sctp_sf_t2_timer_expire() argument
6041 sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR, in sctp_sf_t2_timer_expire()
6044 sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_FAILED, in sctp_sf_t2_timer_expire()
6073 sctp_add_cmd_sf(commands, SCTP_CMD_STRIKE, in sctp_sf_t2_timer_expire()
6079 sctp_add_cmd_sf(commands, SCTP_CMD_SETUP_T2, SCTP_CHUNK(reply)); in sctp_sf_t2_timer_expire()
6082 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_RESTART, in sctp_sf_t2_timer_expire()
6084 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(reply)); in sctp_sf_t2_timer_expire()
6101 struct sctp_cmd_seq *commands) in sctp_sf_t4_timer_expire() argument
6113 sctp_add_cmd_sf(commands, SCTP_CMD_STRIKE, in sctp_sf_t4_timer_expire()
6117 sctp_add_cmd_sf(commands, SCTP_CMD_SETUP_T4, SCTP_CHUNK(chunk)); in sctp_sf_t4_timer_expire()
6125 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, in sctp_sf_t4_timer_expire()
6127 sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR, in sctp_sf_t4_timer_expire()
6129 sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_FAILED, in sctp_sf_t4_timer_expire()
6148 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, in sctp_sf_t4_timer_expire()
6155 sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_RESTART, in sctp_sf_t4_timer_expire()
6173 struct sctp_cmd_seq *commands) in sctp_sf_t5_timer_expire() argument
6185 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(reply)); in sctp_sf_t5_timer_expire()
6186 sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR, in sctp_sf_t5_timer_expire()
6188 sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_FAILED, in sctp_sf_t5_timer_expire()
6210 struct sctp_cmd_seq *commands) in sctp_sf_autoclose_timer_expire() argument
6224 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE, in sctp_sf_autoclose_timer_expire()
6230 NULL, commands); in sctp_sf_autoclose_timer_expire()
6252 void *arg, struct sctp_cmd_seq *commands) in sctp_sf_not_impl() argument
6269 void *arg, struct sctp_cmd_seq *commands) in sctp_sf_bug() argument
6290 struct sctp_cmd_seq *commands) in sctp_sf_timer_ignore() argument
6459 struct sctp_cmd_seq *commands, in sctp_send_stale_cookie_err() argument
6476 sctp_add_cmd_sf(commands, SCTP_CMD_SEND_PKT, in sctp_send_stale_cookie_err()
6488 struct sctp_cmd_seq *commands) in sctp_eat_data() argument
6525 sctp_add_cmd_sf(commands, SCTP_CMD_ECN_CE, in sctp_eat_data()
6540 sctp_add_cmd_sf(commands, SCTP_CMD_REPORT_DUP, SCTP_U32(tsn)); in sctp_eat_data()
6560 sctp_add_cmd_sf(commands, SCTP_CMD_PART_DELIVER, SCTP_NULL()); in sctp_eat_data()
6616 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, in sctp_eat_data()
6622 sctp_add_cmd_sf(commands, SCTP_CMD_DISCARD_PACKET, SCTP_NULL()); in sctp_eat_data()
6623 sctp_add_cmd_sf(commands, SCTP_CMD_SET_SK_ERR, in sctp_eat_data()
6625 sctp_add_cmd_sf(commands, SCTP_CMD_ASSOC_FAILED, in sctp_eat_data()
6657 sctp_add_cmd_sf(commands, SCTP_CMD_REPORT_TSN, SCTP_U32(tsn)); in sctp_eat_data()
6664 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, in sctp_eat_data()
6683 sctp_add_cmd_sf(commands, deliver, SCTP_CHUNK(chunk)); in sctp_eat_data()