summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-communicator-tcp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-01-29 17:41:46 +0100
committerChristian Grothoff <christian@grothoff.org>2019-01-29 17:41:46 +0100
commita945c5532d3737d5ebe18395d3ec8a6fad344e01 (patch)
tree1d91dd0e013b7c8b5492d718e64449e5d44da9b1 /src/transport/gnunet-communicator-tcp.c
parentd80214febe4e0e4cc64dddc74e990b3c5ca8a5df (diff)
first draft of UDP communicator
Diffstat (limited to 'src/transport/gnunet-communicator-tcp.c')
-rw-r--r--src/transport/gnunet-communicator-tcp.c29
1 files changed, 9 insertions, 20 deletions
diff --git a/src/transport/gnunet-communicator-tcp.c b/src/transport/gnunet-communicator-tcp.c
index 2980ad532..d0ee326b1 100644
--- a/src/transport/gnunet-communicator-tcp.c
+++ b/src/transport/gnunet-communicator-tcp.c
@@ -24,9 +24,13 @@
* @author Christian Grothoff
*
* TODO:
- * - support DNS names in BINDTO option
- * - support NAT connection reversal method
- * - support other TCP-specific NAT traversal methods
+ * - support DNS names in BINDTO option (#5528)
+ * - support NAT connection reversal method (#5529)
+ * - support other TCP-specific NAT traversal methods (#5531)
+ * - add replay protection support to the protocol by
+ * adding a nonce in the KX and requiring (!) a
+ * nounce ACK to be send within the first X bytes of
+ * data (#5530)
*/
#include "platform.h"
#include "gnunet_util_lib.h"
@@ -1263,7 +1267,7 @@ tcp_address_to_sockaddr (const char *bindto,
return in;
}
}
- /* FIXME (feature!): maybe also try getnameinfo()? */
+ /* #5528 FIXME (feature!): maybe also try getnameinfo()? */
GNUNET_free (cp);
return NULL;
}
@@ -2348,7 +2352,7 @@ run (void *cls,
(const struct sockaddr **) &in,
&in_len,
&nat_address_cb,
- NULL /* FIXME: support reversal! */,
+ NULL /* FIXME: support reversal: #5529 */,
NULL /* closure */);
}
@@ -2387,19 +2391,4 @@ main (int argc,
}
-#if defined(LINUX) && defined(__GLIBC__)
-#include <malloc.h>
-
-/**
- * MINIMIZE heap size (way below 128k) since this process doesn't need much.
- */
-void __attribute__ ((constructor))
-GNUNET_ARM_memory_init ()
-{
- mallopt (M_TRIM_THRESHOLD, 4 * 1024);
- mallopt (M_TOP_PAD, 1 * 1024);
- malloc_trim (0);
-}
-#endif
-
/* end of gnunet-communicator-tcp.c */