diff options
author | t3sserakt <t3ss@posteo.de> | 2023-01-27 13:07:48 +0100 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2023-01-27 13:07:48 +0100 |
commit | 1a95d92b448b1dc77332781507cb6155b46c45b0 (patch) | |
tree | 1325457b90077904c91e37c4eeef8314df1a8a53 /src/transport/gnunet-communicator-udp.c | |
parent | a21cb18203056306fa08ecbcaf4100a6c94cc4d9 (diff) | |
download | gnunet-1a95d92b448b1dc77332781507cb6155b46c45b0.tar.gz gnunet-1a95d92b448b1dc77332781507cb6155b46c45b0.zip |
TNG: Added nat reversal code to tcp communicator. Prepared udp communicator.
Diffstat (limited to 'src/transport/gnunet-communicator-udp.c')
-rw-r--r-- | src/transport/gnunet-communicator-udp.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/transport/gnunet-communicator-udp.c b/src/transport/gnunet-communicator-udp.c index 282902f1c..6b2985b59 100644 --- a/src/transport/gnunet-communicator-udp.c +++ b/src/transport/gnunet-communicator-udp.c | |||
@@ -3735,6 +3735,13 @@ do_broadcast (void *cls) | |||
3735 | NULL); | 3735 | NULL); |
3736 | } | 3736 | } |
3737 | 3737 | ||
3738 | static void | ||
3739 | try_connection_reversal (void *cls, | ||
3740 | const struct sockaddr *addr, | ||
3741 | socklen_t addrlen) | ||
3742 | { | ||
3743 | /* FIXME: support reversal: #5529 */ | ||
3744 | } | ||
3738 | 3745 | ||
3739 | /** | 3746 | /** |
3740 | * Setup communicator and launch network interactions. | 3747 | * Setup communicator and launch network interactions. |
@@ -3915,7 +3922,7 @@ run (void *cls, | |||
3915 | (const struct sockaddr **) &in, | 3922 | (const struct sockaddr **) &in, |
3916 | &in_len, | 3923 | &in_len, |
3917 | &nat_address_cb, | 3924 | &nat_address_cb, |
3918 | NULL /* FIXME: support reversal: #5529 */, | 3925 | try_connection_reversal, |
3919 | NULL /* closure */); | 3926 | NULL /* closure */); |
3920 | } | 3927 | } |
3921 | 3928 | ||