summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2024-11-27 11:37:43 +0800
committerluwenpeng <[email protected]>2024-11-27 11:43:42 +0800
commit035b393a946af2ce219e177d0bdcb8db62c56f5d (patch)
tree5b2e8ff5b2b284e3ed84d398163bd88961a40565 /include
parent1e072950d7477a7154665b46c16e5c890e471cad (diff)
bugfix: tcp segment free
Diffstat (limited to 'include')
-rw-r--r--include/stellar/session.h3
1 files changed, 3 insertions, 0 deletions
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;