ntpd: log responses to clients at log level 3
function old new delta recv_and_process_client_pkt 670 706 +36 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
2620d38714
commit
855aeacfba
@ -2153,6 +2153,12 @@ recv_and_process_client_pkt(void /*int fd*/)
|
|||||||
do_sendto(G_listen_fd,
|
do_sendto(G_listen_fd,
|
||||||
/*from:*/ &to->u.sa, /*to:*/ from, /*addrlen:*/ to->len,
|
/*from:*/ &to->u.sa, /*to:*/ from, /*addrlen:*/ to->len,
|
||||||
&msg, size);
|
&msg, size);
|
||||||
|
VERB3 {
|
||||||
|
char *addr;
|
||||||
|
addr = xmalloc_sockaddr2dotted_noport(from);
|
||||||
|
bb_error_msg("responded to query from %s", addr);
|
||||||
|
free(addr);
|
||||||
|
}
|
||||||
|
|
||||||
bail:
|
bail:
|
||||||
free(to);
|
free(to);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user