OpenWrt – Blame information for rev 3

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 --- a/networking/udhcp/dhcpc.c
2 +++ b/networking/udhcp/dhcpc.c
3 office 3 @@ -711,6 +711,7 @@ static int bcast_or_ucast(struct dhcp_pa
1 office 4 static NOINLINE int send_discover(uint32_t xid, uint32_t requested)
5 {
6 struct dhcp_packet packet;
7 + static int msgs = 0;
8  
9 /* Fill in: op, htype, hlen, cookie, chaddr fields,
10 * random xid field (we override it below),
3 office 11 @@ -728,6 +729,7 @@ static NOINLINE int send_discover(uint32
1 office 12 */
13 add_client_options(&packet);
14  
15 + if (msgs++ < 3)
16 bb_error_msg("sending %s", "discover");
17 return raw_bcast_from_client_config_ifindex(&packet, INADDR_ANY);
18 }