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