bugfix: tcp segment free

This commit is contained in:
luwenpeng
2024-11-27 11:37:43 +08:00
parent 1e072950d7
commit 035b393a94
3 changed files with 27 additions and 23 deletions

View File

@@ -157,8 +157,11 @@ void session_manager_on_thread_exit(struct module_manager *mod_mgr, int thread_i
struct module *session_monitor_on_init(struct module_manager *mod_mgr);
void session_monitor_on_exit(struct module_manager *mod_mgr, struct module *mod);
#define TCP_SEGMENT_FROM_RAW_PACKET 1
#define TCP_SEGMENT_FROM_REASSEMBLY 0
struct tcp_segment
{
uint8_t from; // TCP_SEGMENT_FROM_RAW_PACKET or TCP_SEGMENT_FROM_REASSEMBLY
uint32_t len;
const void *data;
struct tcp_segment *next;