Commit Graph

45 Commits

Author SHA1 Message Date
luwenpeng
44c2cf86e4 session_get_tcp_segment() and session_free_tcp_segment() support asynchronous calls 2024-05-15 17:47:57 +08:00
luwenpeng
7b20747c8f Update session.h: support get tuple6 by session 2024-05-15 16:29:33 +08:00
luwenpeng
b33dafff53 Add packet injector test frame 2024-05-15 14:48:15 +08:00
luwenpeng
cda77c6f6f Add the packet_injector tool to test the packet injection effect 2024-05-11 18:58:36 +08:00
luwenpeng
7f1e7a23de update debug API session_to_json 2024-05-09 17:40:14 +08:00
luwenpeng
13001003e2 Refactor enum session_stat with improved naming conventions 2024-05-09 16:32:45 +08:00
luwenpeng
cc380d9271 rename session_direction to flow_direction 2024-05-09 14:57:12 +08:00
luwenpeng
37d12ebcfc inject TCP RST test pass 2024-05-08 18:24:26 +08:00
luwenpeng
74f0504d3d Update Stellar export header and add stellar_get_current_thread_index() function 2024-04-23 14:38:58 +08:00
luwenpeng
17f5d338de Add packet utils to packet.h 2024-04-14 13:14:48 +08:00
luwenpeng
24e109e34f Export tuple.h / packet.h / session.h to the include directory 2024-04-10 15:37:42 +08:00
luwenpeng
a5a133bf91 Modify the stat of session 2024-04-09 17:27:49 +08:00
luwenpeng
3b00acab81 Modify the stat of session manager 2024-04-09 10:36:39 +08:00
luwenpeng
151b6f8f1d Add TCP reassembly metrics on session 2024-04-03 19:51:44 +08:00
luwenpeng
e8e60cee6d Refactor TCP reassembly, the session knows where the TCP segment comes from: raw packet or tcp segment queue 2024-04-03 15:45:08 +08:00
luwenpeng
a509f0ce3b Update API of manipulation session 2024-04-01 17:15:19 +08:00
luwenpeng
772860c1be Update session timer 2024-03-29 19:49:01 +08:00
luwenpeng
6e422ecb8d Update session timeouts 2024-03-29 16:32:16 +08:00
luwenpeng
eb281ab789 session manager support tcp reassembly 2024-03-26 15:09:03 +08:00
luwenpeng
1cdbb7c2a4 Add session state 'discard' 2024-03-15 17:02:12 +08:00
luwenpeng
ce00122557 Refactor the session manager using session transformation 2D array & Update test case 2024-03-14 18:03:34 +08:00
luwenpeng
512dfddd03 reactor packet I/O & duplicated packet filter & evicted session filter 2024-03-10 19:07:26 +08:00
luwenpeng
ee35a26a9d update stellar thread main loop 2024-03-08 18:10:38 +08:00
luwenpeng
c945931620 rename xxx_create() / xxx_destory() -> xxx_new() / xxx_free() 2024-03-08 14:20:36 +08:00
luwenpeng
d7370e0e19 rename xxx_tostring() -> xxx_to_str() 2024-03-08 13:43:03 +08:00
luwenpeng
31c9303a93 bugfix: reasion -> reason 2024-03-08 13:33:49 +08:00
luwenpeng
7952ae7283 Add packet IO module
* support marsio
    * support dumpfile ( 1 thread read dumpfile & N thread handle packet)
2024-02-28 16:31:26 +08:00
luwenpeng
97ef872d9a add session id generator 2024-01-31 18:55:06 +08:00
luwenpeng
bbec791d6b add tcp init -> opening -> active -> closing -> closed test case 2024-01-24 11:25:33 +08:00
luwenpeng
1f668b1a01 update session finite state machine & add tcp init -> opening test case 2024-01-23 14:30:46 +08:00
luwenpeng
4fbafab4e3 session manager: support session timeouts & tcp dupkt filter & udp eviction filter 2024-01-18 14:34:55 +08:00
luwenpeng
1d4736ac88 session add API support get/set closing reasion 2024-01-16 14:10:13 +08:00
luwenpeng
a045c04f8d session manager not trigger event 2024-01-15 11:21:11 +08:00
luwenpeng
84bdd92534 Update supported session type 2024-01-12 12:01:21 +08:00
luwenpeng
02f8d40c1e Add eviction filter 2024-01-11 17:20:11 +08:00
luwenpeng
37f4680dbc Add stellar thread cycle 2024-01-09 18:03:24 +08:00
luwenpeng
2aeb699359 Session manager add builtin ex data 2023-12-22 14:45:37 +08:00
luwenpeng
cd47b46e7a Add test cases for session manager (session state machine) 2023-12-21 18:08:00 +08:00
luwenpeng
2c26879182 implementation session manager 2023-12-20 19:20:14 +08:00
luwenpeng
7653d646d3 Add tuple2 & tuple4 & tuple5 & tuple6 2023-12-15 16:35:11 +08:00
luwenpeng
90a6936fd6 session support get/set current packet 2023-12-15 11:20:05 +08:00
luwenpeng
a232045764 refactor: change session key from address list to six tuple 2023-12-14 19:19:29 +08:00
luwenpeng
5620ac211b Add session manager 2023-12-13 19:20:34 +08:00
luwenpeng
2d3e182b5a Add session timer 2023-12-13 11:43:47 +08:00
luwenpeng
006315fb7c Add session table & session 2023-12-12 16:50:16 +08:00