aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-12-18 13:26:27 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-12-18 13:26:27 +0000
commite85f3c49ff318af847a3bbd97571ce25b0ae2752 (patch)
tree90be99e55c831fcdbd9545bec145fdf672d565b9 /src/transport
parent3d0126a5abcd82af3993a586db26fe145e2de858 (diff)
downloadgnunet-e85f3c49ff318af847a3bbd97571ce25b0ae2752.tar.gz
gnunet-e85f3c49ff318af847a3bbd97571ce25b0ae2752.zip
fix for bt plugin and set nonce to 0
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c1
-rw-r--r--src/transport/plugin_transport_bluetooth.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index e5bc5161c..b095045c1 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -1489,6 +1489,7 @@ GST_neighbours_keepalive_response (const struct GNUNET_PeerIdentity *neighbour,
1489 GNUNET_break (0); 1489 GNUNET_break (0);
1490 } 1490 }
1491 1491
1492 n->primary_address.keep_alive_nonce = 0;
1492 n->expect_latency_response = GNUNET_NO; 1493 n->expect_latency_response = GNUNET_NO;
1493 n->latency = GNUNET_TIME_absolute_get_duration (n->last_keep_alive_time); 1494 n->latency = GNUNET_TIME_absolute_get_duration (n->last_keep_alive_time);
1494 n->timeout = GNUNET_TIME_relative_to_absolute (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT); 1495 n->timeout = GNUNET_TIME_relative_to_absolute (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT);
diff --git a/src/transport/plugin_transport_bluetooth.c b/src/transport/plugin_transport_bluetooth.c
index bdc5a9fee..621a880e1 100644
--- a/src/transport/plugin_transport_bluetooth.c
+++ b/src/transport/plugin_transport_bluetooth.c
@@ -1942,7 +1942,7 @@ libgnunet_plugin_transport_bluetooth_init (void *cls)
1942 api->address_to_string = &bluetooth_plugin_address_to_string;; 1942 api->address_to_string = &bluetooth_plugin_address_to_string;;
1943 api->string_to_address = &bluetooth_string_to_address; 1943 api->string_to_address = &bluetooth_string_to_address;
1944 api->get_network = &bluetooth_get_network; 1944 api->get_network = &bluetooth_get_network;
1945 api->update_session_timeout = &blueooth_plugin_update_session_timeout; 1945 api->update_session_timeout = &bluetooth_plugin_update_session_timeout;
1946 1946
1947 return api; 1947 return api;
1948} 1948}