nuttx-apps/netutils/dhcpc/Kconfig
liangchaozhong 4c5406e225 dhcpc:disable broadcast flag in DHCP process
Issue:
DHCP server will send DHCP offer/ack via broadcast packet if broadcast
flag is enabled in DHCP discover/request.
There's no retransmition mechanism for broadcast frame in 802.11 MAC
layer, thus transmit fail rate might be very high. This will increase DHCP fail rate.

Solution:
Disable broadcast flag by default

Signed-off-by: liangchaozhong <liangchaozhong@xiaomi.com>
2022-11-14 19:00:39 +01:00

42 lines
1021 B
Plaintext

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config NETUTILS_DHCPC
bool "DHCP client"
default n
depends on NET_UDP && NET_BROADCAST && NET_IPv4
select NET_BINDTODEVICE if !NET_UDP_NO_STACK
---help---
Enable support for the DHCP client.
if NETUTILS_DHCPC
config NETUTILS_DHCPC_HOST_NAME
string "DHCP client host name"
default "nuttx"
config NETUTILS_DHCPC_RECV_TIMEOUT_MS
int "Number of receive timeout in millisecond"
default 3000
---help---
This is the timeout value when dhcp client receives response
config NETUTILS_DHCPC_RETRIES
int "Number of retries for dhcp client request"
default 3
---help---
This setting determines how many times resolver retries request
until failing.
config NETUTILS_DHCPC_BOOTP_FLAGS
hex "Flags of Bootstrap"
default 0x0000
---help---
This setting to set the BOOTP broadcast flags.
Reference RFC1542: Clarifications and Extensions for the
Bootstrap Protocol.
endif