Add test case for tunnel

This commit is contained in:
luwenpeng
2024-06-19 14:43:32 +08:00
parent 327d6e7b14
commit c3fd452793
17 changed files with 933 additions and 138 deletions

View File

@@ -1,7 +1,7 @@
#include "packet_priv.h"
#include "packet_utils.h"
int packet_get_layer(const struct packet *pkt, int idx, struct layer *out)
int packet_get_layer_by_idx(const struct packet *pkt, int idx, struct layer *out)
{
const struct raw_layer *raw = packet_get_raw_layer(pkt, idx);
if (raw == NULL)