diff options
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index 53505407e..c92bf3a87 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c | |||
@@ -993,6 +993,8 @@ send_with_session (struct NeighbourMapEntry *n, | |||
993 | cont, cont_cls)))) && | 993 | cont, cont_cls)))) && |
994 | (NULL != cont)) | 994 | (NULL != cont)) |
995 | cont (cont_cls, &n->id, GNUNET_SYSERR, msgbuf_size, 0); | 995 | cont (cont_cls, &n->id, GNUNET_SYSERR, msgbuf_size, 0); |
996 | GST_neighbours_notify_data_sent (&n->id, | ||
997 | n->primary_address.address, n->primary_address.session, msgbuf_size); | ||
996 | GNUNET_break (NULL != papi); | 998 | GNUNET_break (NULL != papi); |
997 | } | 999 | } |
998 | 1000 | ||
@@ -1593,6 +1595,8 @@ send_session_connect (struct NeighbourAddress *na) | |||
1593 | UINT_MAX, | 1595 | UINT_MAX, |
1594 | GNUNET_TIME_UNIT_FOREVER_REL, | 1596 | GNUNET_TIME_UNIT_FOREVER_REL, |
1595 | NULL, NULL); | 1597 | NULL, NULL); |
1598 | GST_neighbours_notify_data_sent (&na->address->peer, | ||
1599 | na->address, na->session, sizeof (struct SessionConnectMessage)); | ||
1596 | 1600 | ||
1597 | } | 1601 | } |
1598 | 1602 | ||
@@ -2482,10 +2486,14 @@ GST_neighbours_notify_payload_recv (const struct GNUNET_PeerIdentity *peer, | |||
2482 | 2486 | ||
2483 | void | 2487 | void |
2484 | GST_neighbours_notify_data_sent (const struct GNUNET_PeerIdentity *peer, | 2488 | GST_neighbours_notify_data_sent (const struct GNUNET_PeerIdentity *peer, |
2485 | size_t size) | 2489 | const struct GNUNET_HELLO_Address *address, |
2490 | struct Session *session, | ||
2491 | size_t size) | ||
2486 | { | 2492 | { |
2487 | struct NeighbourMapEntry *n; | 2493 | struct NeighbourMapEntry *n; |
2488 | n = lookup_neighbour (peer); | 2494 | n = lookup_neighbour (peer); |
2495 | if (n->primary_address.session != session) | ||
2496 | return; | ||
2489 | if (NULL == n) | 2497 | if (NULL == n) |
2490 | { | 2498 | { |
2491 | return; | 2499 | return; |