X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ftransport%2Fgnunet-communicator-udp.c;h=fa8eb6acb913e602e45cf58158795abfccc29ff6;hb=9859b3162a9fd7c9cc0c19582b04dd7f1c1f9408;hp=c88f7f6f5a2f9aecd60de7a978dfec5c14396f94;hpb=5d021c879a1c83ba222d09f1e0dc2a0a081bc799;p=oweals%2Fgnunet.git diff --git a/src/transport/gnunet-communicator-udp.c b/src/transport/gnunet-communicator-udp.c index c88f7f6f5..fa8eb6acb 100644 --- a/src/transport/gnunet-communicator-udp.c +++ b/src/transport/gnunet-communicator-udp.c @@ -24,14 +24,13 @@ * @author Christian Grothoff * * TODO: - * - add and use util/ check for IPv6 availability (#V6) * - consider imposing transmission limits in the absence * of ACKs; or: maybe this should be done at TNG service level? * (at least the receiver might want to enforce limits on - * KX/DH operations per sender in here) + * KX/DH operations per sender in here) (#5552) * - overall, we should look more into flow control support * (either in backchannel, or general solution in TNG service) - * - handle addresses discovered from broadcasts (#BC) + * - handle addresses discovered from broadcasts (#5551) * (think: what was the story again on address validation? * where is the API for that!?!) * - support DNS names in BINDTO option (#5528) @@ -1672,7 +1671,7 @@ sock_read (void *cls) "# broadcasts received", 1, GNUNET_NO); - // FIXME #BC: we effectively just got a HELLO! + // FIXME #5551: we effectively just got a HELLO! // trigger verification NOW! return; } @@ -1784,12 +1783,12 @@ udp_address_to_sockaddr (const char *bindto, bindto); return NULL; } - /* FIXME #V6: add test to util/ for IPv6 availability, - and depending on the result, go directly for v4-only */ - if (GNUNET_YES == - GNUNET_CONFIGURATION_get_value_yesno (cfg, - COMMUNICATOR_CONFIG_SECTION, - "DISABLE_V6")) + if ( (GNUNET_NO == + GNUNET_NETWORK_test_pf (PF_INET6)) || + (GNUNET_YES == + GNUNET_CONFIGURATION_get_value_yesno (cfg, + COMMUNICATOR_CONFIG_SECTION, + "DISABLE_V6")) ) { struct sockaddr_in *i4;