]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
no more debug prints for auto ifs.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 23 Jan 2008 08:49:57 +0000 (08:49 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 23 Jan 2008 08:49:57 +0000 (08:49 +0000)
git-svn-id: file:///svn/unbound/trunk@889 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
doc/README
util/netevent.c

index 473e4e25e7eda1fce918fd09d629f9415e9d714f..c420775423d982b8c4441fb0ff9bd64b2a9e09b9 100644 (file)
@@ -1,3 +1,6 @@
+23 January 2008: Wouter
+       - removed debug prints from if-auto, verb-algo enables some.
+
 22 January 2008: Wouter
        - library code for async in libunbound/unbound.c.
        - fix link testbound.
index 9c7ecc9e12ed76619c117ff87ff329f2c4ca4336..d965801f692940504f582834edb25192e50522ce 100644 (file)
@@ -59,6 +59,12 @@ o If you receive no answers deploying unbound on a private network.
   in fact those same, working, ip-addresses. Unbound will fetch the NS data
   from the zone and use that information in preference to the config 
   information. 
+o If you are not receiving the correct source IP address on replies (e.g.
+  you are running a multihomed, anycast server), the interface-automatic
+  option can be enabled to set socket options to achieve the correct
+  source IP address on UDP replies. Listing all IP addresses explicitly in
+  the config file is an alternative. The interface-automatic option uses
+  non portable socket options, Linux and FreeBSD should work fine.
 
 Acknowledgements
 ----------------
index 6a0a3d10e4695ede1ecd04eab2f2fd231c924be8..5587a26f1f1035ff7cfcf6aa4201cc0c93aef917 100644 (file)
@@ -289,7 +289,8 @@ comm_point_send_udp_msg_if(struct comm_point *c, ldns_buffer* packet,
        msg.msg_controllen = cmsg->cmsg_len;
 #endif /* S_SPLINT_S */
 
-       p_ancil("send_udp over interface", r);
+       if(verbosity >= VERB_ALGO)
+               p_ancil("send_udp over interface", r);
        sent = sendmsg(c->fd, &msg, 0);
        if(sent == -1) {
                verbose(VERB_OPS, "sendmsg failed: %s", strerror(errno));
@@ -354,16 +355,6 @@ comm_point_udp_ancil_callback(int fd, short event, void* arg)
 #ifndef S_SPLINT_S
        for(cmsg = CMSG_FIRSTHDR(&msg); cmsg != NULL;
                cmsg = CMSG_NXTHDR(&msg, cmsg)) {
-               log_info("looking at hdr %d %d (need %d %d or %d %d)",
-                       cmsg->cmsg_level, cmsg->cmsg_type,
-                       IPPROTO_IPV6, IPV6_PKTINFO,
-                       IPPROTO_IP, 
-#ifdef IP_RECVDSTADDR
-                       IP_RECVDSTADDR
-#elif defined(IP_PKTINFO)
-                       IP_PKTINFO
-#endif
-                       );
                if( cmsg->cmsg_level == IPPROTO_IPV6 &&
                        cmsg->cmsg_type == IPV6_PKTINFO) {
                        rep.srctype = 6;
@@ -387,7 +378,8 @@ comm_point_udp_ancil_callback(int fd, short event, void* arg)
 #endif
                }
        }
-       p_ancil("receive_udp on interface", &rep);
+       if(verbosity >= VERB_ALGO)
+               p_ancil("receive_udp on interface", &rep);
 #endif /* S_SPLINT_S */
        log_assert(fptr_whitelist_comm_point(rep.c->callback));
        if((*rep.c->callback)(rep.c, rep.c->cb_arg, NETEVENT_NOERROR, &rep)) {