lantiq: Tune the XWAY subtarget cflags
[openwrt/staging/yousong.git] / package / busybox / patches / 242-udhcpc_msgs.patch
1 --- a/networking/udhcp/dhcpc.c
2 +++ b/networking/udhcp/dhcpc.c
3 @@ -602,6 +602,7 @@ static int raw_bcast_from_client_config_
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),
11 @@ -619,6 +620,7 @@ static NOINLINE int send_discover(uint32
12 */
13 add_client_options(&packet);
14
15 + if (msgs++ < 3)
16 bb_info_msg("Sending discover...");
17 return raw_bcast_from_client_config_ifindex(&packet);
18 }