From ce6ff57280a03101c17bb95bd090c55799481220 Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Mon, 5 Jun 2006 22:45:11 +0000 Subject: [PATCH] put packets on the tun --- dnstund.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/dnstund.c b/dnstund.c index f07097c..f1c8ebf 100644 --- a/dnstund.c +++ b/dnstund.c @@ -74,17 +74,8 @@ tunnel(int tun_fd, int dns_fd) } if(FD_ISSET(dns_fd, &fds)) { 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) write_tun(tun_fd, buf, read); - */ } } }