perf: rename addr_tuple4 to four_tuple
This commit is contained in:
@@ -101,10 +101,10 @@ TEST(STREAM_TABLE, SEARCH_BY_REVERSE_ADDR)
|
||||
char *val_world = strdup("WORLD");
|
||||
INIT_ADDR_V4(addr1, "1.2.3.4", 1234, "4.3.2.1", 4321);
|
||||
INIT_ADDR_V6(addr2, "2:3:4::5", 2345, "5:4:3::2", 5342);
|
||||
struct addr_tuple4 addr1_reverse;
|
||||
struct addr_tuple4 addr2_reverse;
|
||||
addr_tuple4_reverse(&addr1, &addr1_reverse);
|
||||
addr_tuple4_reverse(&addr2, &addr2_reverse);
|
||||
struct four_tuple addr1_reverse;
|
||||
struct four_tuple addr2_reverse;
|
||||
four_tuple_reverse(&addr1, &addr1_reverse);
|
||||
four_tuple_reverse(&addr2, &addr2_reverse);
|
||||
|
||||
// TEST Insert
|
||||
EXPECT_TRUE(session_table_insert(table, 1, &addr1, val_hello, free) == 0);
|
||||
@@ -134,10 +134,10 @@ TEST(STREAM_TABLE, DELETE_BY_ID)
|
||||
char *val_world = strdup("WORLD");
|
||||
INIT_ADDR_V4(addr1, "1.2.3.4", 1234, "4.3.2.1", 4321);
|
||||
INIT_ADDR_V6(addr2, "2:3:4::5", 2345, "5:4:3::2", 5342);
|
||||
struct addr_tuple4 addr1_reverse;
|
||||
struct addr_tuple4 addr2_reverse;
|
||||
addr_tuple4_reverse(&addr1, &addr1_reverse);
|
||||
addr_tuple4_reverse(&addr2, &addr2_reverse);
|
||||
struct four_tuple addr1_reverse;
|
||||
struct four_tuple addr2_reverse;
|
||||
four_tuple_reverse(&addr1, &addr1_reverse);
|
||||
four_tuple_reverse(&addr2, &addr2_reverse);
|
||||
|
||||
// TEST Insert
|
||||
EXPECT_TRUE(session_table_insert(table, 1, &addr1, val_hello, free) == 0);
|
||||
@@ -171,10 +171,10 @@ TEST(STREAM_TABLE, DELETE_BY_ADDR)
|
||||
char *val_world = strdup("WORLD");
|
||||
INIT_ADDR_V4(addr1, "1.2.3.4", 1234, "4.3.2.1", 4321);
|
||||
INIT_ADDR_V6(addr2, "2:3:4::5", 2345, "5:4:3::2", 5342);
|
||||
struct addr_tuple4 addr1_reverse;
|
||||
struct addr_tuple4 addr2_reverse;
|
||||
addr_tuple4_reverse(&addr1, &addr1_reverse);
|
||||
addr_tuple4_reverse(&addr2, &addr2_reverse);
|
||||
struct four_tuple addr1_reverse;
|
||||
struct four_tuple addr2_reverse;
|
||||
four_tuple_reverse(&addr1, &addr1_reverse);
|
||||
four_tuple_reverse(&addr2, &addr2_reverse);
|
||||
|
||||
// TEST Insert
|
||||
EXPECT_TRUE(session_table_insert(table, 1, &addr1, val_hello, free) == 0);
|
||||
@@ -208,10 +208,10 @@ TEST(STREAM_TABLE, DELETE_BY_REVERSE_ADDR)
|
||||
char *val_world = strdup("WORLD");
|
||||
INIT_ADDR_V4(addr1, "1.2.3.4", 1234, "4.3.2.1", 4321);
|
||||
INIT_ADDR_V6(addr2, "2:3:4::5", 2345, "5:4:3::2", 5342);
|
||||
struct addr_tuple4 addr1_reverse;
|
||||
struct addr_tuple4 addr2_reverse;
|
||||
addr_tuple4_reverse(&addr1, &addr1_reverse);
|
||||
addr_tuple4_reverse(&addr2, &addr2_reverse);
|
||||
struct four_tuple addr1_reverse;
|
||||
struct four_tuple addr2_reverse;
|
||||
four_tuple_reverse(&addr1, &addr1_reverse);
|
||||
four_tuple_reverse(&addr2, &addr2_reverse);
|
||||
|
||||
// TEST Insert
|
||||
EXPECT_TRUE(session_table_insert(table, 1, &addr1, val_hello, free) == 0);
|
||||
|
||||
Reference in New Issue
Block a user