Skip to content

Commit 78b8733

Browse files
committed
subsys: net: increase DNS_MAX_NAME_SIZE to 32
Previous size of 20 was too small for many domain names. Signed-off-by: Neal Jackson <[email protected]>
1 parent e0dbba5 commit 78b8733

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/zephyr/net/dns_resolve.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ enum dns_query_type {
4444

4545
/** Max size of the resolved name. */
4646
#ifndef DNS_MAX_NAME_SIZE
47-
#define DNS_MAX_NAME_SIZE 20
47+
#define DNS_MAX_NAME_SIZE 32
4848
#endif
4949

5050
/** @cond INTERNAL_HIDDEN */

subsys/net/lib/sockets/Kconfig

+1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ config NET_SOCKETS_SERVICE_THREAD_PRIO
105105
config NET_SOCKETS_SERVICE_STACK_SIZE
106106
int "Stack size for the thread handling socket services"
107107
default 2400 if NET_DHCPV4_SERVER
108+
default 1400 if DNS_RESOLVER
108109
default 1400 if MDNS_RESPONDER
109110
default 1200
110111
depends on NET_SOCKETS_SERVICE

0 commit comments

Comments
 (0)