This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
stellar-stellar/conf/stellar.toml
luwenpeng 7952ae7283 Add packet IO module
* support marsio
    * support dumpfile ( 1 thread read dumpfile & N thread handle packet)
2024-02-28 16:31:26 +08:00

51 lines
1.4 KiB
TOML

[device]
device_base = 1 # [0, 31]
device_offset = 2 # [0, 127]
[packet_io]
mode = dumpfile # dumpfile, marsio
dumpfile_dir = "/tmp/dumpfile/"
app_symbol = stellar
dev_symbol = nf_0_fw
nr_threads = 1 # [1, 256]
cpu_mask = [5, 6, 7, 8, 9, 10, 11, 12]
[ip_reassemble]
enable = 1
timeout = 10 # seconds
bucket_entries = 8
bucket_num = 4096
[session_manager]
# max session number
max_tcp_session_num = 100
max_udp_session_num = 100
# session overload evict
tcp_overload_evict_old_sess = 1 # 1: evict old session, 0: bypass new session
udp_overload_evict_old_sess = 1 # 1: evict old session, 0: bypass new session
# TCP timeout
tcp_timeout_init = 5 # seconds, Range: 1-60
tcp_timeout_handshake = 10 # seconds, Range: 1-60
tcp_timeout_data = 3600 # seconds, Range: 1-15,999,999
tcp_timeout_half_closed = 120 # seconds, Range: 1-604,800
tcp_timeout_time_wait = 15 # seconds, Range: 1-600
tcp_timeout_discard = 90 # seconds, Range: 1-15,999,999
# UDP timeout
udp_timeout_data = 10 # seconds, Range: 1-15,999,999
# TCP duplicate packet filter
tcp_dupkt_filter_enable = 1
tcp_dupkt_filter_capacity = 1000000
tcp_dupkt_filter_timeout = 10 # seconds, Range: 1-60
tcp_dupkt_filter_error_rate = 0.00001
# UDP eviction filter
udp_eviction_filter_enable = 1
udp_eviction_filter_capacity = 1000000
udp_eviction_filter_timeout = 10 # seconds, Range: 1-60
udp_eviction_filter_error_rate = 0.00001