]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix to print debug log for ancillary data with correct IP address.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 16 May 2023 07:21:21 +0000 (09:21 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 16 May 2023 07:21:21 +0000 (09:21 +0200)
doc/Changelog
util/netevent.c

index 5d18fb7cc5dc0022ef8779d8c612e1e771041f9f..8923aa857e0162dad50f7e645514c99ef470ab65 100644 (file)
@@ -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.
index 6ca51622b54ccd41890c503e73009f59f379b915..75bbae35c019264e6abd2827e340db7e35e3d40e 100644 (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));
        }
 #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 */