aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-03-02 11:21:06 +0100
committerChristian Grothoff <christian@grothoff.org>2019-03-02 11:21:06 +0100
commit1b1edf92c24f91c36747458e880e0d6a5e559e95 (patch)
tree8e8085c209236f28c56098d81d1fe26a84e709d8 /src
parent54d83ad059519ca03971b79b8410540d9438b5a8 (diff)
downloadgnunet-1b1edf92c24f91c36747458e880e0d6a5e559e95.tar.gz
gnunet-1b1edf92c24f91c36747458e880e0d6a5e559e95.zip
use #5553 function in TCP/UDP communicators
Diffstat (limited to 'src')
-rw-r--r--src/transport/gnunet-communicator-tcp.c13
-rw-r--r--src/transport/gnunet-communicator-udp.c13
2 files changed, 12 insertions, 14 deletions
diff --git a/src/transport/gnunet-communicator-tcp.c b/src/transport/gnunet-communicator-tcp.c
index 47bffa2ba..95719852c 100644
--- a/src/transport/gnunet-communicator-tcp.c
+++ b/src/transport/gnunet-communicator-tcp.c
@@ -24,7 +24,6 @@
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 * 25 *
26 * TODO: 26 * TODO:
27 * - add and use util/ check for IPv6 availability (#5553)
28 * - support DNS names in BINDTO option (#5528) 27 * - support DNS names in BINDTO option (#5528)
29 * - support NAT connection reversal method (#5529) 28 * - support NAT connection reversal method (#5529)
30 * - support other TCP-specific NAT traversal methods (#5531) 29 * - support other TCP-specific NAT traversal methods (#5531)
@@ -1172,12 +1171,12 @@ tcp_address_to_sockaddr (const char *bindto,
1172 bindto); 1171 bindto);
1173 return NULL; 1172 return NULL;
1174 } 1173 }
1175 /* FIXME: add test to util/ for IPv6 availability, 1174 if ( (GNUNET_NO ==
1176 and depending on the result, go directly for v4-only */ 1175 GNUNET_NETWORK_test_pf (PF_INET6)) ||
1177 if (GNUNET_YES == 1176 (GNUNET_YES ==
1178 GNUNET_CONFIGURATION_get_value_yesno (cfg, 1177 GNUNET_CONFIGURATION_get_value_yesno (cfg,
1179 COMMUNICATOR_CONFIG_SECTION, 1178 COMMUNICATOR_CONFIG_SECTION,
1180 "DISABLE_V6")) 1179 "DISABLE_V6")) )
1181 { 1180 {
1182 struct sockaddr_in *i4; 1181 struct sockaddr_in *i4;
1183 1182
diff --git a/src/transport/gnunet-communicator-udp.c b/src/transport/gnunet-communicator-udp.c
index 550ba7c85..fa8eb6acb 100644
--- a/src/transport/gnunet-communicator-udp.c
+++ b/src/transport/gnunet-communicator-udp.c
@@ -24,7 +24,6 @@
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 * 25 *
26 * TODO: 26 * TODO:
27 * - add and use util/ check for IPv6 availability (#5553)
28 * - consider imposing transmission limits in the absence 27 * - consider imposing transmission limits in the absence
29 * of ACKs; or: maybe this should be done at TNG service level? 28 * of ACKs; or: maybe this should be done at TNG service level?
30 * (at least the receiver might want to enforce limits on 29 * (at least the receiver might want to enforce limits on
@@ -1784,12 +1783,12 @@ udp_address_to_sockaddr (const char *bindto,
1784 bindto); 1783 bindto);
1785 return NULL; 1784 return NULL;
1786 } 1785 }
1787 /* FIXME #V6: add test to util/ for IPv6 availability, 1786 if ( (GNUNET_NO ==
1788 and depending on the result, go directly for v4-only */ 1787 GNUNET_NETWORK_test_pf (PF_INET6)) ||
1789 if (GNUNET_YES == 1788 (GNUNET_YES ==
1790 GNUNET_CONFIGURATION_get_value_yesno (cfg, 1789 GNUNET_CONFIGURATION_get_value_yesno (cfg,
1791 COMMUNICATOR_CONFIG_SECTION, 1790 COMMUNICATOR_CONFIG_SECTION,
1792 "DISABLE_V6")) 1791 "DISABLE_V6")) )
1793 { 1792 {
1794 struct sockaddr_in *i4; 1793 struct sockaddr_in *i4;
1795 1794