[package] busybox: update to v1.13.4 (closes: #4279)
[openwrt-10.03/.git] / package / busybox / patches / 242-udhcpc_msgs.patch
1 --- a/networking/udhcp/clientpacket.c
2 +++ b/networking/udhcp/clientpacket.c
3 @@ -126,6 +126,7 @@ int FAST_FUNC send_decline(uint32_t xid,
4  int FAST_FUNC 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 @@ -138,6 +139,7 @@ int FAST_FUNC send_discover(uint32_t xid
12  
13         add_param_req_option(&packet);
14  
15 +       if (msgs++ < 3)
16         bb_info_msg("Sending discover...");
17         return raw_bcast_from_client_config_ifindex(&packet);
18  }