Refactored packet API to support struct layer (using union to contain different types of encapsulation headers)

This commit is contained in:
luwenpeng
2024-06-14 19:24:27 +08:00
parent 1f78881cbb
commit de4c15f43c
47 changed files with 834 additions and 701 deletions

View File

@@ -309,6 +309,7 @@ TEST(CASE, TCP_FAST_OPEN)
// C2S SYN Packet
printf("\n=> Packet Parse: TCP C2S fast open packet\n");
memset(&pkt, 0, sizeof(pkt));
packet_parse(&pkt, (const char *)tcp_fast_open_pkt, sizeof(tcp_fast_open_pkt));
printf("<= Packet Parse: done\n\n");