2008-08-20 14:00:34 +00:00
|
|
|
--- a/networking/udhcp/clientpacket.c
|
|
|
|
+++ b/networking/udhcp/clientpacket.c
|
2009-02-21 15:07:45 +00:00
|
|
|
@@ -101,6 +101,7 @@ int send_decline(uint32_t xid, uint32_t
|
2007-10-30 20:36:25 +00:00
|
|
|
int 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-02-21 15:07:45 +00:00
|
|
|
@@ -113,6 +114,7 @@ int send_discover(uint32_t xid, uint32_t
|
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...");
|
|
|
|
return udhcp_send_raw_packet(&packet, INADDR_ANY, CLIENT_PORT, INADDR_BROADCAST,
|
2007-05-14 16:05:17 +00:00
|
|
|
SERVER_PORT, MAC_BCAST_ADDR, client_config.ifindex);
|