diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-03-01 02:20:04 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-03-01 02:20:04 +0000 |
commit | 51580550ab479d272beea3e67790e882182ffd01 (patch) | |
tree | acb13c6451443cfc39f3d2ec5af0d53a57e24f28 /src | |
parent | 750ef344e3faabe2d4680e6dcf93ac0c0e31b2b0 (diff) | |
download | gnunet-51580550ab479d272beea3e67790e882182ffd01.tar.gz gnunet-51580550ab479d272beea3e67790e882182ffd01.zip |
- fix in monitoring, documentation, style
Diffstat (limited to 'src')
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.c | 22 | ||||
-rw-r--r-- | src/dht/gnunet-service-dht_routing.c | 2 |
2 files changed, 11 insertions, 13 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index 4872b58a5..3fa5de71a 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c | |||
@@ -1644,17 +1644,18 @@ handle_dht_p2p_put (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
1644 | GNUNET_TIME_absolute_ntoh (put->expiration_time), | 1644 | GNUNET_TIME_absolute_ntoh (put->expiration_time), |
1645 | ntohl (put->hop_count), bf, &put->key, putlen, | 1645 | ntohl (put->hop_count), bf, &put->key, putlen, |
1646 | pp, payload, payload_size); | 1646 | pp, payload, payload_size); |
1647 | /* notify monitoring clients */ | ||
1648 | GDS_CLIENTS_process_put (options, | ||
1649 | ntohl (put->type), | ||
1650 | ntohl (put->hop_count), | ||
1651 | ntohl (put->desired_replication_level), | ||
1652 | putlen, pp, | ||
1653 | GNUNET_TIME_absolute_ntoh (put->expiration_time), | ||
1654 | &put->key, | ||
1655 | payload, | ||
1656 | payload_size); | ||
1647 | } | 1657 | } |
1648 | GNUNET_CONTAINER_bloomfilter_free (bf); | 1658 | GNUNET_CONTAINER_bloomfilter_free (bf); |
1649 | GDS_CLIENTS_process_put (options, | ||
1650 | ntohl (put->type), | ||
1651 | ntohl (put->hop_count), | ||
1652 | ntohl (put->desired_replication_level), | ||
1653 | putlen, put_path, | ||
1654 | GNUNET_TIME_absolute_ntoh (put->expiration_time), | ||
1655 | &put->key, | ||
1656 | payload, | ||
1657 | payload_size); | ||
1658 | return GNUNET_YES; | 1659 | return GNUNET_YES; |
1659 | } | 1660 | } |
1660 | 1661 | ||
@@ -1869,9 +1870,6 @@ handle_dht_p2p_get (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
1869 | GNUNET_free (tmp); | 1870 | GNUNET_free (tmp); |
1870 | } | 1871 | } |
1871 | 1872 | ||
1872 | |||
1873 | |||
1874 | /* FIXME Path */ | ||
1875 | GDS_CLIENTS_process_get (options, | 1873 | GDS_CLIENTS_process_get (options, |
1876 | type, | 1874 | type, |
1877 | ntohl(get->hop_count), | 1875 | ntohl(get->hop_count), |
diff --git a/src/dht/gnunet-service-dht_routing.c b/src/dht/gnunet-service-dht_routing.c index 2d0d77876..efcdf0e14 100644 --- a/src/dht/gnunet-service-dht_routing.c +++ b/src/dht/gnunet-service-dht_routing.c | |||
@@ -264,7 +264,7 @@ process (void *cls, const struct GNUNET_HashCode * key, void *value) | |||
264 | * @param key key for the content | 264 | * @param key key for the content |
265 | * @param put_path_length number of entries in put_path | 265 | * @param put_path_length number of entries in put_path |
266 | * @param put_path peers the original PUT traversed (if tracked) | 266 | * @param put_path peers the original PUT traversed (if tracked) |
267 | * @param get_path_length number of entries in put_path | 267 | * @param get_path_length number of entries in get_path |
268 | * @param get_path peers this reply has traversed so far (if tracked) | 268 | * @param get_path peers this reply has traversed so far (if tracked) |
269 | * @param data payload of the reply | 269 | * @param data payload of the reply |
270 | * @param data_size number of bytes in data | 270 | * @param data_size number of bytes in data |