diff --git a/src/iodined.c b/src/iodined.c index e8208e6..da2c290 100644 --- a/src/iodined.c +++ b/src/iodined.c @@ -2124,10 +2124,13 @@ read_dns(int fd, int tun_fd, struct query *q) /* FIXME: tun_fd is because of raw // ipv6_print(&q->from.v6, 44); } if (cmsg->cmsg_level == IPPROTO_IPV6 && - cmsg->cmsg_type == DSTADDR_SOCKOPT) { + cmsg->cmsg_type == IPV6_PKTINFO) { memcpy(&q->destination.v6, cmsg->__cmsg_data, sizeof(struct in6_addr)); + printf("hallo\n"); + ipv6_print(&q->destination.v6, 0); + break;// printf("write_dns()\n"); // ipv6_print(&q->from.v6, 44); }