luwenpeng
c87ad330e0
feature: add GTP utils, support overwrite message length of GTP header
2024-07-09 11:17:03 +08:00
luwenpeng
71422ebb36
refactor: packet module (split to parse/build/layer/tunnel/utils)
2024-06-24 17:07:05 +08:00
luwenpeng
48428e52fe
replace 'ifndef define' to 'pragam once'
2024-06-19 15:06:14 +08:00
luwenpeng
c3fd452793
Add test case for tunnel
2024-06-19 14:43:32 +08:00
luwenpeng
de4c15f43c
Refactored packet API to support struct layer (using union to contain different types of encapsulation headers)
2024-06-14 19:24:27 +08:00
luwenpeng
1f78881cbb
rename struct packet_layer to struct raw_layer
2024-06-14 10:58:40 +08:00
luwenpeng
01958b56c5
rename layer_type to layer_proto
2024-06-12 18:21:45 +08:00
luwenpeng
54385ed08b
When the packet length is greater than the IP expected length, the padding data at the end of the frame will be trimmed.
2024-05-24 19:10:33 +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
dd32f0f231
Enhancement: Improve error handling in stellar's packet API by checking return values of metadata functions and adding descriptive error logging
2024-04-22 14:23:50 +08:00
luwenpeng
bb7d7410c9
fix spelling mistake
2024-04-21 11:30:41 +08:00
luwenpeng
5508454a1b
Optimize packet I/O and timeouts
...
- Introduce per-thread I/O statistics for packet I/O to reduce performance overhead.
- Implement packet_io_yield() for better thread management during I/O operations.
- Refactor time wheel management:
- Replace timeouts-based cron tasks with (now_ts - last_ts > timeout) for scheduled tasks.
- Update the time wheel every 5 ms for improved time management.
2024-04-18 14:37:03 +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
a509f0ce3b
Update API of manipulation session
2024-04-01 17:15:19 +08:00
luwenpeng
5b92d6d8de
Add tcp reassembly test case
2024-03-25 17:30:48 +08:00
luwenpeng
5b8d5610a2
rename ip_reassembly args name 'mgr' -> 'assembler'
2024-03-15 09:59:33 +08:00
luwenpeng
512dfddd03
reactor packet I/O & duplicated packet filter & evicted session filter
2024-03-10 19:07:26 +08:00
luwenpeng
734f6a5135
rename config -> options
2024-03-08 14:51:21 +08:00
luwenpeng
c945931620
rename xxx_create() / xxx_destory() -> xxx_new() / xxx_free()
2024-03-08 14:20:36 +08:00
luwenpeng
9d562ffee6
rename ip_reassemble -> ip_reassembly
2024-03-08 13:55:17 +08:00