diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet-new_tunnels.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet-new_tunnels.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/cadet/gnunet-service-cadet-new_tunnels.c b/src/cadet/gnunet-service-cadet-new_tunnels.c index 1a07140f2..18c469b67 100644 --- a/src/cadet/gnunet-service-cadet-new_tunnels.c +++ b/src/cadet/gnunet-service-cadet-new_tunnels.c | |||
@@ -268,9 +268,9 @@ struct CadetTunnelQueueEntry | |||
268 | void *cont_cls; | 268 | void *cont_cls; |
269 | 269 | ||
270 | /** | 270 | /** |
271 | * (Encrypted) message to send follows. | 271 | * Envelope of message to send follows. |
272 | */ | 272 | */ |
273 | /* struct GNUNET_MessageHeader *msg; */ | 273 | struct GNUNET_MQ_Envelope *env; |
274 | }; | 274 | }; |
275 | 275 | ||
276 | 276 | ||
@@ -533,7 +533,7 @@ destroy_tunnel (void *cls) | |||
533 | GNUNET_CONTAINER_DLL_remove (t->tq_head, | 533 | GNUNET_CONTAINER_DLL_remove (t->tq_head, |
534 | t->tq_tail, | 534 | t->tq_tail, |
535 | tqe); | 535 | tqe); |
536 | // FIXME: implement! | 536 | GNUNET_MQ_discard (tqe->env); |
537 | GNUNET_free (tqe); | 537 | GNUNET_free (tqe); |
538 | } | 538 | } |
539 | GCP_drop_tunnel (t->destination, | 539 | GCP_drop_tunnel (t->destination, |
@@ -570,7 +570,7 @@ connection_ready_cb (void *cls) | |||
570 | t->tq_tail, | 570 | t->tq_tail, |
571 | tq); | 571 | tq); |
572 | GCC_transmit (ct->cc, | 572 | GCC_transmit (ct->cc, |
573 | (const struct GNUNET_MessageHeader *) &tq[1]); | 573 | tq->env); |
574 | tq->cont (tq->cont_cls); | 574 | tq->cont (tq->cont_cls); |
575 | GNUNET_free (tq); | 575 | GNUNET_free (tq); |
576 | } | 576 | } |
@@ -693,12 +693,13 @@ consider_path_cb (void *cls, | |||
693 | ct->created = GNUNET_TIME_absolute_get (); | 693 | ct->created = GNUNET_TIME_absolute_get (); |
694 | ct->t = t; | 694 | ct->t = t; |
695 | ct->cc = GCC_create (t->destination, | 695 | ct->cc = GCC_create (t->destination, |
696 | path, | 696 | path, |
697 | &connection_ready_cb, | 697 | &connection_ready_cb, |
698 | t); | 698 | t); |
699 | /* FIXME: schedule job to kill connection (and path?) if it takes | 699 | /* FIXME: schedule job to kill connection (and path?) if it takes |
700 | too long to get ready! (And track performance data on how long | 700 | too long to get ready! (And track performance data on how long |
701 | other connections took with the tunnel!) */ | 701 | other connections took with the tunnel!) |
702 | => Note: to be done within 'connection'-logic! */ | ||
702 | GNUNET_CONTAINER_DLL_insert (t->connection_head, | 703 | GNUNET_CONTAINER_DLL_insert (t->connection_head, |
703 | t->connection_tail, | 704 | t->connection_tail, |
704 | ct); | 705 | ct); |