dhcpc: let server know we don't like oversized packets.

add TODO comment
This commit is contained in:
Denis Vlasenko
2007-11-28 19:23:12 +00:00
parent 41f5add965
commit 35ff74676b
6 changed files with 58 additions and 47 deletions

View File

@ -96,6 +96,9 @@ int send_discover(uint32_t xid, uint32_t requested)
if (requested)
add_simple_option(packet.options, DHCP_REQUESTED_IP, requested);
/* Explicitly saying that we want RFC-compliant packets helps
* some buggy DHCP servers to NOT send bigger packets */
add_simple_option(packet.options, DHCP_MAX_SIZE, htons(576));
add_requests(&packet);
bb_info_msg("Sending discover...");
return udhcp_raw_packet(&packet, INADDR_ANY, CLIENT_PORT, INADDR_BROADCAST,