You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
564 B
19 lines
564 B
14 years ago
|
--- a/networking/udhcp/dhcpc.c
|
||
|
+++ b/networking/udhcp/dhcpc.c
|
||
11 years ago
|
@@ -681,6 +681,7 @@ static int bcast_or_ucast(struct dhcp_pa
|
||
14 years ago
|
static NOINLINE int send_discover(uint32_t xid, uint32_t requested)
|
||
18 years ago
|
{
|
||
15 years ago
|
struct dhcp_packet packet;
|
||
18 years ago
|
+ static int msgs = 0;
|
||
|
|
||
14 years ago
|
/* Fill in: op, htype, hlen, cookie, chaddr fields,
|
||
|
* random xid field (we override it below),
|
||
11 years ago
|
@@ -698,6 +699,7 @@ static NOINLINE int send_discover(uint32
|
||
14 years ago
|
*/
|
||
14 years ago
|
add_client_options(&packet);
|
||
18 years ago
|
|
||
|
+ if (msgs++ < 3)
|
||
16 years ago
|
bb_info_msg("Sending discover...");
|
||
16 years ago
|
return raw_bcast_from_client_config_ifindex(&packet);
|
||
|
}
|