summaryrefslogtreecommitdiff
path: root/nuttx/examples/dhcpd/target.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/examples/dhcpd/target.c')
-rw-r--r--nuttx/examples/dhcpd/target.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/nuttx/examples/dhcpd/target.c b/nuttx/examples/dhcpd/target.c
index 6977bf46a..7e2104dd7 100644
--- a/nuttx/examples/dhcpd/target.c
+++ b/nuttx/examples/dhcpd/target.c
@@ -46,6 +46,40 @@
#include <net/uip/dhcpd.h>
/****************************************************************************
+ * Preprocessor Definitions
+ ****************************************************************************/
+
+/* Configuation Checkes *****************************************************/
+/* BEWARE:
+ * There are other configuration settings needed in netutitls/dhcpd/dhcpdc.s,
+ * but there are default values for those so we cannot check them here.
+ */
+
+#ifndef CONFIG_EXAMPLE_DHCPD_IPADDR
+# error "You must define CONFIG_EXAMPLE_DHCPD_IPADDR"
+#endif
+
+#ifndef CONFIG_EXAMPLE_DHCPD_DRIPADDR
+# error "You must define "
+#endif
+
+#ifndef CONFIG_EXAMPLE_DHCPD_NETMASK
+# error "You must define CONFIG_EXAMPLE_DHCPD_NETMASK"
+#endif
+
+#ifndef CONFIG_NET
+# error "You must define CONFIG_NET"
+#endif
+
+#ifndef CONFIG_NET_UDP
+# error "You must define CONFIG_NET_UDP"
+#endif
+
+#ifndef CONFIG_NET_BROADCAST
+# error "You must define CONFIG_NET_BROADCAST"
+#endif
+
+/****************************************************************************
* Private Data
****************************************************************************/