support inject mutil packet base current packet

This commit is contained in:
luwenpeng
2024-05-17 19:10:28 +08:00
parent c22e4e5955
commit 31a4267e23
3 changed files with 16 additions and 7 deletions

View File

@@ -290,6 +290,8 @@ static void tcp_update(struct session_manager *mgr, struct session *sess, enum f
{
half->isn = tcp_hdr_get_seq(hdr);
}
half->inject_inc_ack_offset = 0;
half->inject_inc_seq_offset = 0;
half->flags = flags;
half->history |= flags;
half->seq = tcp_hdr_get_seq(hdr);

View File

@@ -27,6 +27,9 @@ struct tcp_half
struct tcp_segment in_order; // current packet in order segment
uint32_t in_order_ref; // reference count of current packet in order segment
uint32_t inject_inc_seq_offset; // inject packet base on current packet increase seq offset
uint32_t inject_inc_ack_offset; // inject packet base on current packet increase ack offset
uint32_t seq; // current packet sequence number
uint32_t ack; // current packet ack number
uint16_t len; // current packet payload length