2010-08-15 09:53:21 +00:00
|
|
|
--- a/networking/udhcp/dhcpc.c
|
|
|
|
+++ b/networking/udhcp/dhcpc.c
|
2018-07-31 13:55:42 +00:00
|
|
|
@@ -705,6 +705,7 @@ static int bcast_or_ucast(struct dhcp_pa
|
2011-04-20 02:56:23 +00:00
|
|
|
static NOINLINE 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;
|
|
|
|
|
2011-04-20 02:56:23 +00:00
|
|
|
/* Fill in: op, htype, hlen, cookie, chaddr fields,
|
|
|
|
* random xid field (we override it below),
|
2018-07-31 13:55:42 +00:00
|
|
|
@@ -722,6 +723,7 @@ static NOINLINE int send_discover(uint32
|
2011-04-20 02:56:23 +00:00
|
|
|
*/
|
2010-08-15 09:53:21 +00:00
|
|
|
add_client_options(&packet);
|
2007-05-14 16:05:17 +00:00
|
|
|
|
|
|
|
+ if (msgs++ < 3)
|
2016-09-18 21:26:26 +00:00
|
|
|
bb_error_msg("sending %s", "discover");
|
|
|
|
return raw_bcast_from_client_config_ifindex(&packet, INADDR_ANY);
|
2009-05-25 17:15:39 +00:00
|
|
|
}
|