gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r12894 - gnunet/src/vpn


From: gnunet
Subject: [GNUnet-SVN] r12894 - gnunet/src/vpn
Date: Tue, 7 Sep 2010 15:37:26 +0200

Author: toelke
Date: 2010-09-07 15:37:26 +0200 (Tue, 07 Sep 2010)
New Revision: 12894

Modified:
   gnunet/src/vpn/gnunet-daemon-vpn.c
Log:
removed a few debug-outputs and changed the remaining to GNUNET_log

Modified: gnunet/src/vpn/gnunet-daemon-vpn.c
===================================================================
--- gnunet/src/vpn/gnunet-daemon-vpn.c  2010-09-07 13:37:26 UTC (rev 12893)
+++ gnunet/src/vpn/gnunet-daemon-vpn.c  2010-09-07 13:37:26 UTC (rev 12894)
@@ -101,7 +101,7 @@
 
        int t = GNUNET_DISK_file_read(mycls.fh_from_helper, &buf, 65535);
        if (t<=0) {
-               fprintf(stderr, "Read error for header: %m\n");
+               GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Read error for header: 
%m\n");
                GNUNET_SCHEDULER_add_now(mycls.sched, restart_helper, cls);
                return;
        }
@@ -116,8 +116,6 @@
 
        struct tun_pkt *pkt_tun = (struct tun_pkt*) message;
 
-       fprintf(stderr, "Packet, Type: %x\n", ntohs(pkt_tun->tun.type));
-
        if (ntohs(pkt_tun->tun.type) == 0x86dd) {
                struct ip6_pkt *pkt6 = (struct ip6_pkt*) message;
                struct ip6_tcp *pkt6_tcp;
@@ -140,9 +138,7 @@
        } else if (ntohs(pkt_tun->tun.type) == 0x0800) {
                struct ip_pkt *pkt = (struct ip_pkt*) message;
                struct ip_udp *udp = (struct ip_udp*) message;
-               GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "IPv4\n");
                if (pkt->ip_hdr.proto == 0x11 && ntohl(udp->ip_hdr.dadr) == 
0x0a0a0a02 && ntohs(udp->udp_hdr.dpt) == 53 ) {
-                       pkt_printf_ipdns((struct ip_udp_dns*)udp);
                        struct query_packet* query = alloca((sizeof query) + 
ntohs(udp->udp_hdr.len) - 7); /* 7 = 8 for the udp-header - 1 for the unsigned 
char data[1]; */
                        query->hdr.type = 
htons(GNUNET_MESSAGE_TYPE_LOCAL_QUERY_DNS);
                        query->hdr.size = htons((sizeof query) + 
ntohs(udp->udp_hdr.len) - 7);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]