really minimizing gnunet-helper-nat-client code running with root rights
[oweals/gnunet.git] / src / nat / gnunet-nat-server.c
index 988e9fbc9131d36cc509daaf60cba6854827586a..4b7e31ef86fd1ee7aff730264d0bb16ce4709d97 100644 (file)
@@ -29,7 +29,6 @@
 #include "gnunet_protocols.h"
 #include "nat.h"
 
-#define DEBUG_NAT GNUNET_NO
 
 /**
  * Our server.
@@ -83,7 +82,7 @@ struct TcpContext
    */
   struct GNUNET_NETWORK_Handle *s;
 
-  /** 
+  /**
    * Data to transmit.
    */
   uint16_t data;
@@ -94,7 +93,7 @@ struct TcpContext
  * Task called by the scheduler once we can do the TCP send
  * (or once we failed to connect...).
  *
- * @param ctx the 'struct TcpContext'
+ * @param cls the 'struct TcpContext'
  * @param tc scheduler context
  */
 static void
@@ -122,8 +121,8 @@ tcp_send (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 /**
  * Try to send 'data' to the
  * IP 'dst_ipv4' at port 'dport' via TCP.
- * 
- * @param dst_ivp4 target IP
+ *
+ * @param dst_ipv4 target IP
  * @param dport target port
  * @param data data to send
  */
@@ -169,8 +168,8 @@ try_send_tcp (uint32_t dst_ipv4, uint16_t dport, uint16_t data)
 /**
  * Try to send 'data' to the
  * IP 'dst_ipv4' at port 'dport' via UDP.
- * 
- * @param dst_ivp4 target IP
+ *
+ * @param dst_ipv4 target IP
  * @param dport target port
  * @param data data to send
  */
@@ -208,7 +207,7 @@ try_send_udp (uint32_t dst_ipv4, uint16_t dport, uint16_t data)
 /**
  * We've received a request to probe a NAT
  * traversal. Do it.
- * 
+ *
  * @param cls unused
  * @param client handle to client (we always close)
  * @param msg message with details about what to test
@@ -238,7 +237,7 @@ test (void *cls, struct GNUNET_SERVER_Client *client,
 /**
  * Task run during shutdown.
  *
- * @param ctx unused
+ * @param cls unused
  * @param tc scheduler context
  */
 static void