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