[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r18966 - gnunet/src/dns
From: |
gnunet |
Subject: |
[GNUnet-SVN] r18966 - gnunet/src/dns |
Date: |
Wed, 4 Jan 2012 09:15:38 +0100 |
Author: grothoff
Date: 2012-01-04 09:15:38 +0100 (Wed, 04 Jan 2012)
New Revision: 18966
Modified:
gnunet/src/dns/gnunet-service-dns_new.c
Log:
-remove debugging code
Modified: gnunet/src/dns/gnunet-service-dns_new.c
===================================================================
--- gnunet/src/dns/gnunet-service-dns_new.c 2012-01-04 08:11:27 UTC (rev
18965)
+++ gnunet/src/dns/gnunet-service-dns_new.c 2012-01-04 08:15:38 UTC (rev
18966)
@@ -465,10 +465,6 @@
ip.checksum = 0; /* checksum is optional */
ip.source_address = dst->sin_addr;
ip.destination_address = src->sin_addr;
-
- inet_pton (AF_INET, "10.5.0.2", &ip.source_address);
- //inet_pton (AF_INET, "10.5.0.1", &ip.destination_address);
-
ip.checksum = GNUNET_CRYPTO_crc16_n ((uint16_t*) &ip, sizeof (ip));
udp_crc_sum = GNUNET_CRYPTO_crc16_step (udp_crc_sum,
@@ -552,10 +548,6 @@
{
memcpy (&buf[off], rr->payload, rr->payload_length);
off += rr->payload_length;
-
- fprintf (stderr,
- "Sending %u bytes UDP packet to TUN\n",
- (unsigned int) rr->payload_length);
}
/* final checks & sending */
GNUNET_assert (off == reply_len);
@@ -668,7 +660,6 @@
case AF_INET:
dnsout = dnsout4;
salen = sizeof (struct ip4_header);
- inet_pton (AF_INET, "8.8.8.8", &((struct sockaddr_in*)
&rr->dst_addr)->sin_addr);
break;
case AF_INET6:
dnsout = dnsout6;
@@ -842,9 +833,6 @@
rr->payload = GNUNET_malloc (len);
memcpy (rr->payload, buf, len);
rr->payload_length = len;
- fprintf (stderr,
- "Received %u bytes UDP packet from DNS server\n",
- (unsigned int) len);
next_phase (rr);
}
}
@@ -1118,6 +1106,7 @@
(ip4->protocol != IPPROTO_UDP) )
{
/* non-IP/UDP packet received on TUN (or with options) */
+ // FIXME: maybe just log with stats?
GNUNET_break (0);
return;
}
@@ -1132,6 +1121,7 @@
(ip6->next_header != IPPROTO_UDP) )
{
/* non-IP/UDP packet received on TUN (or with extensions) */
+ // FIXME: maybe just log with stats?
GNUNET_break (0);
return;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r18966 - gnunet/src/dns,
gnunet <=