summaryrefslogtreecommitdiff
path: root/libdhcp
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-12 13:19:09 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-12 13:23:33 -0700
commit5be7b1ebd1ab2bce1d53552b627fe55f425bdb38 (patch)
tree890cda05f97bac976c2120ade2df79408bd40c82 /libdhcp
parentaec7a1209a7c2314acc5703a94509a403c796444 (diff)
Fuss with compile-time config
Diffstat (limited to 'libdhcp')
-rw-r--r--libdhcp/dhcp_client.c6
-rw-r--r--libdhcp/dhcp_common.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/libdhcp/dhcp_client.c b/libdhcp/dhcp_client.c
index 3673d2c..a7b1d49 100644
--- a/libdhcp/dhcp_client.c
+++ b/libdhcp/dhcp_client.c
@@ -99,13 +99,13 @@
#include "config.h"
#ifndef CONFIG_DHCP_DEBUG
- #define CONFIG_DHCP_DEBUG 1
+ #error config.h must define CONFIG_DHCP_DEBUG
#endif
#ifndef CONFIG_DHCP_SELECTING_NS
- #define CONFIG_DHCP_SELECTING_NS (5*NS_PER_S)
+ #error config.h must define CONFIG_DHCP_SELECTING_NS
#endif
#ifndef CONFIG_DHCP_CAN_RECV_UNICAST_IP_WITHOUT_IP
- #define CONFIG_DHCP_CAN_RECV_UNICAST_IP_WITHOUT_IP false
+ #error config.h must define CONFIG_DHCP_CAN_RECV_UNICAST_IP_WITHOUT_IP
#endif
/* Implementation *************************************************************/
diff --git a/libdhcp/dhcp_common.h b/libdhcp/dhcp_common.h
index d400721..b265df3 100644
--- a/libdhcp/dhcp_common.h
+++ b/libdhcp/dhcp_common.h
@@ -74,7 +74,7 @@
#include "config.h"
#ifndef CONFIG_DHCP_OPT_SIZE
- #define CONFIG_DHCP_OPT_SIZE DHCP_MSG_MIN_MAX_OPT_SIZE
+ #error config.h must define CONFIG_DHCP_OPT_SIZE (minimum 312)
#endif
/* RFC 2131 definitions *******************************************************/