Commit Graph

10 Commits

Author SHA1 Message Date
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
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
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