summaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/gnunet-communicator-tcp.c2
-rw-r--r--src/transport/transport_api_cmd_connecting_peers.c12
-rw-r--r--src/transport/transport_api_cmd_send_simple.c1
3 files changed, 10 insertions, 5 deletions
diff --git a/src/transport/gnunet-communicator-tcp.c b/src/transport/gnunet-communicator-tcp.c
index fde85923b..10e2f7d40 100644
--- a/src/transport/gnunet-communicator-tcp.c
+++ b/src/transport/gnunet-communicator-tcp.c
@@ -2710,7 +2710,7 @@ proto_read_kx (void *cls)
{
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Invalid TCP KX received from %s\n",
- GNUNET_a2s (queue->address, queue->address_len));
+ GNUNET_a2s (pq->address, pq->address_len));
gcry_cipher_close (queue->in_cipher);
GNUNET_free (queue);
free_proto_queue (pq);
diff --git a/src/transport/transport_api_cmd_connecting_peers.c b/src/transport/transport_api_cmd_connecting_peers.c
index 3148806c7..d5c4a5d48 100644
--- a/src/transport/transport_api_cmd_connecting_peers.c
+++ b/src/transport/transport_api_cmd_connecting_peers.c
@@ -62,6 +62,7 @@ connect_peers_run (void *cls,
//size_t *hello_size;
enum GNUNET_NetworkType nt = 0;
char *peer_id;
+ struct GNUNET_PeerIdentity *id;
peer1_cmd = GNUNET_TESTING_interpreter_lookup_command (cps->peer1_label);
GNUNET_TRANSPORT_get_trait_application_handle (peer1_cmd,
@@ -74,21 +75,21 @@ connect_peers_run (void *cls,
"hello: %s\n",
hello);
- /*GNUNET_TRANSPORT_get_trait_peer_id (peer1_cmd,
+ GNUNET_TRANSPORT_get_trait_peer_id (peer1_cmd,
&id);
LOG (GNUNET_ERROR_TYPE_ERROR,
"pid %s\n",
- GNUNET_i2s_full(id));*/
+ GNUNET_i2s_full(id));
if(strstr(hello, "60002") != NULL)
{
addr = "tcp-192.168.15.2:60003";
- peer_id = "4TTC9WBSVP9RJT6DVEZ7E0TDW7TQXC11NR1EMR2F8ARS87WZ2730";
+ peer_id = "F2F3X9G1YNCTXKK7A4J6M4ZM4BBSKC9DEXZVHCWQ475M0C7PNWCG";
}
else
{
addr = "tcp-192.168.15.1:60002";
- peer_id = "F2F3X9G1YNCTXKK7A4J6M4ZM4BBSKC9DEXZVHCWQ475M0C7PNWCG";
+ peer_id = "4TTC9WBSVP9RJT6DVEZ7E0TDW7TQXC11NR1EMR2F8ARS87WZ2730";
}
LOG (GNUNET_ERROR_TYPE_ERROR,
@@ -139,6 +140,9 @@ connect_peers_finish (void *cls,
struct GNUNET_HashCode hc;
int node_number;
+ LOG (GNUNET_ERROR_TYPE_ERROR,
+ "Connect finished?\n");
+
peer1_cmd = GNUNET_TESTING_interpreter_lookup_command (cps->peer1_label);
GNUNET_TRANSPORT_get_trait_connected_peers_map (peer1_cmd,
&connected_peers_map);
diff --git a/src/transport/transport_api_cmd_send_simple.c b/src/transport/transport_api_cmd_send_simple.c
index 8d652563f..6c4b76f48 100644
--- a/src/transport/transport_api_cmd_send_simple.c
+++ b/src/transport/transport_api_cmd_send_simple.c
@@ -129,6 +129,7 @@ GNUNET_TRANSPORT_cmd_send_simple (const char *label,
sss->m = m;
sss->n = n;
sss->num = num;
+ sss->peer1_label = peer1_label;
struct GNUNET_TESTING_Command cmd = {
.cls = sss,