mirror of
https://github.com/yarrick/iodine.git
synced 2025-04-12 05:20:59 +00:00
---
This commit is contained in:
parent
2fb570ba72
commit
ee33069f6d
1 changed files with 2 additions and 2 deletions
|
@ -727,7 +727,7 @@ read_dns_withq(int dns_fd, int tun_fd, char *buf, int buflen, struct query *q)
|
|||
struct ip *hdr;
|
||||
hdr = (struct ip*) (buf + 4);
|
||||
|
||||
write_tun(tun_fd, buf, datalen, hdr->ip_v);
|
||||
write_tun(tun_fd, (unsigned char*)buf, datalen, hdr->ip_v);
|
||||
}
|
||||
|
||||
/* don't process any further */
|
||||
|
@ -1084,7 +1084,7 @@ tunnel_dns(int tun_fd, int dns_fd)
|
|||
struct ip *hdr;
|
||||
hdr = (struct ip*) (buf + 4);
|
||||
|
||||
write_tun(tun_fd, buf, datalen, hdr->ip_v);
|
||||
write_tun(tun_fd, (unsigned char*)buf, datalen, hdr->ip_v);
|
||||
}
|
||||
inpkt.len = 0;
|
||||
/* Keep .seqno and .fragment as is, so that we won't
|
||||
|
|
Loading…
Add table
Reference in a new issue