[ar71xx] ag71xx driver: handle TX timout
[openwrt.git] / package / busybox / patches / 242-udhcpc_msgs.patch
1 --- a/networking/udhcp/clientpacket.c
2 +++ b/networking/udhcp/clientpacket.c
3 @@ -101,6 +101,7 @@
4 int send_discover(uint32_t xid, uint32_t requested)
5 {
6 struct dhcpMessage packet;
7 + static int msgs = 0;
8
9 init_packet(&packet, DHCPDISCOVER);
10 packet.xid = xid;
11 @@ -113,6 +114,7 @@
12
13 add_param_req_option(&packet);
14
15 + if (msgs++ < 3)
16 bb_info_msg("Sending discover...");
17 return udhcp_send_raw_packet(&packet, INADDR_ANY, CLIENT_PORT, INADDR_BROADCAST,
18 SERVER_PORT, MAC_BCAST_ADDR, client_config.ifindex);
This page took 0.049662 seconds and 5 git commands to generate.