20 lines
1.1 KiB
TOML
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 |