diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-09-27 21:06:11 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-09-27 21:06:11 +0000 |
commit | 65b243be0941da4896afd842deda48cd0ce488e2 (patch) | |
tree | 019901e73101b13f9602fa8118aa7503e9ee7d32 /src/vpn/gnunet-service-dns.c | |
parent | 94f1bfcb5f933ea09b9e4d066685709eba423951 (diff) | |
download | gnunet-65b243be0941da4896afd842deda48cd0ce488e2.tar.gz gnunet-65b243be0941da4896afd842deda48cd0ce488e2.zip |
DHT api switch adjustments
Diffstat (limited to 'src/vpn/gnunet-service-dns.c')
-rw-r--r-- | src/vpn/gnunet-service-dns.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/vpn/gnunet-service-dns.c b/src/vpn/gnunet-service-dns.c index e97da1921..fc65cf608 100644 --- a/src/vpn/gnunet-service-dns.c +++ b/src/vpn/gnunet-service-dns.c | |||
@@ -641,10 +641,11 @@ static void | |||
641 | receive_dht (void *cls, struct GNUNET_TIME_Absolute exp | 641 | receive_dht (void *cls, struct GNUNET_TIME_Absolute exp |
642 | __attribute__ ((unused)), const GNUNET_HashCode * key | 642 | __attribute__ ((unused)), const GNUNET_HashCode * key |
643 | __attribute__ ((unused)), | 643 | __attribute__ ((unused)), |
644 | const struct GNUNET_PeerIdentity *const *get_path | 644 | const struct GNUNET_PeerIdentity *get_path __attribute__ ((unused)), |
645 | __attribute__ ((unused)), | 645 | unsigned int get_path_length __attribute__ ((unused)), |
646 | const struct GNUNET_PeerIdentity *const *put_path | 646 | const struct GNUNET_PeerIdentity *put_path __attribute__ ((unused)), |
647 | __attribute__ ((unused)), enum GNUNET_BLOCK_Type type, size_t size, | 647 | unsigned int put_path_length __attribute__ ((unused)), |
648 | enum GNUNET_BLOCK_Type type, size_t size, | ||
648 | const void *data) | 649 | const void *data) |
649 | { | 650 | { |
650 | 651 | ||
@@ -806,8 +807,8 @@ receive_query (void *cls | |||
806 | cls->handle = | 807 | cls->handle = |
807 | GNUNET_DHT_get_start (dht, GNUNET_TIME_UNIT_MINUTES, | 808 | GNUNET_DHT_get_start (dht, GNUNET_TIME_UNIT_MINUTES, |
808 | GNUNET_BLOCK_TYPE_DNS, &key, | 809 | GNUNET_BLOCK_TYPE_DNS, &key, |
809 | DEFAULT_GET_REPLICATION, GNUNET_DHT_RO_NONE, NULL, | 810 | 5 /* DEFAULT_GET_REPLICATION */, GNUNET_DHT_RO_NONE, NULL, |
810 | 0, NULL, 0, receive_dht, cls); | 811 | 0, &receive_dht, cls); |
811 | 812 | ||
812 | goto outfree; | 813 | goto outfree; |
813 | } | 814 | } |
@@ -1251,7 +1252,7 @@ publish_name (const char *name, uint64_t ports, uint32_t service_type, | |||
1251 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Putting with key %08x, size = %d\n", | 1252 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Putting with key %08x, size = %d\n", |
1252 | *((unsigned int *) &data.service_descriptor), size); | 1253 | *((unsigned int *) &data.service_descriptor), size); |
1253 | 1254 | ||
1254 | GNUNET_DHT_put (dht, &data.service_descriptor, DEFAULT_PUT_REPLICATION, | 1255 | GNUNET_DHT_put (dht, &data.service_descriptor, 5 /* DEFAULT_PUT_REPLICATION */, |
1255 | GNUNET_DHT_RO_NONE, GNUNET_BLOCK_TYPE_DNS, size, | 1256 | GNUNET_DHT_RO_NONE, GNUNET_BLOCK_TYPE_DNS, size, |
1256 | (char *) &data, | 1257 | (char *) &data, |
1257 | GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS), | 1258 | GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS), |