diff options
| author | wangmenglan <[email protected]> | 2023-05-10 20:06:07 +0800 |
|---|---|---|
| committer | wangmenglan <[email protected]> | 2023-05-10 20:06:54 +0800 |
| commit | 935aa7235e05b508ca7c989c2b54abad45bc2c1f (patch) | |
| tree | 61ad517423eaf879500d3556b0469293c8c561a4 /common/src/tfe_packet_io.cpp | |
| parent | 2a55a2be7504a39dd19b4ea2ff2f73c4a0be35f2 (diff) | |
TFE优化解析控制报文,解决mpack只有proxy字段时,解析错误v4.8.11-20230510release-4.9
Diffstat (limited to 'common/src/tfe_packet_io.cpp')
| -rw-r--r-- | common/src/tfe_packet_io.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/common/src/tfe_packet_io.cpp b/common/src/tfe_packet_io.cpp index ef9c8f9..766ea48 100644 --- a/common/src/tfe_packet_io.cpp +++ b/common/src/tfe_packet_io.cpp @@ -1045,12 +1045,6 @@ static void send_event_log(struct session_ctx *s_ctx, int thread_seq, void *ctx) } return; } - - struct ethhdr *eth_hdr = (struct ethhdr *)s_ctx->ctrl_meta->raw_data; - struct ip *ip_hdr = (struct ip *)((char *)eth_hdr + sizeof(struct ethhdr)); - struct tcphdr *tcp_hdr = (struct tcphdr *)((char *)ip_hdr + sizeof(struct ip)); - // ip_hdr->ip_len = htons(sizeof(struct ip) + (ntohs(tcp_hdr->th_off) * 4) + size); - ip_hdr->ip_len = htons(sizeof(struct ip) + 20 + size); char *raw_packet_header_data = s_ctx->ctrl_meta->raw_data; int raw_packet_header_len = s_ctx->ctrl_meta->l7offset; |
