commit | b5a31dcb495b6b296db4b7336e3a3923dd5de8a4 | [log] [tgz] |
---|---|---|
author | Shrek Wang <inet_eman@outlook.com> | Fri May 23 11:41:22 2025 +0800 |
committer | Benjamin Cabé <kartben@gmail.com> | Tue May 27 06:51:46 2025 +0200 |
tree | 5db04ecf8959af8b382268afb2906f83990bd6cb | |
parent | dc7b6a0c82372293739f4295cd07eb7aeaec1fc7 [diff] |
net: tcp: Move the CLOSED state to the front In enum tcp_state {}, the CLOSED state was put at the last one. When we do Sequence & Ack validation, we will need to skip the CLOSED, LISTEN, SYNSENT states. It is easier for coding if we put the CLOSED to the front, e.g. if state > SYNSENT. And, in other OSes, the state sequence is normally defined like this. Signed-off-by: Shrek Wang <inet_eman@outlook.com>