mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-23 00:29:20 +02:00
put packets on the tun
This commit is contained in:
parent
558a29f79c
commit
ce6ff57280
|
@ -74,17 +74,8 @@ tunnel(int tun_fd, int dns_fd)
|
||||||
}
|
}
|
||||||
if(FD_ISSET(dns_fd, &fds)) {
|
if(FD_ISSET(dns_fd, &fds)) {
|
||||||
read = dnsd_read(dns_fd, buf, sizeof(buf));
|
read = dnsd_read(dns_fd, buf, sizeof(buf));
|
||||||
int fd;
|
|
||||||
|
|
||||||
if(read > 0) {
|
|
||||||
fd = open("moo", O_WRONLY | O_CREAT, S_IRUSR | S_IRGRP | S_IROTH);
|
|
||||||
write(fd, buf, read);
|
|
||||||
close(fd);
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
if(read > 0)
|
if(read > 0)
|
||||||
write_tun(tun_fd, buf, read);
|
write_tun(tun_fd, buf, read);
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue