summaryrefslogtreecommitdiff
path: root/nuttx/netutils/dhcpd
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-12-11 22:07:18 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-12-11 22:07:18 +0000
commit4e5e119fd3ebb29efe6a936b6baa83b00e9b5de1 (patch)
treedc0bf00f247d5b7d2a3b2edea266a3fac55f0e94 /nuttx/netutils/dhcpd
parent33853ba88160a33504eb961a6582ee4048a50dae (diff)
downloadpx4-nuttx-4e5e119fd3ebb29efe6a936b6baa83b00e9b5de1.tar.gz
px4-nuttx-4e5e119fd3ebb29efe6a936b6baa83b00e9b5de1.tar.bz2
px4-nuttx-4e5e119fd3ebb29efe6a936b6baa83b00e9b5de1.zip
DHCPC logic changes - should now handle case with multiple DHCP servers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@446 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/netutils/dhcpd')
-rw-r--r--nuttx/netutils/dhcpd/dhcpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/netutils/dhcpd/dhcpd.c b/nuttx/netutils/dhcpd/dhcpd.c
index f160dcc21..118b991f1 100644
--- a/nuttx/netutils/dhcpd/dhcpd.c
+++ b/nuttx/netutils/dhcpd/dhcpd.c
@@ -1283,7 +1283,7 @@ int dhcpd_run(void)
#ifdef CONFIG_NETUTILS_DHCPD_HOST
/* Get the poor little uC a change to get its recvfrom in place */
- sleep(2);
+ usleep(500*1000);
#endif
/* Now process the incoming DHCP message by its message type */
@@ -1298,7 +1298,7 @@ int dhcpd_run(void)
case DHCPREQUEST:
vdbg("DHCPREQUEST\n");
dhcpd_request();
- break;
+ break;
case DHCPDECLINE:
vdbg("DHCPDECLINE\n");