From df7e4dac744021c988029bd2c47a2ff6825156cb Mon Sep 17 00:00:00 2001 From: Julian Kranz Date: Sun, 1 Jan 2012 20:01:54 +0100 Subject: [PATCH] --- --- src/iodined.c | 4 ++++ src/tun.c | 1 + 2 files changed, 5 insertions(+) diff --git a/src/iodined.c b/src/iodined.c index 0941d32..787fd75 100644 --- a/src/iodined.c +++ b/src/iodined.c @@ -571,6 +571,8 @@ tunnel_tun(int tun_fd, int dns_fd) userid = find_user_by_ip6(header6->ip6_dst); } + pritnf("tunnel_tun() - userid = %d", userid); + if (userid < 0) return 0; @@ -1768,6 +1770,8 @@ handle_full_packet(int tun_fd, int dns_fd, int userid) touser = find_user_by_ip6(hdr->ip6_dst); } + printf("handle_full_packet() - touser = %d, version = %d", touser, hdr->ip_v); + if (touser == -1) { /* send the uncompressed packet to tun device */ write_tun(tun_fd, out, outlen, hdr->ip_v); diff --git a/src/tun.c b/src/tun.c index c2dd384..3a8753c 100644 --- a/src/tun.c +++ b/src/tun.c @@ -365,6 +365,7 @@ close_tun(int tun_fd) int write_tun(int tun_fd, unsigned char *data, size_t len, char version) { + printf("write_tun() - version = %d", version); #if defined (FREEBSD) || defined (DARWIN) || defined(NETBSD) || defined(WINDOWS32) data += 4; len -= 4;