File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
2
+ * SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
3
3
*
4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
10
10
extern "C" {
11
11
#endif
12
12
13
+ #include "sdkconfig.h"
13
14
#include <esp_netif.h>
14
15
15
16
#define MDNS_TYPE_A 0x0001
@@ -21,6 +22,13 @@ extern "C" {
21
22
#define MDNS_TYPE_NSEC 0x002F
22
23
#define MDNS_TYPE_ANY 0x00FF
23
24
25
+ #if defined(CONFIG_LWIP_IPV6 ) && defined(CONFIG_MDNS_RESPOND_REVERSE_QUERIES )
26
+ #define MDNS_NAME_MAX_LEN (64+4) // Need to account for IPv6 reverse queries (64 char address + ".ip6" )
27
+ #else
28
+ #define MDNS_NAME_MAX_LEN 64 // Maximum string length of hostname, instance, service and proto
29
+ #endif
30
+ #define MDNS_NAME_BUF_LEN (MDNS_NAME_MAX_LEN+1) // Maximum char buffer size to hold hostname, instance, service or proto
31
+
24
32
/**
25
33
* @brief Asynchronous query handle
26
34
*/
Original file line number Diff line number Diff line change 1
1
/*
2
- * SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
2
+ * SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
3
3
*
4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
103
103
#define MDNS_PACKET_QUEUE_LEN 16 // Maximum packets that can be queued for parsing
104
104
#define MDNS_ACTION_QUEUE_LEN CONFIG_MDNS_ACTION_QUEUE_LEN // Maximum actions pending to the server
105
105
#define MDNS_TXT_MAX_LEN 1024 // Maximum string length of text data in TXT record
106
- #if defined(CONFIG_LWIP_IPV6 ) && defined(CONFIG_MDNS_RESPOND_REVERSE_QUERIES )
107
- #define MDNS_NAME_MAX_LEN (64+4) // Need to account for IPv6 reverse queries (64 char address + ".ip6" )
108
- #else
109
- #define MDNS_NAME_MAX_LEN 64 // Maximum string length of hostname, instance, service and proto
110
- #endif
111
- #define MDNS_NAME_BUF_LEN (MDNS_NAME_MAX_LEN+1) // Maximum char buffer size to hold hostname, instance, service or proto
112
106
#define MDNS_MAX_PACKET_SIZE 1460 // Maximum size of mDNS outgoing packet
113
107
114
108
#define MDNS_HEAD_LEN 12
You can’t perform that action at this time.
0 commit comments