- Fix to print debug log for ancillary data with correct IP address.

This commit is contained in:
W.C.A. Wijngaards 2023-05-16 09:21:21 +02:00
parent 2a2598dbf2
commit a07ccbae9a
2 changed files with 3 additions and 2 deletions

View file

@ -1,5 +1,6 @@
16 May 2023: Wouter 16 May 2023: Wouter
- Fix #888: [FR] Use kernel timestamps for dnstap. - Fix #888: [FR] Use kernel timestamps for dnstap.
- Fix to print debug log for ancillary data with correct IP address.
11 May 2023: Wouter 11 May 2023: Wouter
- Fix warning in windows compile, in set_recvtimestamp. - Fix warning in windows compile, in set_recvtimestamp.

View file

@ -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)); cmsg->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo));
} }
#endif /* S_SPLINT_S */ #endif /* S_SPLINT_S */
if(verbosity >= VERB_ALGO) if(verbosity >= VERB_ALGO && r->srctype != 0)
p_ancil("send_udp over interface", r); p_ancil("send_udp over interface", r);
sent = sendmsg(c->fd, &msg, 0); sent = sendmsg(c->fd, &msg, 0);
if(sent == -1) { 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); p_ancil("receive_udp on interface", &rep);
#endif /* S_SPLINT_S */ #endif /* S_SPLINT_S */