From aa087e1ce484478e926d461c82d20952c2a9b84e Mon Sep 17 00:00:00 2001 From: Julian Kranz Date: Sat, 28 Jan 2012 14:40:50 +0100 Subject: [PATCH] --- --- src/iodined.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); }