diff --git a/src/common.c b/src/common.c index 264c5e0..25df8df 100644 --- a/src/common.c +++ b/src/common.c @@ -457,7 +457,7 @@ char *ipv6_str(struct in6_addr *ip) { size_t position = 0; for (i = 0; i < 8; ++i) position += sprintf(str + position, "%04x%s", ntohs(ip->__in6_u.__u6_addr16[i]), i < 7 ? ":" - : "/"); + : ""); str[size - 1] = 0; return str; } diff --git a/src/iodined.c b/src/iodined.c index 60a60dc..6ade898 100644 --- a/src/iodined.c +++ b/src/iodined.c @@ -1728,8 +1728,6 @@ tunnel_dns(int tun_fd, int dns_fd, int bind_fd) if ((read = read_dns(dns_fd, tun_fd, &q)) <= 0) return 0; - printf("DEBUG - 0\n"); - if (debug >= 2) { struct sockaddr_in *tempin; tempin = (struct sockaddr_in *) &(q.from); @@ -2114,7 +2112,7 @@ read_dns(int fd, int tun_fd, struct query *q) /* FIXME: tun_fd is because of raw r = recvmsg(fd, &msg, 0); - printf("[DEBUG] read_dns() - Received message...\n"); +// printf("[DEBUG] read_dns() - Received message...\n"); #else addrlen = sizeof(struct sockaddr); @@ -2135,9 +2133,6 @@ read_dns(int fd, int tun_fd, struct query *q) /* FIXME: tun_fd is because of raw #ifdef LINUX } #endif - - ipv6_print(&(from6.sin6_addr), 42); - /* TODO do not handle raw packets here! */ if (raw_decode(packet, r, q, fd, tun_fd)) { return 0;