diff options
| author | luwenpeng <[email protected]> | 2023-12-05 16:48:03 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2023-12-05 18:41:48 +0800 |
| commit | 6cb8ba704d2f0d159ca8a066307981353d1dc140 (patch) | |
| tree | 87f6c8e480f3807a87976b426493f38d58cbc0ca | |
| parent | 94ef07c3f3a80087c64ffe21b28ea6a3af092320 (diff) | |
调整控制报文头的长度
| -rw-r--r-- | platform/src/packet_io.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/src/packet_io.cpp b/platform/src/packet_io.cpp index 063b9d5..18ca37a 100644 --- a/platform/src/packet_io.cpp +++ b/platform/src/packet_io.cpp @@ -990,8 +990,8 @@ static struct session_ctx *new_session(struct metadata *meta, struct four_tuple session_ctx->session_addr = sce_ctx->enable_debug ? four_tuple_tostring(inner_tuple4) : NULL; session_ctx->rehash_index = meta->rehash_index; session_ctx->vxlan_src_port = calculate_vxlan_source_port(inner_tuple4); - session_ctx->ctrl_pkt_hdr_ptr = memdup(meta->raw_data, meta->raw_len); - session_ctx->ctrl_pkt_hdr_len = meta->raw_len; + session_ctx->ctrl_pkt_hdr_ptr = memdup(meta->raw_data, meta->l7offset); + session_ctx->ctrl_pkt_hdr_len = meta->l7offset; session_ctx->chaining_raw = selected_chaining_create(chaining_size, session_ctx->session_id, session_ctx->session_addr); session_ctx->chaining_decrypted = selected_chaining_create(chaining_size, session_ctx->session_id, session_ctx->session_addr); session_ctx->ref_thread_ctx = thread_ctx; |
