feature: packet IO support IP reassembly

This commit is contained in:
luwenpeng
2024-10-23 10:01:20 +08:00
parent a7b79a0e22
commit fd3cc20554
54 changed files with 3474 additions and 4271 deletions

View File

@@ -6,30 +6,18 @@
app_symbol = "stellar"
dev_symbol = "nf_0_fw"
pcap_path = "/tmp/test.pcap"
nr_worker_thread = 1 # range: [1, 256]
thread_num = 1 # range: [1, 256]
cpu_mask = [5, 6, 7, 8, 9, 10, 11, 12]
idle_yield_interval_ms = 900 # range: [0, 60000] (ms)
idle_yield_ms = 900 # range: [0, 60000] (ms)
[[module]]
path=""
init="packet_manager_on_init"
exit="packet_manager_on_exit"
[packet_io.packet_pool]
capacity = 1024 # range: [1, 4294967295]
[[module]]
path=""
init="session_manager_on_init"
exit="session_manager_on_exit"
[ip_reassembly]
enable = 1
bucket_entries = 32 # range: [1, 4294967295] (must be power of 2)
bucket_num = 1024 # range: [1, 4294967295]
ip_frag_timeout_ms = 10000 # range: [1, 60000] (ms)
ip_frag_expire_polling_interval_ms = 0 # range: [0, 60000] (ms)
ip_frag_expire_polling_limit = 1024 # range: [1, 1024]
[packet_io.ip_reassembly]
fail_action = 1 # 0: bypass, 1: drop
timeout_ms = 1000 # range: [1, 60000] (ms)
frag_queue_num = 1024 # range: [1, 4294967295]
frag_queue_size = 64 # range: [2, 65535]
[session_manager]
tcp_session_max = 50000
@@ -71,14 +59,17 @@ exit="session_manager_on_exit"
timeout_ms = 10000 # range: [1, 60000] (ms)
buffered_segments_max = 256 # range: [2, 4096] per flow
[stat]
merge_interval_ms = 500 # range: [0, 60000] (ms)
output_interval_ms = 1000 # range: [0, 60000] (ms)
[log]
output = "both" # stderr, file, both
file = "log/stellar.log"
level = "INFO" # TRACE, DEBUG, INFO, WARN, ERROR, FATAL
[[module]]
path = ""
init = "packet_manager_on_init"
exit = "packet_manager_on_exit"
[[module]]
path = ""
init = "session_manager_on_init"
exit = "session_manager_on_exit"