2010-08-15 09:53:21 +00:00
|
|
|
--- a/networking/udhcp/dhcpc.c
|
|
|
|
+++ b/networking/udhcp/dhcpc.c
|
|
|
|
@@ -428,6 +428,7 @@ static int raw_bcast_from_client_config_
|
|
|
|
static int send_discover(uint32_t xid, uint32_t requested)
|
2007-05-14 16:05:17 +00:00
|
|
|
{
|
2009-12-07 16:56:04 +00:00
|
|
|
struct dhcp_packet packet;
|
2007-05-14 16:05:17 +00:00
|
|
|
+ static int msgs = 0;
|
|
|
|
|
|
|
|
init_packet(&packet, DHCPDISCOVER);
|
|
|
|
packet.xid = xid;
|
2010-08-15 09:53:21 +00:00
|
|
|
@@ -438,6 +439,7 @@ static int send_discover(uint32_t xid, u
|
|
|
|
udhcp_add_simple_option(&packet, DHCP_MAX_SIZE, htons(576));
|
|
|
|
add_client_options(&packet);
|
2007-05-14 16:05:17 +00:00
|
|
|
|
|
|
|
+ if (msgs++ < 3)
|
2008-08-20 14:00:34 +00:00
|
|
|
bb_info_msg("Sending discover...");
|
2009-05-25 17:15:39 +00:00
|
|
|
return raw_bcast_from_client_config_ifindex(&packet);
|
|
|
|
}
|