ixp4xx-2.6/config: Removed the PPP config override to allow PPP modules to be built
[openwrt.git] / package / busybox / patches / 242-udhcpc_msgs.patch
1 Index: busybox-1.4.2/networking/udhcp/clientpacket.c
2 ===================================================================
3 --- busybox-1.4.2.orig/networking/udhcp/clientpacket.c 2007-06-04 13:21:32.270070872 +0200
4 +++ busybox-1.4.2/networking/udhcp/clientpacket.c 2007-06-04 13:21:33.813836184 +0200
5 @@ -78,6 +78,7 @@
6 int send_discover(unsigned long xid, unsigned long requested)
7 {
8 struct dhcpMessage packet;
9 + static int msgs = 0;
10
11 init_packet(&packet, DHCPDISCOVER);
12 packet.xid = xid;
13 @@ -85,7 +86,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.070739 seconds and 5 git commands to generate.