add tcp init -> opening -> active -> closing -> closed test case

This commit is contained in:
luwenpeng
2024-01-24 11:19:57 +08:00
parent 73b2bce8cf
commit bbec791d6b
9 changed files with 444 additions and 1673 deletions

View File

@@ -1,6 +1,6 @@
// TCP state machine test: opening -> active
#include "test_state_machine.h"
#include "test_utils.h"
/******************************************************************************
* case: TCP opening -> active (by C2S DATA)
@@ -19,7 +19,7 @@ TEST(TCP_OPENING_TO_ACTIVE, BY_SYN_C2S_DATA)
mgr = session_manager_create(&config);
EXPECT_TRUE(mgr != NULL);
// SYN Packet
// C2S SYN Packet
printf("=> packet parse: TCP C2S SYN packet\n");
packet_parse(&pkt, (const char *)tcp_pkt1_c2s_syn, sizeof(tcp_pkt1_c2s_syn));
printf("<= packet parse\n\n");