Use the userland exported states and handle them completely.
This commit is contained in:
parent
9053fe148b
commit
0835304fea
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=287284
@ -614,25 +614,34 @@ sctp_statesprint(uint32_t state)
|
||||
int idx;
|
||||
|
||||
switch (state) {
|
||||
case SCTP_STATE_COOKIE_WAIT:
|
||||
case SCTP_CLOSED:
|
||||
idx = NETSTAT_SCTP_STATES_CLOSED;
|
||||
break;
|
||||
case SCTP_BOUND:
|
||||
idx = NETSTAT_SCTP_STATES_BOUND;
|
||||
break;
|
||||
case SCTP_LISTEN:
|
||||
idx = NETSTAT_SCTP_STATES_LISTEN;
|
||||
break;
|
||||
case SCTP_COOKIE_WAIT:
|
||||
idx = NETSTAT_SCTP_STATES_COOKIE_WAIT;
|
||||
break;
|
||||
case SCTP_STATE_COOKIE_ECHOED:
|
||||
case SCTP_COOKIE_ECHOED:
|
||||
idx = NETSTAT_SCTP_STATES_COOKIE_ECHOED;
|
||||
break;
|
||||
case SCTP_STATE_OPEN:
|
||||
case SCTP_ESTABLISHED:
|
||||
idx = NETSTAT_SCTP_STATES_ESTABLISHED;
|
||||
break;
|
||||
case SCTP_STATE_SHUTDOWN_SENT:
|
||||
case SCTP_SHUTDOWN_SENT:
|
||||
idx = NETSTAT_SCTP_STATES_SHUTDOWN_SENT;
|
||||
break;
|
||||
case SCTP_STATE_SHUTDOWN_RECEIVED:
|
||||
case SCTP_SHUTDOWN_RECEIVED:
|
||||
idx = NETSTAT_SCTP_STATES_SHUTDOWN_RECEIVED;
|
||||
break;
|
||||
case SCTP_STATE_SHUTDOWN_ACK_SENT:
|
||||
case SCTP_SHUTDOWN_ACK_SENT:
|
||||
idx = NETSTAT_SCTP_STATES_SHUTDOWN_ACK_SENT;
|
||||
break;
|
||||
case SCTP_STATE_SHUTDOWN_PENDING:
|
||||
case SCTP_SHUTDOWN_PENDING:
|
||||
idx = NETSTAT_SCTP_STATES_SHUTDOWN_PENDING;
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user