zephyr/subsys/net/lib/dhcpv6/Kconfig
Marcin Gasiorek 9c0b8181f3 net: dhcpv6: Add configurable DUID buffer length
According to the `RFC8415` the length of the DUID is at least 1 octet
up to 128 octets. Now a user can choose buffer length without the need
for source code modification.

Signed-off-by: Marcin Gasiorek <marcin.gasiorek@nordicsemi.no>
2024-04-03 10:28:20 +03:00

32 lines
748 B
Plaintext

# DHCPv4 server implementation for Zephyr
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: Apache-2.0
config NET_DHCPV6
bool "DHCPv6 client"
select NET_MGMT
select NET_MGMT_EVENT
depends on NET_IPV6 && NET_UDP
config NET_DHCPV6_DUID_MAX_LEN
int "The maximum DUID length (not including a type code)"
range 1 128
default 22
help
This will set the available number of bytes for the DUID.
if NET_DHCPV6
module = NET_DHCPV6
module-dep = NET_LOG
module-str = Log level for DHCPv6 client
module-help = Enables DHCPv6 client code to output debug messages.
source "subsys/net/Kconfig.template.log_config.net"
endif # NET_DHCPV6