summaryrefslogtreecommitdiff
path: root/conf/packet_io/packet_io.toml
diff options
context:
space:
mode:
Diffstat (limited to 'conf/packet_io/packet_io.toml')
-rw-r--r--conf/packet_io/packet_io.toml20
1 files changed, 20 insertions, 0 deletions
diff --git a/conf/packet_io/packet_io.toml b/conf/packet_io/packet_io.toml
new file mode 100644
index 0000000..61016aa
--- /dev/null
+++ b/conf/packet_io/packet_io.toml
@@ -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 \ No newline at end of file