summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-03-03 18:12:45 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-03-03 18:12:45 -0600
commit1f05e8673cafe0e6d45893cdd170f65c454d1635 (patch)
treebe82c6618e2bf7f2be16a5870634f43a1c3695fe /apps
parent2f32e25bb007173595e3ff240e8f523693bf272e (diff)
downloadnuttx-1f05e8673cafe0e6d45893cdd170f65c454d1635.tar.gz
nuttx-1f05e8673cafe0e6d45893cdd170f65c454d1635.tar.bz2
nuttx-1f05e8673cafe0e6d45893cdd170f65c454d1635.zip
Add missing DHCPD configuration settings
Diffstat (limited to 'apps')
-rw-r--r--apps/ChangeLog.txt2
-rw-r--r--apps/netutils/dhcpd/Kconfig63
2 files changed, 65 insertions, 0 deletions
diff --git a/apps/ChangeLog.txt b/apps/ChangeLog.txt
index 601e0a37d..80467ec10 100644
--- a/apps/ChangeLog.txt
+++ b/apps/ChangeLog.txt
@@ -853,4 +853,6 @@
at the end of the file (2014-2-27).
* netutils/dhcpd/dhcpd.c: allocipaddr() should not call ntohl(), the
returned IP address is already in host order.
+ * apps/netutils/dhcpd/Kconfig: Add missing DHCPD configuratino
+ settings(2014-3-3).
diff --git a/apps/netutils/dhcpd/Kconfig b/apps/netutils/dhcpd/Kconfig
index 0d3b89f24..3f586a74b 100644
--- a/apps/netutils/dhcpd/Kconfig
+++ b/apps/netutils/dhcpd/Kconfig
@@ -10,4 +10,67 @@ config NETUTILS_DHCPD
Enable support for the DHCP server.
if NETUTILS_DHCPD
+
+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
+ enabled by this configuration, however, ti cannot really be used
+ 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_INTERFACE
+ string "DHCPD network interface"
+ default "eth0"
+
+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
+
+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
+
endif