diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-10-18 13:09:38 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-10-18 13:09:38 +0000 |
commit | 233f7ecbf9d7d5376c39e16b8dedf3f614583485 (patch) | |
tree | e3192ca43933f7d52c0550a7d4506bf37a55e848 /src/transport/gnunet-service-transport_validation.c | |
parent | f370ea1429d3caa2d31a0ed146ba403cbb3a090f (diff) | |
download | gnunet-233f7ecbf9d7d5376c39e16b8dedf3f614583485.tar.gz gnunet-233f7ecbf9d7d5376c39e16b8dedf3f614583485.zip |
payload and data
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.c')
-rw-r--r-- | src/transport/gnunet-service-transport_validation.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c index f5f3d6d56..f91ad8ae1 100644 --- a/src/transport/gnunet-service-transport_validation.c +++ b/src/transport/gnunet-service-transport_validation.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include "gnunet-service-transport_plugins.h" | 28 | #include "gnunet-service-transport_plugins.h" |
29 | #include "gnunet-service-transport_hello.h" | 29 | #include "gnunet-service-transport_hello.h" |
30 | #include "gnunet-service-transport_blacklist.h" | 30 | #include "gnunet-service-transport_blacklist.h" |
31 | #include "gnunet-service-transport_neighbours.h" | ||
31 | #include "gnunet-service-transport.h" | 32 | #include "gnunet-service-transport.h" |
32 | #include "gnunet_hello_lib.h" | 33 | #include "gnunet_hello_lib.h" |
33 | #include "gnunet_ats_service.h" | 34 | #include "gnunet_ats_service.h" |
@@ -552,11 +553,12 @@ transmit_ping_if_allowed (void *cls, const struct GNUNET_PeerIdentity *pid, | |||
552 | network = papi->get_network (ve->address, session); | 553 | network = papi->get_network (ve->address, session); |
553 | if (GNUNET_ATS_NET_UNSPECIFIED == network) | 554 | if (GNUNET_ATS_NET_UNSPECIFIED == network) |
554 | { | 555 | { |
555 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 556 | GNUNET_log(GNUNET_ERROR_TYPE_ERROR, |
556 | "Could not obtain a valid network for `%s' %s\n", | 557 | "Could not obtain a valid network for `%s' %s\n", |
557 | GNUNET_i2s (pid), GST_plugins_a2s (ve->address)); | 558 | GNUNET_i2s (pid), GST_plugins_a2s (ve->address)); |
558 | GNUNET_break (0); | 559 | GNUNET_break(0); |
559 | } | 560 | } |
561 | GST_neighbours_notify_data_sent (pid, ve->address, session, tsize); | ||
560 | } | 562 | } |
561 | else | 563 | else |
562 | { | 564 | { |
@@ -881,6 +883,9 @@ multicast_pong (void *cls, | |||
881 | (const char *) pong, ntohs (pong->header.size), | 883 | (const char *) pong, ntohs (pong->header.size), |
882 | PONG_PRIORITY, ACCEPTABLE_PING_DELAY, | 884 | PONG_PRIORITY, ACCEPTABLE_PING_DELAY, |
883 | NULL, NULL); | 885 | NULL, NULL); |
886 | GST_neighbours_notify_data_sent (&address->peer, | ||
887 | address, session, pong->header.size); | ||
888 | |||
884 | } | 889 | } |
885 | 890 | ||
886 | 891 | ||
@@ -1102,6 +1107,10 @@ GST_validation_handle_ping (const struct GNUNET_PeerIdentity *sender, | |||
1102 | (const char *) pong, ntohs (pong->header.size), | 1107 | (const char *) pong, ntohs (pong->header.size), |
1103 | PONG_PRIORITY, ACCEPTABLE_PING_DELAY, | 1108 | PONG_PRIORITY, ACCEPTABLE_PING_DELAY, |
1104 | NULL, NULL); | 1109 | NULL, NULL); |
1110 | if (-1 != ret) | ||
1111 | GST_neighbours_notify_data_sent (sender, | ||
1112 | sender_address, session, pong->header.size); | ||
1113 | |||
1105 | } | 1114 | } |
1106 | } | 1115 | } |
1107 | if (ret != -1) | 1116 | if (ret != -1) |