aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r--src/transport/plugin_transport_udp.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index 3d57c09a8..739716b17 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -42,17 +42,12 @@
42 42
43#define DEBUG_UDP GNUNET_NO 43#define DEBUG_UDP GNUNET_NO
44 44
45/* 45/**
46 * Transport cost to peer, always 1 for UDP (direct connection) 46 * Transport cost to peer, always 1 for UDP (direct connection)
47 */ 47 */
48#define UDP_DIRECT_DISTANCE 1 48#define UDP_DIRECT_DISTANCE 1
49 49
50/** 50/**
51 * Handle for request of hostname resolution, non-NULL if pending.
52 */
53static struct GNUNET_RESOLVER_RequestHandle *hostname_dns;
54
55/**
56 * How long until we give up on transmitting the welcome message? 51 * How long until we give up on transmitting the welcome message?
57 */ 52 */
58#define HOSTNAME_RESOLVE_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5) 53#define HOSTNAME_RESOLVE_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5)
@@ -760,10 +755,10 @@ libgnunet_plugin_transport_udp_done (void *cls)
760 struct Plugin *plugin = api->cls; 755 struct Plugin *plugin = api->cls;
761 756
762 udp_transport_server_stop (plugin); 757 udp_transport_server_stop (plugin);
763 if (NULL != hostname_dns) 758 if (NULL != plugin->hostname_dns)
764 { 759 {
765 GNUNET_RESOLVER_request_cancel (hostname_dns); 760 GNUNET_RESOLVER_request_cancel (plugin->hostname_dns);
766 hostname_dns = NULL; 761 plugin->hostname_dns = NULL;
767 } 762 }
768 GNUNET_SERVICE_stop (plugin->service); 763 GNUNET_SERVICE_stop (plugin->service);
769 764