[package] kernel: further fixes to kmod-gre packaging
[openwrt.git] / package / busybox / patches / 242-udhcpc_msgs.patch
1 --- a/networking/udhcp/dhcpc.c
2 +++ b/networking/udhcp/dhcpc.c
3 @@ -428,6 +428,7 @@ static int raw_bcast_from_client_config_
4 static int send_discover(uint32_t xid, uint32_t requested)
5 {
6 struct dhcp_packet packet;
7 + static int msgs = 0;
8
9 init_packet(&packet, DHCPDISCOVER);
10 packet.xid = xid;
11 @@ -438,6 +439,7 @@ static int send_discover(uint32_t xid, u
12 udhcp_add_simple_option(&packet, DHCP_MAX_SIZE, htons(576));
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 }
This page took 0.059009 seconds and 5 git commands to generate.