Commit Graph

56 Commits

Author SHA1 Message Date
luwenpeng
c0514964f9 Add ip_reassemble & ip_fragment function define 2024-02-04 17:40:32 +08:00
luwenpeng
3bbb341280 bugfix: ipv4_hdr_get_frag_offset 2024-02-01 15:46:43 +08:00
luwenpeng
97ef872d9a add session id generator 2024-01-31 18:55:06 +08:00
luwenpeng
2766b3cfeb bugfix: disable packet debug log 2024-01-30 18:15:54 +08:00
luwenpeng
6d1f352bc9 receive packets from mrzcpd; log output supports stderr or file 2024-01-30 18:09:12 +08:00
luwenpeng
7d7cc8e90c load config from toml file 2024-01-29 15:29:10 +08:00
luwenpeng
07b1da819a add CI 2024-01-26 16:16:43 +08:00
luwenpeng
87dfa0849c add toml 2024-01-26 16:08:31 +08:00
luwenpeng
d61da92e92 add config for main config 2024-01-26 15:48:30 +08:00
luwenpeng
3575cf9367 add test case: overload evict udp (old/new) session 2024-01-26 14:23:57 +08:00
luwenpeng
6050d15e29 add test case: overload evict tcp (old/new) session 2024-01-26 14:13:54 +08:00
luwenpeng
5ba0e4bb3b session manager add udp eviction filter test case 2024-01-25 18:35:31 +08:00
luwenpeng
2cef03eee2 session manager add tcp dupkt filter test case 2024-01-25 17:19:57 +08:00
luwenpeng
d3367fc86a add timeout test case
tcp timeout init (SYN / SYNACK)
    tcp timeout handshake
    tcp timeout data
    tcp timeout half closed (session opening / session active)
    tcp timeout time wait
    udp timeout data (session opening / session active)
2024-01-25 16:09:13 +08:00
luwenpeng
3f1a1f3fc3 add udp init -> opening -> active -> closing -> closed test case 2024-01-24 16:45:24 +08:00
luwenpeng
5a3179044d add udp init -> opening test case 2024-01-24 12:04:20 +08:00
luwenpeng
bbec791d6b add tcp init -> opening -> active -> closing -> closed test case 2024-01-24 11:25:33 +08:00
luwenpeng
73b2bce8cf add tcp opening -> closing test case 2024-01-24 10:08:15 +08:00
luwenpeng
62b61fcc8d add tcp active -> closing test case 2024-01-23 18:23:56 +08:00
luwenpeng
0df12ed331 add tcp opening -> active test case 2024-01-23 14:56:59 +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
8f685bc018 rename security_zone to domain 2024-01-15 14:31:38 +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
76d5fb36bb rename dupkt -> dupkt_filter 2024-01-11 14:36:14 +08:00
luwenpeng
d44eda2c86 Add duplicated packet filter 2024-01-10 10:19:47 +08:00
luwenpeng
37f4680dbc Add stellar thread cycle 2024-01-09 18:03:24 +08:00
luwenpeng
6fda3e9ddb Move dablooms to deps 2024-01-03 17:18:15 +08:00
luwenpeng
6b3fc4b560 Add Packet/IPv4/TCP/UDP helpers API 2024-01-03 16:20:27 +08:00
luwenpeng
529234029f Add ipv4 helpers 2023-12-29 15:15:18 +08:00
luwenpeng
d47efe6aad Add dablooms 2023-12-29 11:39:49 +08:00
luwenpeng
b353c9c824 Split session_manager_dispatch into session_manager_dispatch and session_manager_expire 2023-12-22 18:57:39 +08:00
luwenpeng
6ed321caea Move test cases to test dir 2023-12-22 16:03:22 +08:00
luwenpeng
2aeb699359 Session manager add builtin ex data 2023-12-22 14:45:37 +08:00
luwenpeng
fa4cc898d8 Reduce packet_get_xxx() calls 2023-12-21 20:03:43 +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
2e56bd810c Add packet helpers 2023-12-18 16:56:37 +08:00
luwenpeng
dda0cdf104 Add packet parser 2023-12-15 18:57:13 +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
1aecef82d6 Add timestamp 2023-12-13 18:31:10 +08:00
luwenpeng
92e5110503 session table support get oldest/newest session 2023-12-13 17:56:27 +08:00
luwenpeng
fc5b5857b8 session table rename 2023-12-13 14:07:24 +08:00
luwenpeng
2d3e182b5a Add session timer 2023-12-13 11:43:47 +08:00