summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-03-31 12:33:52 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-03-31 12:33:52 -0600
commit8e3d1b457ce29fdff04cebb70235a5a2ceb85705 (patch)
tree069e8f2997bd4b8e4807c836259d949cd80a76dd
parentceaab68ab85dbb6e92dbbfdb7bd09260bb28b43b (diff)
downloadnuttx-8e3d1b457ce29fdff04cebb70235a5a2ceb85705.tar.gz
nuttx-8e3d1b457ce29fdff04cebb70235a5a2ceb85705.tar.bz2
nuttx-8e3d1b457ce29fdff04cebb70235a5a2ceb85705.zip
DHCPD: Correct value of PAD option is 0, not 1. From Brennan Ashton
-rw-r--r--apps/ChangeLog.txt2
-rw-r--r--apps/netutils/dhcpd/dhcpd.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/apps/ChangeLog.txt b/apps/ChangeLog.txt
index 3bcbec540..3c8a54fa6 100644
--- a/apps/ChangeLog.txt
+++ b/apps/ChangeLog.txt
@@ -869,4 +869,6 @@
* apps/system/usbmsc: Back out the USBMSC daemon... it is no longer
needed with the recent fix to the USBMSC class driver (2014-3-25).
* apps/examplex/lcdrw: Fill out empty Kconfig file (2014-2-27).
+ * apps/netutils/dhcpd/dhcpd.c: The correct value of the PAD option
+ is zero, not one. From Brennan Ashton (2014-3-31).
diff --git a/apps/netutils/dhcpd/dhcpd.c b/apps/netutils/dhcpd/dhcpd.c
index ff6eabf94..0f89daa81 100644
--- a/apps/netutils/dhcpd/dhcpd.c
+++ b/apps/netutils/dhcpd/dhcpd.c
@@ -84,7 +84,7 @@
/* Option codes understood in this file */
/* Code Data Description */
/* Length */
-#define DHCP_OPTION_PAD 1 /* 1 Pad */
+#define DHCP_OPTION_PAD 0 /* 1 Pad */
#define DHCP_OPTION_REQ_IPADDR 50 /* 4 Requested IP Address */
#define DHCP_OPTION_LEASE_TIME 51 /* 4 IP address lease time */
#define DHCP_OPTION_OVERLOAD 52 /* 1 Option overload */