add username/password options to ipkg, note this only works if you have a real wget...
[openwrt.git] / package / busybox / patches / 242-udhcpc_msgs.patch
1 Index: busybox-1.7.2/networking/udhcp/clientpacket.c
2 ===================================================================
3 --- busybox-1.7.2.orig/networking/udhcp/clientpacket.c 2007-10-30 15:35:00.000000000 -0500
4 +++ busybox-1.7.2/networking/udhcp/clientpacket.c 2007-10-30 15:35:02.000000000 -0500
5 @@ -74,6 +74,7 @@
6 int send_discover(uint32_t xid, uint32_t requested)
7 {
8 struct dhcpMessage packet;
9 + static int msgs = 0;
10
11 init_packet(&packet, DHCPDISCOVER);
12 packet.xid = xid;
13 @@ -81,7 +82,8 @@
14 add_simple_option(packet.options, DHCP_REQUESTED_IP, requested);
15
16 add_requests(&packet);
17 - bb_info_msg("Sending discover...");
18 + if (msgs++ < 3)
19 + bb_info_msg("Sending discover...");
20 return udhcp_raw_packet(&packet, INADDR_ANY, CLIENT_PORT, INADDR_BROADCAST,
21 SERVER_PORT, MAC_BCAST_ADDR, client_config.ifindex);
22 }
This page took 0.042827 seconds and 5 git commands to generate.