summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2024-10-23 10:01:20 +0800
committerluwenpeng <[email protected]>2024-10-21 10:49:41 +0800
commitfd3cc20554cba6fe7ee7c671730079f81a2fbc5d (patch)
treee38e5405a47fd5dff8c422d4b2109de99159ec4d /conf
parenta7b79a0e227eb509699d0a864129e5013eff50fe (diff)
feature: packet IO support IP reassembly
Diffstat (limited to 'conf')
-rw-r--r--conf/stellar.toml43
1 files changed, 17 insertions, 26 deletions
diff --git a/conf/stellar.toml b/conf/stellar.toml
index ced18cc..b6e4bae 100644
--- a/conf/stellar.toml
+++ b/conf/stellar.toml
@@ -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)
-
-[[module]]
-path=""
-init="packet_manager_on_init"
-exit="packet_manager_on_exit"
-
-[[module]]
-path=""
-init="session_manager_on_init"
-exit="session_manager_on_exit"
-
+ idle_yield_ms = 900 # range: [0, 60000] (ms)
+ [packet_io.packet_pool]
+ capacity = 1024 # range: [1, 4294967295]
-[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"