Skip to content

Commit 6d41e01

Browse files
committed
small PCAP bufs for C5
1 parent 2098a86 commit 6d41e01

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

components/pcap_capture/pcap_capture.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ static const char *TAG = "pcap_capture";
2626
#define PCAP_TCP_PORT 19000
2727
#define PCAP_TASK_STACK 3072
2828
#define PCAP_TASK_PRIORITY 5
29-
#if CONFIG_IDF_TARGET_ESP32C3
30-
#define PCAP_RINGBUF_SIZE (16 * 1024) // 16KB ring buffer for ESP32-C3
31-
#define PCAP_SNAPLEN_DEFAULT 64 // Default max packet capture size for ESP32-C3
29+
#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C5
30+
#define PCAP_RINGBUF_SIZE (16 * 1024) // 16KB ring buffer for ESP32-C3/C5
31+
#define PCAP_SNAPLEN_DEFAULT 64 // Default max packet capture size for ESP32-C3/C5
3232
#else
3333
#define PCAP_RINGBUF_SIZE (32 * 1024) // 32KB ring buffer
3434
#define PCAP_SNAPLEN_DEFAULT 96 // Default max packet capture size

0 commit comments

Comments
 (0)