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