Add test cases for session manager (session state machine)

This commit is contained in:
luwenpeng
2023-12-21 18:07:52 +08:00
parent 2c26879182
commit cd47b46e7a
4 changed files with 2260 additions and 67 deletions

View File

@@ -22,16 +22,15 @@ enum tcp_ex_data
// HANDSHAKE
TCP_SYN_RECVED = 1 << 0,
TCP_SYNACK_RECVED = 1 << 1,
TCP_ACK_RECVED = 1 << 2,
// ESTABLISHED
TCP_C2S_PAYLOAD_RECVED = 1 << 3,
TCP_S2C_PAYLOAD_RECVED = 1 << 4,
TCP_C2S_PAYLOAD_RECVED = 1 << 2,
TCP_S2C_PAYLOAD_RECVED = 1 << 3,
// FIN
TCP_C2S_FIN_RECVED = 1 << 5,
TCP_S2C_FIN_RECVED = 1 << 6,
TCP_C2S_FIN_RECVED = 1 << 4,
TCP_S2C_FIN_RECVED = 1 << 5,
// RST
TCP_C2S_RST_RECVED = 1 << 7,
TCP_S2C_RST_RECVED = 1 << 8,
TCP_C2S_RST_RECVED = 1 << 6,
TCP_S2C_RST_RECVED = 1 << 7,
};
enum udp_ex_data