From a945c5532d3737d5ebe18395d3ec8a6fad344e01 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 29 Jan 2019 17:41:46 +0100 Subject: first draft of UDP communicator --- src/transport/gnunet-communicator-tcp.c | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) (limited to 'src/transport/gnunet-communicator-tcp.c') 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 - -/** - * 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 */ -- cgit v1.2.3