1 parent 2098a86 commit 6d41e01Copy full SHA for 6d41e01
1 file changed
components/pcap_capture/pcap_capture.c
@@ -26,9 +26,9 @@ static const char *TAG = "pcap_capture";
26
#define PCAP_TCP_PORT 19000
27
#define PCAP_TASK_STACK 3072
28
#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
+#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C5
+#define PCAP_RINGBUF_SIZE (16 * 1024) // 16KB ring buffer for ESP32-C3/C5
+#define PCAP_SNAPLEN_DEFAULT 64 // Default max packet capture size for ESP32-C3/C5
32
#else
33
#define PCAP_RINGBUF_SIZE (32 * 1024) // 32KB ring buffer
34
#define PCAP_SNAPLEN_DEFAULT 96 // Default max packet capture size
0 commit comments