From: W.C.A. Wijngaards Date: Tue, 16 May 2023 07:21:21 +0000 (+0200) Subject: - Fix to print debug log for ancillary data with correct IP address. X-Git-Tag: release-1.18.0rc1~24^2~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a07ccbae9aad7f2d3e119d26e58c0cfde34920a1;p=thirdparty%2Funbound.git - Fix to print debug log for ancillary data with correct IP address. --- diff --git a/doc/Changelog b/doc/Changelog index 5d18fb7cc..8923aa857 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,6 @@ 16 May 2023: Wouter - Fix #888: [FR] Use kernel timestamps for dnstap. + - Fix to print debug log for ancillary data with correct IP address. 11 May 2023: Wouter - Fix warning in windows compile, in set_recvtimestamp. diff --git a/util/netevent.c b/util/netevent.c index 6ca51622b..75bbae35c 100644 --- a/util/netevent.c +++ b/util/netevent.c @@ -626,7 +626,7 @@ comm_point_send_udp_msg_if(struct comm_point *c, sldns_buffer* packet, cmsg->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); } #endif /* S_SPLINT_S */ - if(verbosity >= VERB_ALGO) + if(verbosity >= VERB_ALGO && r->srctype != 0) p_ancil("send_udp over interface", r); sent = sendmsg(c->fd, &msg, 0); if(sent == -1) { @@ -925,7 +925,7 @@ comm_point_udp_ancil_callback(int fd, short event, void* arg) } } - if(verbosity >= VERB_ALGO) + if(verbosity >= VERB_ALGO && rep.srctype != 0) p_ancil("receive_udp on interface", &rep); #endif /* S_SPLINT_S */