2018-09-26 23:24:12 -04:00
|
|
|
menu "Example Configuration"
|
|
|
|
|
2019-05-09 10:43:06 -04:00
|
|
|
config SNIFFER_STORE_HISTORY
|
2019-01-25 04:03:01 -05:00
|
|
|
bool "Store command history into flash"
|
2019-01-25 11:10:53 -05:00
|
|
|
default y
|
|
|
|
help
|
2019-01-25 04:03:01 -05:00
|
|
|
Linenoise line editing library provides functions to save and load command history.
|
|
|
|
If this option is enabled, initalizes a FAT filesystem and uses it to store command history.
|
2018-09-26 23:24:12 -04:00
|
|
|
|
2019-01-25 04:03:01 -05:00
|
|
|
choice SNIFFER_PCAP_DESTINATION
|
|
|
|
prompt "Select destination to store pcap file"
|
2020-06-02 05:38:22 -04:00
|
|
|
default SNIFFER_PCAP_DESTINATION_SD if IDF_TARGET_ESP32
|
|
|
|
default SNIFFER_PCAP_DESTINATION_JTAG if IDF_TARGET_ESP32S2
|
2019-01-25 11:10:53 -05:00
|
|
|
help
|
2019-01-25 04:03:01 -05:00
|
|
|
Select where to store the pcap file.
|
|
|
|
Currently support storing files to SD card or to host via JTAG interface.
|
|
|
|
config SNIFFER_PCAP_DESTINATION_SD
|
|
|
|
bool "SD Card"
|
|
|
|
help
|
|
|
|
Store pcap file to SD card.
|
|
|
|
config SNIFFER_PCAP_DESTINATION_JTAG
|
|
|
|
bool "JTAG (App Trace)"
|
2021-03-11 07:42:24 -05:00
|
|
|
select APPTRACE_DEST_TRAX
|
2019-01-25 04:03:01 -05:00
|
|
|
help
|
|
|
|
Store pcap file to host via JTAG interface.
|
|
|
|
endchoice
|
2018-09-26 23:24:12 -04:00
|
|
|
|
2019-01-25 04:03:01 -05:00
|
|
|
if SNIFFER_PCAP_DESTINATION_SD
|
|
|
|
config SNIFFER_MOUNT_POINT
|
|
|
|
string "SD card mount point in the filesystem"
|
|
|
|
default "/sdcard"
|
|
|
|
help
|
|
|
|
Specify the mount point in the VFS (Virtual File System) for SD card.
|
|
|
|
|
2019-05-09 10:43:06 -04:00
|
|
|
config SNIFFER_PCAP_FILE_NAME_MAX_LEN
|
2019-01-25 04:03:01 -05:00
|
|
|
int "Max name length of pcap file"
|
|
|
|
default 32
|
|
|
|
help
|
|
|
|
Specify maximum name length of pcap file.
|
|
|
|
endif
|
|
|
|
|
|
|
|
config SNIFFER_WORK_QUEUE_LEN
|
2019-01-25 11:10:53 -05:00
|
|
|
int "Length of sniffer work queue"
|
|
|
|
default 128
|
|
|
|
help
|
|
|
|
The sniffer callback function should not do heavy work, so we put all heavy IO operation to another task.
|
|
|
|
The task gets some basic info of sniffer packet via queue.
|
|
|
|
Here you should specify the length of queue.
|
2018-09-26 23:24:12 -04:00
|
|
|
|
2019-01-25 11:10:53 -05:00
|
|
|
config SNIFFER_TASK_STACK_SIZE
|
|
|
|
int "Stack size of sniffer task"
|
2019-01-25 04:03:01 -05:00
|
|
|
default 4096
|
2019-01-25 11:10:53 -05:00
|
|
|
help
|
2019-01-25 04:03:01 -05:00
|
|
|
Stack size of sniffer task.
|
2018-09-26 23:24:12 -04:00
|
|
|
|
2019-01-25 11:10:53 -05:00
|
|
|
config SNIFFER_TASK_PRIORITY
|
|
|
|
int "Priority of sniffer task"
|
|
|
|
default 2
|
|
|
|
help
|
|
|
|
Priority of sniffer task.
|
2018-09-26 23:24:12 -04:00
|
|
|
|
|
|
|
endmenu
|