mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-23 00:29:20 +02:00
prepend correct header
This commit is contained in:
parent
efc2ec5665
commit
e5138b6adb
4
dnstun.c
4
dnstun.c
|
@ -89,8 +89,8 @@ tunnel(int tun_fd, int dns_fd)
|
||||||
if (read > 0) {
|
if (read > 0) {
|
||||||
printf("Got data on dns! %d bytes\n", read);
|
printf("Got data on dns! %d bytes\n", read);
|
||||||
|
|
||||||
frame->flags = 0x0000;
|
frame->flags = htons(0x0000);
|
||||||
frame->proto = 0x0800;
|
frame->proto = htons(0x0800);
|
||||||
write_tun(tun_fd, frame, read + 4);
|
write_tun(tun_fd, frame, read + 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue