diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2007-12-20 17:11:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:59:22 -0500 |
commit | ba8a06daed7d7c8785c92c343da9e202e6988fda (patch) | |
tree | f7a97e5eb365bfa3bb1558435260bfe8f56af8b9 /net/sctp/sm_statetable.c | |
parent | df21857714398acb8b24a8bb5a6d2286dd9c59ef (diff) |
[SCTP]: ADD-IP updates the states where ASCONFs can be sent
C4) Both ASCONF and ASCONF-ACK Chunks MUST NOT be sent in any SCTP
state except ESTABLISHED, SHUTDOWN-PENDING, SHUTDOWN-RECEIVED,
and SHUTDOWN-SENT.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/sm_statetable.c')
-rw-r--r-- | net/sctp/sm_statetable.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/net/sctp/sm_statetable.c b/net/sctp/sm_statetable.c index a93a4bc8f68f..e6016e41ffa0 100644 --- a/net/sctp/sm_statetable.c +++ b/net/sctp/sm_statetable.c | |||
@@ -457,11 +457,11 @@ static const sctp_sm_table_entry_t chunk_event_table[SCTP_NUM_BASE_CHUNK_TYPES][ | |||
457 | /* SCTP_STATE_ESTABLISHED */ \ | 457 | /* SCTP_STATE_ESTABLISHED */ \ |
458 | TYPE_SCTP_FUNC(sctp_sf_do_asconf), \ | 458 | TYPE_SCTP_FUNC(sctp_sf_do_asconf), \ |
459 | /* SCTP_STATE_SHUTDOWN_PENDING */ \ | 459 | /* SCTP_STATE_SHUTDOWN_PENDING */ \ |
460 | TYPE_SCTP_FUNC(sctp_sf_discard_chunk), \ | 460 | TYPE_SCTP_FUNC(sctp_sf_do_asconf), \ |
461 | /* SCTP_STATE_SHUTDOWN_SENT */ \ | 461 | /* SCTP_STATE_SHUTDOWN_SENT */ \ |
462 | TYPE_SCTP_FUNC(sctp_sf_discard_chunk), \ | 462 | TYPE_SCTP_FUNC(sctp_sf_do_asconf), \ |
463 | /* SCTP_STATE_SHUTDOWN_RECEIVED */ \ | 463 | /* SCTP_STATE_SHUTDOWN_RECEIVED */ \ |
464 | TYPE_SCTP_FUNC(sctp_sf_discard_chunk), \ | 464 | TYPE_SCTP_FUNC(sctp_sf_do_asconf), \ |
465 | /* SCTP_STATE_SHUTDOWN_ACK_SENT */ \ | 465 | /* SCTP_STATE_SHUTDOWN_ACK_SENT */ \ |
466 | TYPE_SCTP_FUNC(sctp_sf_discard_chunk), \ | 466 | TYPE_SCTP_FUNC(sctp_sf_discard_chunk), \ |
467 | } /* TYPE_SCTP_ASCONF */ | 467 | } /* TYPE_SCTP_ASCONF */ |
@@ -478,11 +478,11 @@ static const sctp_sm_table_entry_t chunk_event_table[SCTP_NUM_BASE_CHUNK_TYPES][ | |||
478 | /* SCTP_STATE_ESTABLISHED */ \ | 478 | /* SCTP_STATE_ESTABLISHED */ \ |
479 | TYPE_SCTP_FUNC(sctp_sf_do_asconf_ack), \ | 479 | TYPE_SCTP_FUNC(sctp_sf_do_asconf_ack), \ |
480 | /* SCTP_STATE_SHUTDOWN_PENDING */ \ | 480 | /* SCTP_STATE_SHUTDOWN_PENDING */ \ |
481 | TYPE_SCTP_FUNC(sctp_sf_discard_chunk), \ | 481 | TYPE_SCTP_FUNC(sctp_sf_do_asconf_ack), \ |
482 | /* SCTP_STATE_SHUTDOWN_SENT */ \ | 482 | /* SCTP_STATE_SHUTDOWN_SENT */ \ |
483 | TYPE_SCTP_FUNC(sctp_sf_discard_chunk), \ | 483 | TYPE_SCTP_FUNC(sctp_sf_do_asconf_ack), \ |
484 | /* SCTP_STATE_SHUTDOWN_RECEIVED */ \ | 484 | /* SCTP_STATE_SHUTDOWN_RECEIVED */ \ |
485 | TYPE_SCTP_FUNC(sctp_sf_discard_chunk), \ | 485 | TYPE_SCTP_FUNC(sctp_sf_do_asconf_ack), \ |
486 | /* SCTP_STATE_SHUTDOWN_ACK_SENT */ \ | 486 | /* SCTP_STATE_SHUTDOWN_ACK_SENT */ \ |
487 | TYPE_SCTP_FUNC(sctp_sf_discard_chunk), \ | 487 | TYPE_SCTP_FUNC(sctp_sf_discard_chunk), \ |
488 | } /* TYPE_SCTP_ASCONF_ACK */ | 488 | } /* TYPE_SCTP_ASCONF_ACK */ |
@@ -691,11 +691,11 @@ chunk_event_table_unknown[SCTP_STATE_NUM_STATES] = { | |||
691 | /* SCTP_STATE_ESTABLISHED */ \ | 691 | /* SCTP_STATE_ESTABLISHED */ \ |
692 | TYPE_SCTP_FUNC(sctp_sf_do_prm_asconf), \ | 692 | TYPE_SCTP_FUNC(sctp_sf_do_prm_asconf), \ |
693 | /* SCTP_STATE_SHUTDOWN_PENDING */ \ | 693 | /* SCTP_STATE_SHUTDOWN_PENDING */ \ |
694 | TYPE_SCTP_FUNC(sctp_sf_error_shutdown), \ | 694 | TYPE_SCTP_FUNC(sctp_sf_do_prm_asconf), \ |
695 | /* SCTP_STATE_SHUTDOWN_SENT */ \ | 695 | /* SCTP_STATE_SHUTDOWN_SENT */ \ |
696 | TYPE_SCTP_FUNC(sctp_sf_error_shutdown), \ | 696 | TYPE_SCTP_FUNC(sctp_sf_do_prm_asconf), \ |
697 | /* SCTP_STATE_SHUTDOWN_RECEIVED */ \ | 697 | /* SCTP_STATE_SHUTDOWN_RECEIVED */ \ |
698 | TYPE_SCTP_FUNC(sctp_sf_error_shutdown), \ | 698 | TYPE_SCTP_FUNC(sctp_sf_do_prm_asconf), \ |
699 | /* SCTP_STATE_SHUTDOWN_ACK_SENT */ \ | 699 | /* SCTP_STATE_SHUTDOWN_ACK_SENT */ \ |
700 | TYPE_SCTP_FUNC(sctp_sf_error_shutdown), \ | 700 | TYPE_SCTP_FUNC(sctp_sf_error_shutdown), \ |
701 | } /* TYPE_SCTP_PRIMITIVE_REQUESTHEARTBEAT */ | 701 | } /* TYPE_SCTP_PRIMITIVE_REQUESTHEARTBEAT */ |