net: tcp2: Readability rename of TCP_FIN_WAIT states
In order to improve readability, rename TCP_FIN_WAIT states into TCP_FIN_WAIT_1, TCP_FIN_WAIT_2. Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
This commit is contained in:
parent
40ee38a945
commit
3dc72dffb0
2 changed files with 6 additions and 6 deletions
|
@ -348,8 +348,8 @@ static const char *tcp_state_to_str(enum tcp_state state, bool prefix)
|
||||||
_(TCP_SYN_SENT);
|
_(TCP_SYN_SENT);
|
||||||
_(TCP_SYN_RECEIVED);
|
_(TCP_SYN_RECEIVED);
|
||||||
_(TCP_ESTABLISHED);
|
_(TCP_ESTABLISHED);
|
||||||
_(TCP_FIN_WAIT1);
|
_(TCP_FIN_WAIT_1);
|
||||||
_(TCP_FIN_WAIT2);
|
_(TCP_FIN_WAIT_2);
|
||||||
_(TCP_CLOSE_WAIT);
|
_(TCP_CLOSE_WAIT);
|
||||||
_(TCP_CLOSING);
|
_(TCP_CLOSING);
|
||||||
_(TCP_LAST_ACK);
|
_(TCP_LAST_ACK);
|
||||||
|
@ -919,8 +919,8 @@ next_state:
|
||||||
break;
|
break;
|
||||||
case TCP_TIME_WAIT:
|
case TCP_TIME_WAIT:
|
||||||
case TCP_CLOSING:
|
case TCP_CLOSING:
|
||||||
case TCP_FIN_WAIT1:
|
case TCP_FIN_WAIT_1:
|
||||||
case TCP_FIN_WAIT2:
|
case TCP_FIN_WAIT_2:
|
||||||
default:
|
default:
|
||||||
NET_ASSERT(false, "%s is unimplemented",
|
NET_ASSERT(false, "%s is unimplemented",
|
||||||
tcp_state_to_str(conn->state, true));
|
tcp_state_to_str(conn->state, true));
|
||||||
|
|
|
@ -105,8 +105,8 @@ enum tcp_state {
|
||||||
TCP_SYN_SENT,
|
TCP_SYN_SENT,
|
||||||
TCP_SYN_RECEIVED,
|
TCP_SYN_RECEIVED,
|
||||||
TCP_ESTABLISHED,
|
TCP_ESTABLISHED,
|
||||||
TCP_FIN_WAIT1,
|
TCP_FIN_WAIT_1,
|
||||||
TCP_FIN_WAIT2,
|
TCP_FIN_WAIT_2,
|
||||||
TCP_CLOSE_WAIT,
|
TCP_CLOSE_WAIT,
|
||||||
TCP_CLOSING,
|
TCP_CLOSING,
|
||||||
TCP_LAST_ACK,
|
TCP_LAST_ACK,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue