2012-04-06 18:33:17 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:14:53 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-04-06 18:33:17 +02:00
|
|
|
#
|
2012-04-14 22:01:08 +02:00
|
|
|
|
|
|
|
config NETUTILS_DHCPD
|
|
|
|
bool "DHCP server"
|
|
|
|
default n
|
2015-02-03 15:01:55 +01:00
|
|
|
depends on NET_UDP && NET_IPv4
|
2012-04-14 22:01:08 +02:00
|
|
|
---help---
|
|
|
|
Enable support for the DHCP server.
|
|
|
|
|
|
|
|
if NETUTILS_DHCPD
|
2014-03-04 01:12:45 +01:00
|
|
|
|
|
|
|
config NETUTILS_DHCPD_HOST
|
|
|
|
bool "Host-based DHCPD build"
|
|
|
|
default n
|
|
|
|
depends on EXPERIMENTAL
|
|
|
|
---help---
|
|
|
|
DHCPD supports a host based build for testing on a PC. It is
|
2020-05-14 14:25:43 +02:00
|
|
|
enabled by this configuration, however, it cannot really be used
|
2014-03-04 01:12:45 +01:00
|
|
|
in the context to the NuttX build as it currently stands.
|
|
|
|
|
|
|
|
config NETUTILS_DHCPD_IGNOREBROADCAST
|
|
|
|
bool "Ignore client broadcast"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
This is a hack. I've had problems with Windows machines responding
|
|
|
|
to unicast. I think this is associated with a Windows registry key in
|
|
|
|
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DHCPServer\Parameters:
|
|
|
|
The IgnoreBroadcastFlag value controls this behavior: A value of 1 will
|
|
|
|
cause the server to ignore the client broadcast flag and always respond
|
|
|
|
with multicast; the value 0 to allows clients to request unicast.
|
|
|
|
|
|
|
|
config NETUTILS_DHCPD_LEASETIME
|
|
|
|
int "Lease time (seconds)"
|
|
|
|
default 864000
|
|
|
|
---help---
|
|
|
|
Default: 10 days
|
|
|
|
|
|
|
|
config NETUTILS_DHCPD_MINLEASETIME
|
|
|
|
int "Minimum lease time (seconds)"
|
|
|
|
default 86400
|
|
|
|
---help---
|
|
|
|
Default: 1 days
|
|
|
|
|
|
|
|
config NETUTILS_DHCPD_MAXLEASETIME
|
|
|
|
int "Maximum lease time (seconds)"
|
|
|
|
default 2592000
|
|
|
|
---help---
|
|
|
|
Default: 30 days
|
|
|
|
|
|
|
|
config NETUTILS_DHCPD_MAXLEASES
|
|
|
|
int "Maximum number of leases"
|
|
|
|
default 6
|
|
|
|
|
|
|
|
config NETUTILS_DHCPD_STARTIP
|
|
|
|
hex "First IP address"
|
|
|
|
default 0x0a000002
|
|
|
|
|
2014-11-18 14:20:18 +01:00
|
|
|
config NETUTILS_DHCPD_ROUTERIP
|
|
|
|
hex "Router IP (0 to disable)"
|
|
|
|
default 0x0a000001
|
|
|
|
|
|
|
|
config NETUTILS_DHCPD_NETMASK
|
|
|
|
hex "Netmask (0 to disable)"
|
|
|
|
default 0xffffff00
|
|
|
|
|
|
|
|
config NETUTILS_DHCPD_DNSIP
|
|
|
|
hex "DNS (0 to disable)"
|
|
|
|
default 0x08080808
|
|
|
|
|
2014-03-04 01:12:45 +01:00
|
|
|
config NETUTILS_DHCPD_OFFERTIME
|
|
|
|
int "Offer time (seconds)"
|
|
|
|
default 3600
|
|
|
|
---help---
|
|
|
|
Default: 1 hour
|
|
|
|
|
|
|
|
config NETUTILS_DHCPD_DECLINETIME
|
|
|
|
int "Decline time (seconds)"
|
|
|
|
default 3600
|
|
|
|
---help---
|
|
|
|
Default: 1 hour
|
|
|
|
|
2020-05-08 08:30:04 +02:00
|
|
|
config NETUTILS_DHCPD_PRIORITY
|
|
|
|
int "DHCPD daemon priority"
|
|
|
|
default 100
|
|
|
|
|
|
|
|
config NETUTILS_DHCPD_STACKSIZE
|
|
|
|
int "DHCPD daemon priority"
|
|
|
|
default DEFAULT_TASK_STACKSIZE
|
|
|
|
|
|
|
|
config NETUTILS_DHCPD_SIGWAKEUP
|
|
|
|
int "DHCPD wakeup signal number"
|
|
|
|
default 22
|
|
|
|
|
2012-04-14 22:01:08 +02:00
|
|
|
endif
|