tcp session record last packet tcp payload length used to calculate seq of injected RST packets

This commit is contained in:
luwenpeng
2024-04-25 15:39:02 +08:00
parent 54a78389cf
commit 17ca476c24
2 changed files with 2 additions and 0 deletions

View File

@@ -293,6 +293,7 @@ static void tcp_update(struct session_manager *mgr, struct session *sess, enum s
half->flags |= flags;
half->seq = tcp_hdr_get_seq(hdr);
half->ack = tcp_hdr_get_ack(hdr);
half->len = tcp_layer->pld_len;
if (!mgr->opts.tcp_reassembly_enable)
{