2010-08-15 12:53:21 +03:00
|
|
|
--- a/networking/udhcp/dhcpc.c
|
|
|
|
+++ b/networking/udhcp/dhcpc.c
|
2012-10-08 15:31:27 +03:00
|
|
|
@@ -602,6 +602,7 @@ static int raw_bcast_from_client_config_
|
2011-04-20 05:56:23 +03:00
|
|
|
static NOINLINE int send_discover(uint32_t xid, uint32_t requested)
|
2007-05-14 19:05:17 +03:00
|
|
|
{
|
2009-12-07 18:56:04 +02:00
|
|
|
struct dhcp_packet packet;
|
2007-05-14 19:05:17 +03:00
|
|
|
+ static int msgs = 0;
|
|
|
|
|
2011-04-20 05:56:23 +03:00
|
|
|
/* Fill in: op, htype, hlen, cookie, chaddr fields,
|
|
|
|
* random xid field (we override it below),
|
2012-10-08 15:31:27 +03:00
|
|
|
@@ -619,6 +620,7 @@ static NOINLINE int send_discover(uint32
|
2011-04-20 05:56:23 +03:00
|
|
|
*/
|
2010-08-15 12:53:21 +03:00
|
|
|
add_client_options(&packet);
|
2007-05-14 19:05:17 +03:00
|
|
|
|
|
|
|
+ if (msgs++ < 3)
|
2008-08-20 17:00:34 +03:00
|
|
|
bb_info_msg("Sending discover...");
|
2009-05-25 20:15:39 +03:00
|
|
|
return raw_bcast_from_client_config_ifindex(&packet);
|
|
|
|
}
|