blob: 61016aa4ee4b5f972caad0669a8233d7980caf24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|