mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-12-04 15:34:33 +08:00
Redfine the variable and add a comment
This commit is contained in:
parent
750bc1d4f8
commit
854f4d91ef
6
dhcp.c
6
dhcp.c
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user