[PACKET_IO]fix pcap_file mode send coredump

This commit is contained in:
liuwentan
2022-08-31 18:13:00 +08:00
parent 722a06fbf1
commit bae1bb5e5f
7 changed files with 39 additions and 25 deletions

View File

@@ -0,0 +1,20 @@
[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