TFE Packet IO支持带封装报文格式

This commit is contained in:
wangmenglan
2023-05-26 18:50:18 +08:00
parent f00ef65963
commit 4d26281338
14 changed files with 1577 additions and 156 deletions

View File

@@ -7,6 +7,7 @@ extern "C"
#endif
#include "tfe_addr_tuple4.h"
#include "tfe_packet_io_fs.h"
struct tap_ctx
{
@@ -50,12 +51,16 @@ struct packet_info
char *header_data;
int header_len;
int is_ipv4;
struct throughput_metrics rx;
};
struct session_ctx
{
int policy_ids;
uint64_t session_id;
uint8_t is_passthrough;
char *session_addr;
char client_mac[6];