From e554bcb744c4e8411cc923d184bd4efad1d7c870 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 14 May 2007 16:05:17 +0000 Subject: make udhcpc silent after 3 'Sending discover ...' messages git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7227 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/busybox/patches/242-udhcpc_msgs.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 package/busybox/patches/242-udhcpc_msgs.patch (limited to 'package/busybox') diff --git a/package/busybox/patches/242-udhcpc_msgs.patch b/package/busybox/patches/242-udhcpc_msgs.patch new file mode 100644 index 0000000000..e8bdfeb138 --- /dev/null +++ b/package/busybox/patches/242-udhcpc_msgs.patch @@ -0,0 +1,21 @@ +diff -ur busybox.old/networking/udhcp/clientpacket.c busybox.dev/networking/udhcp/clientpacket.c +--- busybox.old/networking/udhcp/clientpacket.c 2007-03-18 17:59:24.000000000 +0100 ++++ busybox.dev/networking/udhcp/clientpacket.c 2007-05-14 16:03:26.698979472 +0200 +@@ -78,6 +78,7 @@ + int send_discover(unsigned long xid, unsigned long requested) + { + struct dhcpMessage packet; ++ static int msgs = 0; + + init_packet(&packet, DHCPDISCOVER); + packet.xid = xid; +@@ -85,7 +86,8 @@ + add_simple_option(packet.options, DHCP_REQUESTED_IP, requested); + + add_requests(&packet); +- bb_info_msg("Sending discover..."); ++ if (msgs++ < 3) ++ bb_info_msg("Sending discover..."); + return udhcp_raw_packet(&packet, INADDR_ANY, CLIENT_PORT, INADDR_BROADCAST, + SERVER_PORT, MAC_BCAST_ADDR, client_config.ifindex); + } -- cgit v1.2.3 ref='/cgit/xen/xen/'>summaryrefslogtreecommitdiffstats
path: root/docs/ChangeLog
blob: e7baffeb9fa264b6829ef73b67f74eb8ea2e8f66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106