Redfine the variable and add a comment

This commit is contained in:
Roy Marples 2007-04-12 06:52:51 +00:00
parent 750bc1d4f8
commit 854f4d91ef
2 changed files with 5 additions and 3 deletions

6
dhcp.c
View File

@ -246,8 +246,10 @@ size_t send_message (const interface_t *iface, const dhcp_t *dhcp,
*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

2
dhcp.h
View File

@ -168,7 +168,7 @@ typedef struct dhcp_t
- 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
{