*p++ = DHCP_END;
-#ifdef DHCP_MESSAGE_LENTH_MIN
- while (p - m < DHCP_MESSAGE_LENTH_MIN)
+#ifdef BOOTP_MESSAGE_LENTH_MIN
+ /* Some crappy DHCP servers think they have to obey the BOOTP minimum
+ * messag length. They are wrong, but we should still cater for them */
+ while (p - m < BOOTP_MESSAGE_LENTH_MIN)
*p++ = DHCP_PAD;
#endif
- DHCP_RESERVE_LEN)
/* Some crappy DHCP servers require the BOOTP minimum length */
-#define DHCP_MESSAGE_LENTH_MIN 300
+#define BOOTP_MESSAGE_LENTH_MIN 300
typedef struct dhcpmessage_t
{