Keep debug printf to monitor activity
This commit is contained in:
parent
7dd28d9095
commit
5264dbe2b1
1
dnstun.c
1
dnstun.c
|
@ -80,6 +80,7 @@ tunnel(int tun_fd, int dns_fd)
|
||||||
if(FD_ISSET(tun_fd, &fds)) {
|
if(FD_ISSET(tun_fd, &fds)) {
|
||||||
read = read_tun(tun_fd, frame, FRAMESIZE);
|
read = read_tun(tun_fd, frame, FRAMESIZE);
|
||||||
if (read > 0) {
|
if (read > 0) {
|
||||||
|
printf("Got data on tun! %d bytes\n", read);
|
||||||
buflen = sizeof(buf);
|
buflen = sizeof(buf);
|
||||||
compress2(buf, &buflen, frame->data, read - 4, 9);
|
compress2(buf, &buflen, frame->data, read - 4, 9);
|
||||||
dns_handle_tun(dns_fd, buf, buflen);
|
dns_handle_tun(dns_fd, buf, buflen);
|
||||||
|
|
Loading…
Reference in New Issue