summaryrefslogtreecommitdiff
path: root/src/nat/nat_test.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-07-01 16:02:42 +0000
committerChristian Grothoff <christian@grothoff.org>2011-07-01 16:02:42 +0000
commit4e9c24fa67a3cb2c3f83b5140698974e4dd76279 (patch)
treed565ffec4d3807bfd90455966e74aadffeac1c78 /src/nat/nat_test.c
parent148a45b1a22a7f86ef1e393a4b29c81262b8facf (diff)
comments
Diffstat (limited to 'src/nat/nat_test.c')
-rw-r--r--src/nat/nat_test.c36
1 files changed, 19 insertions, 17 deletions
diff --git a/src/nat/nat_test.c b/src/nat/nat_test.c
index a8bf227a0..4b502ec60 100644
--- a/src/nat/nat_test.c
+++ b/src/nat/nat_test.c
@@ -28,37 +28,39 @@
#include "gnunet_nat_lib.h"
#include "nat.h"
+
/**
- *
+ * Entry we keep for each incoming connection.
*/
struct NatActivity
{
/**
- *
+ * This is a doubly-linked list.
*/
struct NatActivity *next;
/**
- *
+ * This is a doubly-linked list.
*/
struct NatActivity *prev;
/**
- *
+ * Socket of the incoming connection.
*/
struct GNUNET_NETWORK_Handle *sock;
/**
- *
+ * Handle of the master context.
*/
struct GNUNET_NAT_Test *h;
/**
- *
+ * Task reading from the incoming connection.
*/
GNUNET_SCHEDULER_TaskIdentifier rtask;
};
+
/**
* Handle to a NAT test.
*/
@@ -66,57 +68,57 @@ struct GNUNET_NAT_Test
{
/**
- *
+ * Configuration used
*/
const struct GNUNET_CONFIGURATION_Handle *cfg;
/**
- *
+ * Function to call with success report
*/
GNUNET_NAT_TestCallback report;
/**
- *
+ * Closure for 'report'.
*/
void *report_cls;
/**
- *
+ * Handle to NAT traversal in use
*/
struct GNUNET_NAT_Handle *nat;
/**
- *
+ * Handle to listen socket, or NULL
*/
struct GNUNET_NETWORK_Handle *lsock;
/**
- *
+ * Head of list of nat activities.
*/
struct NatActivity *head;
/**
- *
+ * Tail of list of nat activities.
*/
struct NatActivity *tail;
/**
- *
+ * Identity of task for the listen socket (if any)
*/
GNUNET_SCHEDULER_TaskIdentifier ltask;
/**
- *
+ * GNUNET_YES if we're testing TCP
*/
int is_tcp;
/**
- *
+ * Data that should be transmitted or source-port.
*/
uint16_t data;
/**
- *
+ * Advertised port to the other peer.
*/
uint16_t adv_port;