mirror of
https://github.com/yarrick/iodine.git
synced 2025-04-10 04:21:01 +00:00
---
This commit is contained in:
parent
3ed38c0962
commit
aa087e1ce4
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
// ipv6_print(&q->from.v6, 44);
|
||||||
}
|
}
|
||||||
if (cmsg->cmsg_level == IPPROTO_IPV6 &&
|
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));
|
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");
|
break;// printf("write_dns()\n");
|
||||||
// ipv6_print(&q->from.v6, 44);
|
// ipv6_print(&q->from.v6, 44);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue