Skip to content

Commit 8eb3a0f

Browse files
authored
Merge pull request #324 from gytxxsy/feature/set_ation_queue_len_in_kconfig
feat(mdns): Allow setting length of mDNS action queue in menuconfig
2 parents ecc465d + 28cd898 commit 8eb3a0f

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

components/mdns/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ menu "mDNS"
2727
higher than priorities of system tasks. Compile time warning/error
2828
would be emitted if the chosen task priority were too high.
2929

30+
config MDNS_ACTION_QUEUE_LEN
31+
int "Maximum actions pending to the server"
32+
range 8 64
33+
default 16
34+
help
35+
Allows setting the length of mDNS action queue.
36+
3037
config MDNS_TASK_STACK_SIZE
3138
int "mDNS task stack size"
3239
default 4096

components/mdns/private_include/mdns_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
#define MDNS_SERVICE_ADD_TIMEOUT_MS CONFIG_MDNS_SERVICE_ADD_TIMEOUT_MS
9494

9595
#define MDNS_PACKET_QUEUE_LEN 16 // Maximum packets that can be queued for parsing
96-
#define MDNS_ACTION_QUEUE_LEN 16 // Maximum actions pending to the server
96+
#define MDNS_ACTION_QUEUE_LEN CONFIG_MDNS_ACTION_QUEUE_LEN // Maximum actions pending to the server
9797
#define MDNS_TXT_MAX_LEN 1024 // Maximum string length of text data in TXT record
9898
#if defined(CONFIG_LWIP_IPV6) && defined(CONFIG_MDNS_RESPOND_REVERSE_QUERIES)
9999
#define MDNS_NAME_MAX_LEN (64+4) // Need to account for IPv6 reverse queries (64 char address + ".ip6" )

components/mdns/tests/test_afl_fuzz_host/sdkconfig.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Unlicense OR CC0-1.0
55
*/
@@ -290,6 +290,7 @@
290290
#define CONFIG_MDNS_MAX_SERVICES 25
291291
#define CONFIG_MDNS_MAX_INTERFACES 3
292292
#define CONFIG_MDNS_TASK_PRIORITY 1
293+
#define CONFIG_MDNS_ACTION_QUEUE_LEN 16
293294
#define CONFIG_MDNS_TASK_STACK_SIZE 4096
294295
#define CONFIG_MDNS_TASK_AFFINITY_CPU0 1
295296
#define CONFIG_MDNS_TASK_AFFINITY 0x0

0 commit comments

Comments
 (0)