aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-07-21 12:04:22 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-07-21 12:04:22 +0200
commit168f0ef8ddb6c840662bd15bad86177b0d238120 (patch)
tree4df19353fb0fe0d88fc4b21b8dfd5577e8f20a25 /networking/udhcp/dhcpc.c
parenta680f40bfef135bf0511bbbdb5c2f6f4c4adea7c (diff)
downloadbusybox-w32-168f0ef8ddb6c840662bd15bad86177b0d238120.tar.gz
busybox-w32-168f0ef8ddb6c840662bd15bad86177b0d238120.tar.bz2
busybox-w32-168f0ef8ddb6c840662bd15bad86177b0d238120.zip
udhcpc[6]: on log level 1, three messages about raw socket is overkill
Move first two messages to log2 level: 08:46:32.23824 udhcpc: opening raw socket on ifindex 2 08:46:32.23825 udhcpc: got raw socket fd 08:46:32.26354 udhcpc: created raw socket Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r--networking/udhcp/dhcpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 1a66c610e..932a956af 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -1001,14 +1001,14 @@ static int udhcp_raw_socket(int ifindex)
1001 int fd; 1001 int fd;
1002 struct sockaddr_ll sock; 1002 struct sockaddr_ll sock;
1003 1003
1004 log1("opening raw socket on ifindex %d", ifindex); //log2? 1004 log2("opening raw socket on ifindex %d", ifindex);
1005 1005
1006 fd = xsocket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP)); 1006 fd = xsocket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP));
1007 /* ^^^^^ 1007 /* ^^^^^
1008 * SOCK_DGRAM: remove link-layer headers on input (SOCK_RAW keeps them) 1008 * SOCK_DGRAM: remove link-layer headers on input (SOCK_RAW keeps them)
1009 * ETH_P_IP: want to receive only packets with IPv4 eth type 1009 * ETH_P_IP: want to receive only packets with IPv4 eth type
1010 */ 1010 */
1011 log1("got raw socket fd"); //log2? 1011 log2("got raw socket fd");
1012 1012
1013 sock.sll_family = AF_PACKET; 1013 sock.sll_family = AF_PACKET;
1014 sock.sll_protocol = htons(ETH_P_IP); 1014 sock.sll_protocol = htons(ETH_P_IP);