From 035b393a946af2ce219e177d0bdcb8db62c56f5d Mon Sep 17 00:00:00 2001 From: luwenpeng Date: Wed, 27 Nov 2024 11:37:43 +0800 Subject: bugfix: tcp segment free --- include/stellar/session.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/stellar/session.h b/include/stellar/session.h index c66cb3d..7ae22ad 100644 --- a/include/stellar/session.h +++ b/include/stellar/session.h @@ -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; -- cgit v1.2.3