2008-08-20 14:00:34 +00:00
|
|
|
--- a/networking/udhcp/clientpacket.c
|
|
|
|
+++ b/networking/udhcp/clientpacket.c
|
2009-05-25 17:15:39 +00:00
|
|
|
@@ -126,6 +126,7 @@ int FAST_FUNC send_decline(uint32_t xid,
|
|
|
|
int FAST_FUNC send_discover(uint32_t xid, uint32_t requested)
|
2007-05-14 16:05:17 +00:00
|
|
|
{
|
|
|
|
struct dhcpMessage packet;
|
|
|
|
+ static int msgs = 0;
|
|
|
|
|
|
|
|
init_packet(&packet, DHCPDISCOVER);
|
|
|
|
packet.xid = xid;
|
2009-05-25 17:15:39 +00:00
|
|
|
@@ -138,6 +139,7 @@ int FAST_FUNC send_discover(uint32_t xid
|
2008-08-20 14:00:34 +00:00
|
|
|
|
|
|
|
add_param_req_option(&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);
|
|
|
|
}
|