aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/clientpacket.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/clientpacket.c')
-rw-r--r--networking/udhcp/clientpacket.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/networking/udhcp/clientpacket.c b/networking/udhcp/clientpacket.c
index 4a5c627f4..406fe340a 100644
--- a/networking/udhcp/clientpacket.c
+++ b/networking/udhcp/clientpacket.c
@@ -96,6 +96,9 @@ int send_discover(uint32_t xid, uint32_t requested)
96 if (requested) 96 if (requested)
97 add_simple_option(packet.options, DHCP_REQUESTED_IP, requested); 97 add_simple_option(packet.options, DHCP_REQUESTED_IP, requested);
98 98
99 /* Explicitly saying that we want RFC-compliant packets helps
100 * some buggy DHCP servers to NOT send bigger packets */
101 add_simple_option(packet.options, DHCP_MAX_SIZE, htons(576));
99 add_requests(&packet); 102 add_requests(&packet);
100 bb_info_msg("Sending discover..."); 103 bb_info_msg("Sending discover...");
101 return udhcp_raw_packet(&packet, INADDR_ANY, CLIENT_PORT, INADDR_BROADCAST, 104 return udhcp_raw_packet(&packet, INADDR_ANY, CLIENT_PORT, INADDR_BROADCAST,