Skip to content

Commit

Permalink
net/dns: provide Kconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Jul 18, 2022
1 parent 365fbed commit 1761726
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions sys/net/application_layer/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ endmenu # CoAP

rsource "cord/Kconfig"
rsource "dhcpv6/Kconfig"
rsource "dns/Kconfig"

menu "MQTT-SN"

Expand Down
28 changes: 28 additions & 0 deletions sys/net/application_layer/dns/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright (c) 2022 Freie Universitaet Berlin
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#

menuconfig KCONFIG_USEMODULE_DNS
bool "Configure DNS"
depends on USEMODULE_DNS
help
Configure DNS using Kconfig.

if KCONFIG_USEMODULE_DNS
menuconfig KCONFIG_USEMODULE_DNS_MSG
bool "Configure DNS message parser and composer"
depends on USEMODULE_DNS_MSG
help
Configure DNS message parser and composer using Kconfig.

if KCONFIG_USEMODULE_DNS_MSG

config DNS_MSG_LEN
int "Maximum DNS message length"
default 128

endif # KCONFIG_USEMODULE_DNS_MSG
endif # KCONFIG_USEMODULE_DNS

0 comments on commit 1761726

Please sign in to comment.