1# DHCPv4 server implementation for Zephyr 2 3# Copyright (c) 2024 Nordic Semiconductor ASA 4# 5# SPDX-License-Identifier: Apache-2.0 6 7 8# Copyright (c) 2024 Nordic Semiconductor ASA 9# 10# SPDX-License-Identifier: Apache-2.0 11 12config NET_DHCPV6 13 bool "DHCPv6 client" 14 select NET_MGMT 15 select NET_MGMT_EVENT 16 depends on NET_IPV6 && NET_UDP 17 18config NET_DHCPV6_DUID_MAX_LEN 19 int "The maximum DUID length (not including a type code)" 20 range 1 128 21 default 22 22 help 23 This will set the available number of bytes for the DUID. 24 25config NET_DHCPV6_OPTION_DNS_ADDRESS 26 bool "Use DNS Recursive Name Server option to configure DNS resolver" 27 default y 28 depends on DNS_RESOLVER 29 help 30 If enabled, the DHCPv6 client will request DNS Recursive Name Server 31 option from the server, and if available, use obtained information 32 to configure DNS resolver. 33 34config NET_DHCPV6_DNS_SERVER_VIA_INTERFACE 35 bool "Make DNS servers specific to the network interface" 36 depends on NET_DHCPV6_OPTION_DNS_ADDRESS 37 default y 38 help 39 If this is set, then if the system has multiple network interfaces 40 and each has DHCP enabled, then assign DNS servers received from that 41 network interface, to that specific interface. 42 If this option is not set, then any interface can be used for all 43 the configured DNS server addresses when doing DNS queries. 44 Example: We receive DNS server 2001:db8::1:53 DHCPv6 option from Wi-Fi 45 interface and DNS server 2001:db8::2:53 from Ethernet interface. 46 When this option is set, the DNS resolver will use DNS server 47 2001:db8::1:53 when sending DNS query to the Wi-Fi interface and DNS 48 server 2001:db8::2:53 when sending DNS query to the Ethernet 49 interface. 50 51if NET_DHCPV6 52module = NET_DHCPV6 53module-dep = NET_LOG 54module-str = Log level for DHCPv6 client 55module-help = Enables DHCPv6 client code to output debug messages. 56source "subsys/net/Kconfig.template.log_config.net" 57endif # NET_DHCPV6 58