diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-18 22:57:37 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-18 22:57:37 +0000 |
commit | 647ec74b097c5581664362b4d5a2f7759553370a (patch) | |
tree | 2645877f01ce9f192384229695370c2d02cb2d79 /src/dv/gnunet-service-dv.c | |
parent | 38c6188791c21c815d4260593116698fa6b1bf4d (diff) | |
download | gnunet-647ec74b097c5581664362b4d5a2f7759553370a.tar.gz gnunet-647ec74b097c5581664362b4d5a2f7759553370a.zip |
-fix transmission logic in DV API
Diffstat (limited to 'src/dv/gnunet-service-dv.c')
-rw-r--r-- | src/dv/gnunet-service-dv.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/dv/gnunet-service-dv.c b/src/dv/gnunet-service-dv.c index 43292e3aa..9132d2a34 100644 --- a/src/dv/gnunet-service-dv.c +++ b/src/dv/gnunet-service-dv.c | |||
@@ -1961,6 +1961,10 @@ handle_dv_send_message (void *cls, struct GNUNET_SERVER_Client *client, | |||
1961 | if (NULL == route) | 1961 | if (NULL == route) |
1962 | { | 1962 | { |
1963 | /* got disconnected */ | 1963 | /* got disconnected */ |
1964 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
1965 | "No route to %s, dropping local message of type %u\n", | ||
1966 | GNUNET_i2s (&msg->target), | ||
1967 | ntohs (payload->type)); | ||
1964 | GNUNET_STATISTICS_update (stats, | 1968 | GNUNET_STATISTICS_update (stats, |
1965 | "# local messages discarded (no route)", | 1969 | "# local messages discarded (no route)", |
1966 | 1, GNUNET_NO); | 1970 | 1, GNUNET_NO); |
@@ -1969,8 +1973,9 @@ handle_dv_send_message (void *cls, struct GNUNET_SERVER_Client *client, | |||
1969 | return; | 1973 | return; |
1970 | } | 1974 | } |
1971 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1975 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1972 | "Forwarding %u bytes to %s\n", | 1976 | "Forwarding %u bytes of type %u to %s\n", |
1973 | ntohs (payload->size), | 1977 | ntohs (payload->size), |
1978 | ntohs (payload->type), | ||
1974 | GNUNET_i2s (&msg->target)); | 1979 | GNUNET_i2s (&msg->target)); |
1975 | 1980 | ||
1976 | forward_payload (route->next_hop, | 1981 | forward_payload (route->next_hop, |