aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht_neighbours.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.c')
-rw-r--r--src/dht/gnunet-service-dht_neighbours.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c
index 9a3abc376..fde25936f 100644
--- a/src/dht/gnunet-service-dht_neighbours.c
+++ b/src/dht/gnunet-service-dht_neighbours.c
@@ -1526,7 +1526,7 @@ GDS_NEIGHBOURS_handle_get (enum GNUNET_BLOCK_Type type,
1526 pgm->options = htons (options); 1526 pgm->options = htons (options);
1527 pgm->hop_count = htons (hop_count + 1); 1527 pgm->hop_count = htons (hop_count + 1);
1528 pgm->desired_replication_level = htons (desired_replication_level); 1528 pgm->desired_replication_level = htons (desired_replication_level);
1529 pgm->result_filter_size = htonl (result_filter_size); 1529 pgm->result_filter_size = htons ((uint16_t) result_filter_size);
1530 GNUNET_break (GNUNET_YES == 1530 GNUNET_break (GNUNET_YES ==
1531 GNUNET_CONTAINER_bloomfilter_test (peer_bf, 1531 GNUNET_CONTAINER_bloomfilter_test (peer_bf,
1532 &target->phash)); 1532 &target->phash));
@@ -2061,7 +2061,7 @@ check_dht_p2p_get (void *cls,
2061 const struct PeerGetMessage *get) 2061 const struct PeerGetMessage *get)
2062{ 2062{
2063 uint16_t msize = ntohs (get->header.size); 2063 uint16_t msize = ntohs (get->header.size);
2064 uint32_t result_filter_size = ntohl (get->result_filter_size); 2064 uint16_t result_filter_size = ntohs (get->result_filter_size);
2065 2065
2066 (void) cls; 2066 (void) cls;
2067 if (msize < sizeof(*get) + result_filter_size) 2067 if (msize < sizeof(*get) + result_filter_size)
@@ -2086,8 +2086,8 @@ handle_dht_p2p_get (void *cls,
2086 struct Target *t = cls; 2086 struct Target *t = cls;
2087 struct PeerInfo *peer = t->pi; 2087 struct PeerInfo *peer = t->pi;
2088 uint16_t msize = ntohs (get->header.size); 2088 uint16_t msize = ntohs (get->header.size);
2089 uint32_t result_filter_size = ntohl (get->result_filter_size); 2089 uint16_t result_filter_size = ntohs (get->result_filter_size);
2090 uint32_t hop_count = ntohs (get->hop_count); 2090 uint16_t hop_count = ntohs (get->hop_count);
2091 enum GNUNET_BLOCK_Type type = (enum GNUNET_BLOCK_Type) ntohl (get->type); 2091 enum GNUNET_BLOCK_Type type = (enum GNUNET_BLOCK_Type) ntohl (get->type);
2092 enum GNUNET_DHT_RouteOption options = (enum GNUNET_DHT_RouteOption) ntohs ( 2092 enum GNUNET_DHT_RouteOption options = (enum GNUNET_DHT_RouteOption) ntohs (
2093 get->options); 2093 get->options);