diff options
| author | wangmenglan <[email protected]> | 2024-01-04 16:45:47 +0800 |
|---|---|---|
| committer | wangmenglan <[email protected]> | 2024-01-04 16:45:47 +0800 |
| commit | 9ce2d570829acb8fdb72804d341f9dcd1728cf2a (patch) | |
| tree | a6a172d41ae3725344becffed165593c60b1548a /common/src/tfe_packet_io.cpp | |
| parent | a1f2fde9ddef102de1d2a637d035c67bf06e514f (diff) | |
解决编译问题v4.8.59-20230104
Diffstat (limited to 'common/src/tfe_packet_io.cpp')
| -rw-r--r-- | common/src/tfe_packet_io.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/common/src/tfe_packet_io.cpp b/common/src/tfe_packet_io.cpp index f505636..283c047 100644 --- a/common/src/tfe_packet_io.cpp +++ b/common/src/tfe_packet_io.cpp @@ -1060,7 +1060,6 @@ static void packet_io_send_fake_pkt(struct packet_io_thread_ctx *thread, struct int raw_traffic_decapsulate(struct packet *handler, const char *raw_data, int raw_len, char **header, int *header_len, int *is_ipv4) { - const struct layer_record *l2_tun_layer_record = NULL; const struct layer_record *l3_layer_record = NULL; const struct layer_record *l4_layer_record = NULL; @@ -1076,8 +1075,6 @@ int raw_traffic_decapsulate(struct packet *handler, const char *raw_data, int ra return -1; *is_ipv4 = l3_layer_record->type == LAYER_TYPE_IPV4 ? 1 : 0; - l2_tun_layer_record = packet_get_innermost_layer(handler, LAYER_TYPE_L2_TUN); - *header_len = l3_layer_record->hdr_offset; *header = (char *)calloc(*header_len, sizeof(char)); memcpy(*header, raw_data, *header_len); |
