udhcpc[6]: remove superfluous "created raw socket" log message

function                                             old     new   delta
change_listen_mode                                   299     280     -19
.rodata                                           103272  103250     -22
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-41)             Total: -41 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2021-06-02 20:23:43 +02:00
parent 4bbc391c7f
commit 01daecca1d
3 changed files with 2 additions and 7 deletions

View File

@ -1063,9 +1063,6 @@ static int d6_raw_socket(int ifindex)
log1("attached filter to raw socket fd %d", fd); // log?
}
#endif
log1s("created raw socket");
return fd;
}

View File

@ -1093,8 +1093,6 @@ static int udhcp_raw_socket(int ifindex)
log1s("can't set PACKET_AUXDATA on raw socket");
}
log1s("created raw socket");
return fd;
}
@ -1701,7 +1699,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
}
/*xid = packet.xid; - already is */
temp_addr.s_addr = requested_ip = packet.yiaddr;
log1("received an offer of %s", inet_ntoa(temp_addr));
log1("received offer of %s", inet_ntoa(temp_addr));
/* enter requesting state */
client_data.state = REQUESTING;

View File

@ -82,7 +82,7 @@ int FAST_FUNC udhcp_listen_socket(/*uint32_t ip,*/ int port, const char *inf)
struct sockaddr_in addr;
char *colon;
log1("opening listen socket on *:%d %s", port, inf);
log2("opening listen socket on *:%d %s", port, inf);
fd = xsocket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
setsockopt_reuseaddr(fd);