[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r29470 - gnunet/src/pt
From: |
gnunet |
Subject: |
[GNUnet-SVN] r29470 - gnunet/src/pt |
Date: |
Sun, 22 Sep 2013 17:38:47 +0200 |
Author: grothoff
Date: 2013-09-22 17:38:47 +0200 (Sun, 22 Sep 2013)
New Revision: 29470
Modified:
gnunet/src/pt/gnunet-daemon-pt.c
Log:
-minor code cleanup
Modified: gnunet/src/pt/gnunet-daemon-pt.c
===================================================================
--- gnunet/src/pt/gnunet-daemon-pt.c 2013-09-22 15:25:57 UTC (rev 29469)
+++ gnunet/src/pt/gnunet-daemon-pt.c 2013-09-22 15:38:47 UTC (rev 29470)
@@ -35,15 +35,12 @@
#include "gnunet_applications.h"
#include "block_dns.h"
-#define PORT_PT 4242 // FIXME
-
/**
* After how long do we time out if we could not get an IP from VPN or MESH?
*/
#define TIMEOUT GNUNET_TIME_UNIT_MINUTES
-
/**
* How many bytes of payload do we allow at most for a DNS reply?
* Given that this is pretty much limited to loopback, we can be
@@ -312,7 +309,7 @@
* record and then continue with 'submit_request' to look at
* the other records.
*
- * @param cls our 'struct ReplyContext'
+ * @param cls our `struct ReplyContext`
* @param af address family, AF_INET or AF_INET6; AF_UNSPEC on error;
* will match 'result_af' from the request
* @param address IP address (struct in_addr or struct in_addr6, depending on
'af')
@@ -463,8 +460,8 @@
* Test if any of the given records need protocol-translation work.
*
* @param ra array of records
- * @param ra_len number of entries in ra
- * @return GNUNET_YES if any of the given records require protocol-translation
+ * @param ra_len number of entries in @a ra
+ * @return #GNUNET_YES if any of the given records require protocol-translation
*/
static int
work_test (const struct GNUNET_DNSPARSER_Record *ra,
@@ -696,11 +693,10 @@
*
* @param cls closure, NULL
* @param tunnel connection to the other end
- * @param tunnel_ctx pointer to our 'struct TunnelState *'
+ * @param tunnel_ctx FIXME
* @param message the actual message
- *
- * @return GNUNET_OK to keep the connection open,
- * GNUNET_SYSERR to close it (signal serious error)
+ * @return #GNUNET_OK to keep the connection open,
+ * #GNUNET_SYSERR to close it (signal serious error)
*/
static int
receive_dns_response (void *cls GNUNET_UNUSED, struct GNUNET_MESH_Tunnel
*tunnel,
@@ -910,7 +906,7 @@
mesh_tunnel = GNUNET_MESH_tunnel_create (mesh_handle,
NULL /* FIXME: tunnel ctx */,
&pid,
- PORT_PT, /* FIXME: DNS port, right?
*/
+
GNUNET_APPLICATION_TYPE_INTERNET_RESOLVER,
GNUNET_YES /* no buffer */,
GNUNET_NO /* reliable */);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r29470 - gnunet/src/pt,
gnunet <=