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-2022/conf/packet_io/packet_io.toml
2022-08-31 22:07:52 +08:00

20 lines
1.1 KiB
TOML

[PACKET_IO]
# example1:
# RUN_MODE="PCAP_LIVE_MODE"
# WORKER_THREAD_NUM=10 # Prompt pcap how many threads to start to receive packets
# INTERFACE=["eth0", "eth1"]
# SNAP_LEN=65535 # default 65535
# PROMISC=1 # 0(disable) 1(enable), if enable nic promisc mode, default 0(disable)
# BPF_FILTER="port 80 and udp" # default null
# example2:
# RUN_MODE="MARSIO_MODE"
# WORKER_THREAD_NUM=10 # Prompt marsio how many threads to start to receive packets
# INTERFACE=["eth0", "eth1"]
# example3:
RUN_MODE="PCAP_FILE_MODE"
WORKER_THREAD_NUM=2 # Prompt pcap how many threads to start to receive packets
PCAP_FILE_PATH="./src/packet_io/test/pcap_sample" # if single file, specify dir+filename; if pcapfile directory, specify dir
DELETE_WHEN_DONE=0 # 0(false) 1(true), default 0, if delete it when the pcapfile is processed
BPF_FILTER="port 443 and tcp" # default null