Merge branch 'feature/add_parse_packet_and_sniff_certain_number_of_packet_function_to_simple_sniffer' into 'master'

Support sniffer packets in memory, added example test

Closes IDF-3210

See merge request espressif/esp-idf!13595
This commit is contained in:
morris
2021-09-17 08:53:41 +00:00
20 changed files with 1073 additions and 447 deletions
@@ -33,6 +33,10 @@ menu "Example Configuration"
depends on APPTRACE_DEST_TRAX
help
Store pcap file to host via JTAG interface.
config SNIFFER_PCAP_DESTINATION_MEMORY
bool "Memory"
help
Store pcap file to memory.
endchoice
if SNIFFER_PCAP_DESTINATION_SD
@@ -64,6 +68,14 @@ menu "Example Configuration"
Specify maximum name length of pcap file.
endif
if SNIFFER_PCAP_DESTINATION_MEMORY
config SNIFFER_PCAP_MEMORY_SIZE
int "Memory size of the '.pcap' file in memory"
default 4096
help
Max memory size to storage packet in memory.
endif
config SNIFFER_WORK_QUEUE_LEN
int "Length of sniffer work queue"
default 128