2010-08-15 17:53:21 +08:00
|
|
|
--- a/networking/udhcp/dhcpc.c
|
|
|
|
+++ b/networking/udhcp/dhcpc.c
|
2014-05-26 01:42:09 +08:00
|
|
|
@@ -681,6 +681,7 @@ static int bcast_or_ucast(struct dhcp_pa
|
2011-04-20 10:56:23 +08:00
|
|
|
static NOINLINE int send_discover(uint32_t xid, uint32_t requested)
|
2007-05-15 00:05:17 +08:00
|
|
|
{
|
2009-12-08 00:56:04 +08:00
|
|
|
struct dhcp_packet packet;
|
2007-05-15 00:05:17 +08:00
|
|
|
+ static int msgs = 0;
|
|
|
|
|
2011-04-20 10:56:23 +08:00
|
|
|
/* Fill in: op, htype, hlen, cookie, chaddr fields,
|
|
|
|
* random xid field (we override it below),
|
2014-05-26 01:42:09 +08:00
|
|
|
@@ -698,6 +699,7 @@ static NOINLINE int send_discover(uint32
|
2011-04-20 10:56:23 +08:00
|
|
|
*/
|
2010-08-15 17:53:21 +08:00
|
|
|
add_client_options(&packet);
|
2007-05-15 00:05:17 +08:00
|
|
|
|
|
|
|
+ if (msgs++ < 3)
|
2008-08-20 22:00:34 +08:00
|
|
|
bb_info_msg("Sending discover...");
|
2009-05-26 01:15:39 +08:00
|
|
|
return raw_bcast_from_client_config_ifindex(&packet);
|
|
|
|
}
|