update session finite state machine & add tcp init -> opening test case

This commit is contained in:
luwenpeng
2024-01-23 14:30:46 +08:00
parent 4fbafab4e3
commit 1f668b1a01
16 changed files with 2049 additions and 1021 deletions

View File

@@ -25,7 +25,7 @@ struct config
.enable = 1,
.capacity = 1000000,
.error_rate = 0.00001,
.expiry_time = 10,
.expiry_time = 3,
};
struct packet_idetify idetify = {
@@ -47,7 +47,7 @@ TEST(DABLOOMS, TEST)
EXPECT_TRUE(expiry_dablooms_search(handle, (const char *)&idetify, sizeof(idetify), time(NULL)) != 1); // no exist
EXPECT_TRUE(expiry_dablooms_add(handle, (const char *)&idetify, sizeof(idetify), time(NULL)) == 0); // add
for (int i = 0; i < 15; i++)
for (int i = 0; i < 5; i++)
{
if (i < config.expiry_time)
{