aboutsummaryrefslogtreecommitdiff
path: root/src/gns
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns')
-rw-r--r--src/gns/gnunet-dns2gns.c2
-rw-r--r--src/gns/gnunet-gns-fcfsd.c2
-rw-r--r--src/gns/gnunet-gns-proxy.c2
-rw-r--r--src/gns/gnunet-service-gns.c4
-rw-r--r--src/gns/gnunet-service-gns_interceptor.c4
-rw-r--r--src/gns/gnunet-service-gns_resolver.c45
-rw-r--r--src/gns/plugin_block_gns.c7
-rw-r--r--src/gns/test_gns_dht_three_peers.c5
-rw-r--r--src/gns/test_gns_proxy.c2
-rw-r--r--src/gns/test_gns_pseu_shorten.c2
-rw-r--r--src/gns/test_gns_simple_delegated_lookup.c2
-rw-r--r--src/gns/test_gns_simple_mx_lookup.c4
-rw-r--r--src/gns/test_gns_simple_srv_lookup.c4
13 files changed, 46 insertions, 39 deletions
diff --git a/src/gns/gnunet-dns2gns.c b/src/gns/gnunet-dns2gns.c
index ec64f0730..c1fdc2dc8 100644
--- a/src/gns/gnunet-dns2gns.c
+++ b/src/gns/gnunet-dns2gns.c
@@ -282,7 +282,7 @@ result_processor (void *cls,
282 //packet->flags.opcode = GNUNET_DNSPARSER_OPCODE_STATUS; // ??? 282 //packet->flags.opcode = GNUNET_DNSPARSER_OPCODE_STATUS; // ???
283 for (i=0;i<rd_count;i++) 283 for (i=0;i<rd_count;i++)
284 { 284 {
285 rec.expiration_time.abs_value = rd[i].expiration_time; 285 rec.expiration_time.abs_value_us = rd[i].expiration_time;
286 switch (rd[i].record_type) 286 switch (rd[i].record_type)
287 { 287 {
288 case GNUNET_DNSPARSER_TYPE_A: 288 case GNUNET_DNSPARSER_TYPE_A:
diff --git a/src/gns/gnunet-gns-fcfsd.c b/src/gns/gnunet-gns-fcfsd.c
index 832060583..dd4572cb1 100644
--- a/src/gns/gnunet-gns-fcfsd.c
+++ b/src/gns/gnunet-gns-fcfsd.c
@@ -804,7 +804,7 @@ run_httpd ()
804 GNUNET_assert (MHD_YES == MHD_get_fdset (httpd, &rs, &ws, &es, &max)); 804 GNUNET_assert (MHD_YES == MHD_get_fdset (httpd, &rs, &ws, &es, &max));
805 haveto = MHD_get_timeout (httpd, &timeout); 805 haveto = MHD_get_timeout (httpd, &timeout);
806 if (haveto == MHD_YES) 806 if (haveto == MHD_YES)
807 tv.rel_value = (uint64_t) timeout; 807 tv.rel_value_us = (uint64_t) timeout * 1000LL;
808 else 808 else
809 tv = GNUNET_TIME_UNIT_FOREVER_REL; 809 tv = GNUNET_TIME_UNIT_FOREVER_REL;
810 GNUNET_NETWORK_fdset_copy_native (wrs, &rs, max + 1); 810 GNUNET_NETWORK_fdset_copy_native (wrs, &rs, max + 1);
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c
index 4752422dd..46b16c323 100644
--- a/src/gns/gnunet-gns-proxy.c
+++ b/src/gns/gnunet-gns-proxy.c
@@ -2200,7 +2200,7 @@ run_httpd (struct MhdHttpList *hd)
2200 haveto = MHD_get_timeout (hd->daemon, &timeout); 2200 haveto = MHD_get_timeout (hd->daemon, &timeout);
2201 2201
2202 if (MHD_YES == haveto) 2202 if (MHD_YES == haveto)
2203 tv.rel_value = (uint64_t) timeout; 2203 tv.rel_value_us = (uint64_t) timeout * 1000LL;
2204 else 2204 else
2205 tv = GNUNET_TIME_UNIT_FOREVER_REL; 2205 tv = GNUNET_TIME_UNIT_FOREVER_REL;
2206 GNUNET_NETWORK_fdset_copy_native (wrs, &rs, max + 1); 2206 GNUNET_NETWORK_fdset_copy_native (wrs, &rs, max + 1);
diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c
index 8200e3f87..1bff3e51d 100644
--- a/src/gns/gnunet-service-gns.c
+++ b/src/gns/gnunet-service-gns.c
@@ -427,7 +427,7 @@ put_gns_record (void *cls,
427 GNUNET_STRINGS_relative_time_to_string (put_interval, GNUNET_YES)); 427 GNUNET_STRINGS_relative_time_to_string (put_interval, GNUNET_YES));
428 GNUNET_STATISTICS_set (statistics, 428 GNUNET_STATISTICS_set (statistics,
429 "Current zone iteration interval (in ms)", 429 "Current zone iteration interval (in ms)",
430 put_interval.rel_value, 430 put_interval.rel_value_us / 1000LL,
431 GNUNET_NO); 431 GNUNET_NO);
432 GNUNET_STATISTICS_update (statistics, 432 GNUNET_STATISTICS_update (statistics,
433 "Number of zone iterations", 1, GNUNET_NO); 433 "Number of zone iterations", 1, GNUNET_NO);
@@ -545,7 +545,7 @@ put_gns_record (void *cls,
545 545
546 GNUNET_STATISTICS_set (statistics, 546 GNUNET_STATISTICS_set (statistics,
547 "Current zone iteration interval (ms)", 547 "Current zone iteration interval (ms)",
548 next_put_interval.rel_value, 548 next_put_interval.rel_value_us / 1000LL,
549 GNUNET_NO); 549 GNUNET_NO);
550 zone_publish_task = GNUNET_SCHEDULER_add_delayed (next_put_interval, 550 zone_publish_task = GNUNET_SCHEDULER_add_delayed (next_put_interval,
551 &publish_zone_dht_next, 551 &publish_zone_dht_next,
diff --git a/src/gns/gnunet-service-gns_interceptor.c b/src/gns/gnunet-service-gns_interceptor.c
index affa0f5d6..8f55b8284 100644
--- a/src/gns/gnunet-service-gns_interceptor.c
+++ b/src/gns/gnunet-service-gns_interceptor.c
@@ -141,7 +141,7 @@ reply_to_dns (void* cls, uint32_t rd_count,
141 answer_records[i].data.raw.data = (char*)rd[i].data; 141 answer_records[i].data.raw.data = (char*)rd[i].data;
142 } 142 }
143 GNUNET_break (0 == (rd[i].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION)); 143 GNUNET_break (0 == (rd[i].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION));
144 answer_records[i].expiration_time.abs_value = rd[i].expiration_time; 144 answer_records[i].expiration_time.abs_value_us = rd[i].expiration_time;
145 answer_records[i].class = GNUNET_DNSPARSER_CLASS_INTERNET;//hmmn 145 answer_records[i].class = GNUNET_DNSPARSER_CLASS_INTERNET;//hmmn
146 } 146 }
147 else 147 else
@@ -168,7 +168,7 @@ reply_to_dns (void* cls, uint32_t rd_count,
168 additional_records[i].data.raw.data = (char*)rd[i].data; 168 additional_records[i].data.raw.data = (char*)rd[i].data;
169 } 169 }
170 GNUNET_break (0 == (rd[i].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION)); 170 GNUNET_break (0 == (rd[i].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION));
171 additional_records[i].expiration_time.abs_value = rd[i].expiration_time; 171 additional_records[i].expiration_time.abs_value_us = rd[i].expiration_time;
172 additional_records[i].class = GNUNET_DNSPARSER_CLASS_INTERNET;//hmmn 172 additional_records[i].class = GNUNET_DNSPARSER_CLASS_INTERNET;//hmmn
173 } 173 }
174 } 174 }
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c
index 2e96b60ea..bd9daf56e 100644
--- a/src/gns/gnunet-service-gns_resolver.c
+++ b/src/gns/gnunet-service-gns_resolver.c
@@ -888,8 +888,10 @@ dht_lookup_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
888 char new_name[GNUNET_DNSPARSER_MAX_NAME_LENGTH]; 888 char new_name[GNUNET_DNSPARSER_MAX_NAME_LENGTH];
889 889
890 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 890 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
891 "GNS_PHASE_REC-%llu: dht lookup for query %s (%llus) timed out.\n", 891 "GNS_PHASE_REC-%llu: dht lookup for query %s (%s) timed out.\n",
892 rh->id, rh->name, rh->timeout.rel_value); 892 rh->id, rh->name,
893 GNUNET_STRINGS_relative_time_to_string (rh->timeout,
894 GNUNET_YES));
893 /** 895 /**
894 * Start resolution in bg 896 * Start resolution in bg
895 */ 897 */
@@ -1042,7 +1044,7 @@ process_record_result_dht (void* cls,
1042 1044
1043 namestore_bg_task->node = GNUNET_CONTAINER_heap_insert (ns_task_heap, 1045 namestore_bg_task->node = GNUNET_CONTAINER_heap_insert (ns_task_heap,
1044 namestore_bg_task, 1046 namestore_bg_task,
1045 GNUNET_TIME_absolute_get().abs_value); 1047 GNUNET_TIME_absolute_get().abs_value_us);
1046 if (0 < rh->answered) 1048 if (0 < rh->answered)
1047 rh->proc (rh->proc_cls, rh, num_records, rd); 1049 rh->proc (rh->proc_cls, rh, num_records, rd);
1048 else 1050 else
@@ -1072,7 +1074,7 @@ resolve_record_dht (struct ResolverHandle *rh)
1072 1074
1073 rh->dht_heap_node = NULL; 1075 rh->dht_heap_node = NULL;
1074 1076
1075 if (GNUNET_TIME_UNIT_FOREVER_REL.rel_value != rh->timeout.rel_value) 1077 if (GNUNET_TIME_UNIT_FOREVER_REL.rel_value_us != rh->timeout.rel_value_us)
1076 { 1078 {
1077 /** 1079 /**
1078 * Update timeout if necessary 1080 * Update timeout if necessary
@@ -1114,7 +1116,7 @@ resolve_record_dht (struct ResolverHandle *rh)
1114 } 1116 }
1115 rh->dht_heap_node = GNUNET_CONTAINER_heap_insert (dht_lookup_heap, 1117 rh->dht_heap_node = GNUNET_CONTAINER_heap_insert (dht_lookup_heap,
1116 rh, 1118 rh,
1117 GNUNET_TIME_absolute_get ().abs_value); 1119 GNUNET_TIME_absolute_get ().abs_value_us);
1118 } 1120 }
1119 1121
1120 xquery = htonl (rlh->record_type); 1122 xquery = htonl (rlh->record_type);
@@ -1169,7 +1171,7 @@ process_record_result_ns (void* cls,
1169 if (NULL != name) 1171 if (NULL != name)
1170 { 1172 {
1171 rh->status |= RSL_RECORD_EXISTS; 1173 rh->status |= RSL_RECORD_EXISTS;
1172 if (remaining_time.rel_value == 0) 1174 if (remaining_time.rel_value_us == 0)
1173 rh->status |= RSL_RECORD_EXPIRED; 1175 rh->status |= RSL_RECORD_EXPIRED;
1174 } 1176 }
1175 if (0 == rd_count) 1177 if (0 == rd_count)
@@ -1210,8 +1212,8 @@ process_record_result_ns (void* cls,
1210 1212
1211 //FIXME: eh? do I have to handle this here? 1213 //FIXME: eh? do I have to handle this here?
1212 GNUNET_break (0 == (rd[i].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION)); 1214 GNUNET_break (0 == (rd[i].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION));
1213 et.abs_value = rd[i].expiration_time; 1215 et.abs_value_us = rd[i].expiration_time;
1214 if (0 == (GNUNET_TIME_absolute_get_remaining (et)).rel_value) 1216 if (0 == (GNUNET_TIME_absolute_get_remaining (et)).rel_value_us)
1215 { 1217 {
1216 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, 1218 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG,
1217 "GNS_PHASE_REC-%llu: This record is expired. Skipping\n", 1219 "GNS_PHASE_REC-%llu: This record is expired. Skipping\n",
@@ -1554,7 +1556,7 @@ read_dns_response (void *cls,
1554 rd.data_size = packet->answers[i].data.raw.data_len; 1556 rd.data_size = packet->answers[i].data.raw.data_len;
1555 rd.record_type = packet->answers[i].type; 1557 rd.record_type = packet->answers[i].type;
1556 rd.flags = 0; 1558 rd.flags = 0;
1557 rd.expiration_time = packet->answers[i].expiration_time.abs_value; 1559 rd.expiration_time = packet->answers[i].expiration_time.abs_value_us;
1558 finish_lookup (rh, rlh, 1, &rd); 1560 finish_lookup (rh, rlh, 1, &rd);
1559 GNUNET_DNSPARSER_free_packet (packet); 1561 GNUNET_DNSPARSER_free_packet (packet);
1560 return; 1562 return;
@@ -1931,9 +1933,10 @@ dht_authority_lookup_timeout (void *cls,
1931 char new_name[GNUNET_DNSPARSER_MAX_NAME_LENGTH]; 1933 char new_name[GNUNET_DNSPARSER_MAX_NAME_LENGTH];
1932 1934
1933 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1935 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1934 "GNS_PHASE_DELEGATE_DHT-%llu: dht lookup for query %s (%llus) timed out.\n", 1936 "GNS_PHASE_DELEGATE_DHT-%llu: dht lookup for query %s (%s) timed out.\n",
1935 rh->id, rh->authority_name, 1937 rh->id, rh->authority_name,
1936 rh->timeout.rel_value); 1938 GNUNET_STRINGS_relative_time_to_string (rh->timeout,
1939 GNUNET_YES));
1937 1940
1938 rh->status |= RSL_TIMED_OUT; 1941 rh->status |= RSL_TIMED_OUT;
1939 rh->timeout_task = GNUNET_SCHEDULER_NO_TASK; 1942 rh->timeout_task = GNUNET_SCHEDULER_NO_TASK;
@@ -2058,13 +2061,13 @@ process_pkey_revocation_result_ns (void *cls,
2058 } 2061 }
2059 2062
2060 if ((NULL == name) || 2063 if ((NULL == name) ||
2061 (0 == remaining_time.rel_value)) 2064 (0 == remaining_time.rel_value_us))
2062 { 2065 {
2063 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, 2066 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG,
2064 "GNS_PHASE_DELEGATE_REV-%llu: + Records don't exist or are expired.\n", 2067 "GNS_PHASE_DELEGATE_REV-%llu: + Records don't exist or are expired.\n",
2065 rh->id, name); 2068 rh->id, name);
2066 2069
2067 if (GNUNET_TIME_UNIT_FOREVER_REL.rel_value != rh->timeout.rel_value) 2070 if (GNUNET_TIME_UNIT_FOREVER_REL.rel_value_us != rh->timeout.rel_value_us)
2068 { 2071 {
2069 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, 2072 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG,
2070 "GNS_PHASE_DELEGATE_REV-%llu: Starting background lookup for %s type %d\n", 2073 "GNS_PHASE_DELEGATE_REV-%llu: Starting background lookup for %s type %d\n",
@@ -2291,7 +2294,7 @@ process_delegation_result_dht (void* cls,
2291 2294
2292 namestore_bg_task->node = GNUNET_CONTAINER_heap_insert (ns_task_heap, 2295 namestore_bg_task->node = GNUNET_CONTAINER_heap_insert (ns_task_heap,
2293 namestore_bg_task, 2296 namestore_bg_task,
2294 GNUNET_TIME_absolute_get().abs_value); 2297 GNUNET_TIME_absolute_get().abs_value_us);
2295 namestore_bg_task->qe = GNUNET_NAMESTORE_record_put (namestore_handle, 2298 namestore_bg_task->qe = GNUNET_NAMESTORE_record_put (namestore_handle,
2296 &nrb->public_key, 2299 &nrb->public_key,
2297 name, 2300 name,
@@ -2762,7 +2765,7 @@ resolve_delegation_dht (struct ResolverHandle *rh)
2762 &rh->authority, 2765 &rh->authority,
2763 &lookup_key); 2766 &lookup_key);
2764 rh->dht_heap_node = NULL; 2767 rh->dht_heap_node = NULL;
2765 if (rh->timeout.rel_value != GNUNET_TIME_UNIT_FOREVER_REL.rel_value) 2768 if (rh->timeout.rel_value_us != GNUNET_TIME_UNIT_FOREVER_REL.rel_value_us)
2766 { 2769 {
2767 rh->timeout_cont = &dht_authority_lookup_timeout; 2770 rh->timeout_cont = &dht_authority_lookup_timeout;
2768 rh->timeout_cont_cls = rh; 2771 rh->timeout_cont_cls = rh;
@@ -2788,7 +2791,7 @@ resolve_delegation_dht (struct ResolverHandle *rh)
2788 } 2791 }
2789 rh->dht_heap_node = GNUNET_CONTAINER_heap_insert (dht_lookup_heap, 2792 rh->dht_heap_node = GNUNET_CONTAINER_heap_insert (dht_lookup_heap,
2790 rh, 2793 rh,
2791 GNUNET_TIME_absolute_get().abs_value); 2794 GNUNET_TIME_absolute_get().abs_value_us);
2792 } 2795 }
2793 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 2796 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2794 "Beginning DHT lookup for %s in zone %s for request %llu\n", 2797 "Beginning DHT lookup for %s in zone %s for request %llu\n",
@@ -3096,7 +3099,7 @@ process_delegation_result_ns (void* cls,
3096 GNUNET_short_h2s (&zone)); 3099 GNUNET_short_h2s (&zone));
3097 rh->status |= RSL_RECORD_EXISTS; 3100 rh->status |= RSL_RECORD_EXISTS;
3098 3101
3099 if (0 == remaining_time.rel_value) 3102 if (0 == remaining_time.rel_value_us)
3100 { 3103 {
3101 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 3104 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
3102 "GNS_PHASE_DELEGATE_NS-%llu: Record set %s expired.\n", 3105 "GNS_PHASE_DELEGATE_NS-%llu: Record set %s expired.\n",
@@ -3194,13 +3197,13 @@ process_delegation_result_ns (void* cls,
3194 continue; 3197 continue;
3195 } 3198 }
3196 GNUNET_break (0 == (rd[i].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION)); 3199 GNUNET_break (0 == (rd[i].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION));
3197 et.abs_value = rd[i].expiration_time; 3200 et.abs_value_us = rd[i].expiration_time;
3198 if (0 == (GNUNET_TIME_absolute_get_remaining (et)).rel_value) 3201 if (0 == (GNUNET_TIME_absolute_get_remaining (et)).rel_value_us)
3199 { 3202 {
3200 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 3203 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
3201 "GNS_PHASE_DELEGATE_NS-%llu: This pkey is expired.\n", 3204 "GNS_PHASE_DELEGATE_NS-%llu: This pkey is expired.\n",
3202 rh->id); 3205 rh->id);
3203 if (remaining_time.rel_value == 0) 3206 if (remaining_time.rel_value_us == 0)
3204 { 3207 {
3205 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 3208 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
3206 "GNS_PHASE_DELEGATE_NS-%llu: This dht entry is expired.\n", 3209 "GNS_PHASE_DELEGATE_NS-%llu: This dht entry is expired.\n",
@@ -3364,7 +3367,7 @@ gns_resolver_lookup_record (struct GNUNET_CRYPTO_ShortHashCode zone,
3364 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 3367 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
3365 "No shorten key for resolution\n"); 3368 "No shorten key for resolution\n");
3366 3369
3367 if (timeout.rel_value != GNUNET_TIME_UNIT_FOREVER_REL.rel_value) 3370 if (timeout.rel_value_us != GNUNET_TIME_UNIT_FOREVER_REL.rel_value_us)
3368 { 3371 {
3369 /* 3372 /*
3370 * Set timeout for authority lookup phase to 1/2 3373 * Set timeout for authority lookup phase to 1/2
diff --git a/src/gns/plugin_block_gns.c b/src/gns/plugin_block_gns.c
index ffc38c99b..4d12f02df 100644
--- a/src/gns/plugin_block_gns.c
+++ b/src/gns/plugin_block_gns.c
@@ -166,11 +166,12 @@ block_plugin_gns_evaluate (void *cls, enum GNUNET_BLOCK_Type type,
166 record_match++; 166 record_match++;
167 } 167 }
168 } 168 }
169 et.abs_value = exp; 169 et.abs_value_us = exp;
170 170
171 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 171 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
172 "Verifying signature of %d records for name %s with expiration of %u\n", 172 "Verifying signature of %d records for name %s with expiration of %s\n",
173 rd_count, name, et.abs_value); 173 rd_count, name,
174 GNUNET_STRINGS_absolute_time_to_string (et));
174 175
175 if (GNUNET_OK != 176 if (GNUNET_OK !=
176 GNUNET_NAMESTORE_verify_signature (&nrb->public_key, 177 GNUNET_NAMESTORE_verify_signature (&nrb->public_key,
diff --git a/src/gns/test_gns_dht_three_peers.c b/src/gns/test_gns_dht_three_peers.c
index 35a738aef..11f78db4b 100644
--- a/src/gns/test_gns_dht_three_peers.c
+++ b/src/gns/test_gns_dht_three_peers.c
@@ -250,12 +250,14 @@ on_lookup_result(void *cls, uint32_t rd_count,
250 end_now (); 250 end_now ();
251} 251}
252 252
253
253static void 254static void
254commence_testing(void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 255commence_testing(void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
255{ 256{
256 static int wait = 0; 257 static int wait = 0;
258
257 wait++; 259 wait++;
258 if ((ZONE_PUT_WAIT_TIME.rel_value / 1000) == wait) 260 if ((ZONE_PUT_WAIT_TIME.rel_value_us / 1000LL / 1000LL) == wait)
259 { 261 {
260 fprintf (stderr, "\n"); 262 fprintf (stderr, "\n");
261 wait_task = GNUNET_SCHEDULER_NO_TASK; 263 wait_task = GNUNET_SCHEDULER_NO_TASK;
@@ -274,6 +276,7 @@ commence_testing(void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
274 } 276 }
275} 277}
276 278
279
277void 280void
278all_connected () 281all_connected ()
279{ 282{
diff --git a/src/gns/test_gns_proxy.c b/src/gns/test_gns_proxy.c
index cfbcb1d9e..050e2d258 100644
--- a/src/gns/test_gns_proxy.c
+++ b/src/gns/test_gns_proxy.c
@@ -422,7 +422,7 @@ run (void *cls,
422 } 422 }
423 423
424 host_key = GNUNET_CRYPTO_ecc_key_create_from_file (zone_keyfile); 424 host_key = GNUNET_CRYPTO_ecc_key_create_from_file (zone_keyfile);
425 rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value; 425 rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us;
426 GNUNET_assert (GNUNET_OK == GNUNET_NAMESTORE_string_to_value (GNUNET_GNS_RECORD_A, 426 GNUNET_assert (GNUNET_OK == GNUNET_NAMESTORE_string_to_value (GNUNET_GNS_RECORD_A,
427 "127.0.0.1", 427 "127.0.0.1",
428 (void**)&rd.data, 428 (void**)&rd.data,
diff --git a/src/gns/test_gns_pseu_shorten.c b/src/gns/test_gns_pseu_shorten.c
index 7413c7074..ba7cd2492 100644
--- a/src/gns/test_gns_pseu_shorten.c
+++ b/src/gns/test_gns_pseu_shorten.c
@@ -269,7 +269,7 @@ put_pseu_dht (void *cls, int success)
269 struct GNUNET_NAMESTORE_RecordData rd; 269 struct GNUNET_NAMESTORE_RecordData rd;
270 270
271 memset (&rd, 0, sizeof (struct GNUNET_NAMESTORE_RecordData)); 271 memset (&rd, 0, sizeof (struct GNUNET_NAMESTORE_RecordData));
272 rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value; 272 rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us;
273 rd.data_size = strlen(TEST_PSEU_ALICE)+1; 273 rd.data_size = strlen(TEST_PSEU_ALICE)+1;
274 rd.data = TEST_PSEU_ALICE; 274 rd.data = TEST_PSEU_ALICE;
275 rd.record_type = GNUNET_GNS_RECORD_PSEU; 275 rd.record_type = GNUNET_GNS_RECORD_PSEU;
diff --git a/src/gns/test_gns_simple_delegated_lookup.c b/src/gns/test_gns_simple_delegated_lookup.c
index ff19569d6..8b5f8bc38 100644
--- a/src/gns/test_gns_simple_delegated_lookup.c
+++ b/src/gns/test_gns_simple_delegated_lookup.c
@@ -247,7 +247,7 @@ do_check (void *cls,
247 GNUNET_TIME_UNIT_FOREVER_ABS, 247 GNUNET_TIME_UNIT_FOREVER_ABS,
248 TEST_RECORD_NAME, 248 TEST_RECORD_NAME,
249 &rd, 1); 249 &rd, 1);
250 et.abs_value = rd.expiration_time; 250 et.abs_value_us = rd.expiration_time;
251 GNUNET_NAMESTORE_record_put (namestore_handle, 251 GNUNET_NAMESTORE_record_put (namestore_handle,
252 &bob_pkey, 252 &bob_pkey,
253 TEST_RECORD_NAME, 253 TEST_RECORD_NAME,
diff --git a/src/gns/test_gns_simple_mx_lookup.c b/src/gns/test_gns_simple_mx_lookup.c
index 904758bde..b078edc4f 100644
--- a/src/gns/test_gns_simple_mx_lookup.c
+++ b/src/gns/test_gns_simple_mx_lookup.c
@@ -245,7 +245,7 @@ do_check (void *cls,
245 GNUNET_TIME_UNIT_FOREVER_ABS, 245 GNUNET_TIME_UNIT_FOREVER_ABS,
246 TEST_RECORD_NAME, 246 TEST_RECORD_NAME,
247 &rd, 1); 247 &rd, 1);
248 et.abs_value = rd.expiration_time; 248 et.abs_value_us = rd.expiration_time;
249 GNUNET_NAMESTORE_record_put (namestore_handle, 249 GNUNET_NAMESTORE_record_put (namestore_handle,
250 &bob_pkey, 250 &bob_pkey,
251 TEST_RECORD_NAME, 251 TEST_RECORD_NAME,
@@ -267,7 +267,7 @@ do_check (void *cls,
267 GNUNET_TIME_UNIT_FOREVER_ABS, 267 GNUNET_TIME_UNIT_FOREVER_ABS,
268 GNUNET_GNS_MASTERZONE_STR, 268 GNUNET_GNS_MASTERZONE_STR,
269 &rd, 1); 269 &rd, 1);
270 et.abs_value = rd.expiration_time; 270 et.abs_value_us = rd.expiration_time;
271 GNUNET_NAMESTORE_record_put (namestore_handle, 271 GNUNET_NAMESTORE_record_put (namestore_handle,
272 &bob_pkey, 272 &bob_pkey,
273 GNUNET_GNS_MASTERZONE_STR, 273 GNUNET_GNS_MASTERZONE_STR,
diff --git a/src/gns/test_gns_simple_srv_lookup.c b/src/gns/test_gns_simple_srv_lookup.c
index a403bf554..601d01af9 100644
--- a/src/gns/test_gns_simple_srv_lookup.c
+++ b/src/gns/test_gns_simple_srv_lookup.c
@@ -251,7 +251,7 @@ do_check (void *cls,
251 GNUNET_TIME_UNIT_FOREVER_ABS, 251 GNUNET_TIME_UNIT_FOREVER_ABS,
252 TEST_RECORD_NAME, 252 TEST_RECORD_NAME,
253 &rd, 1); 253 &rd, 1);
254 et.abs_value = rd.expiration_time; 254 et.abs_value_us = rd.expiration_time;
255 GNUNET_NAMESTORE_record_put (namestore_handle, 255 GNUNET_NAMESTORE_record_put (namestore_handle,
256 &bob_pkey, 256 &bob_pkey,
257 TEST_RECORD_NAME, 257 TEST_RECORD_NAME,
@@ -274,7 +274,7 @@ do_check (void *cls,
274 GNUNET_TIME_UNIT_FOREVER_ABS, 274 GNUNET_TIME_UNIT_FOREVER_ABS,
275 TEST_RECORD_NAME_SRV, 275 TEST_RECORD_NAME_SRV,
276 &rd, 1); 276 &rd, 1);
277 et.abs_value = rd.expiration_time; 277 et.abs_value_us = rd.expiration_time;
278 GNUNET_NAMESTORE_record_put (namestore_handle, 278 GNUNET_NAMESTORE_record_put (namestore_handle,
279 &bob_pkey, 279 &bob_pkey,
280 TEST_RECORD_NAME_SRV, 280 TEST_RECORD_NAME_SRV,