diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-04-17 11:54:14 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-04-17 11:54:14 +0200 |
commit | 64a7c356b391016be0aa01bc25c237f59fc03a34 (patch) | |
tree | 4325faf7b05a68f631d62c059e0f7d3f923df59e /src/namestore | |
parent | a5335a605ba2a07936a6241b7d03793596c1255b (diff) | |
download | gnunet-64a7c356b391016be0aa01bc25c237f59fc03a34.tar.gz gnunet-64a7c356b391016be0aa01bc25c237f59fc03a34.zip |
fix record type used
Diffstat (limited to 'src/namestore')
-rw-r--r-- | src/namestore/gnunet-zoneimport.c | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/namestore/gnunet-zoneimport.c b/src/namestore/gnunet-zoneimport.c index 8173ad9be..4d595e554 100644 --- a/src/namestore/gnunet-zoneimport.c +++ b/src/namestore/gnunet-zoneimport.c | |||
@@ -21,6 +21,9 @@ | |||
21 | * @file src/namestore/gnunet-zoneimport.c | 21 | * @file src/namestore/gnunet-zoneimport.c |
22 | * @brief import a DNS zone for publication in GNS, incremental | 22 | * @brief import a DNS zone for publication in GNS, incremental |
23 | * @author Christian Grothoff | 23 | * @author Christian Grothoff |
24 | * | ||
25 | * TODO: | ||
26 | * - set NICKname for zone's records | ||
24 | */ | 27 | */ |
25 | #include "platform.h" | 28 | #include "platform.h" |
26 | #include <gnunet_util_lib.h> | 29 | #include <gnunet_util_lib.h> |
@@ -120,12 +123,12 @@ struct Request | |||
120 | 123 | ||
121 | /** | 124 | /** |
122 | * Active requests are kept in a DLL. | 125 | * Active requests are kept in a DLL. |
123 | */ | 126 | */ |
124 | struct Request *next; | 127 | struct Request *next; |
125 | 128 | ||
126 | /** | 129 | /** |
127 | * Active requests are kept in a DLL. | 130 | * Active requests are kept in a DLL. |
128 | */ | 131 | */ |
129 | struct Request *prev; | 132 | struct Request *prev; |
130 | 133 | ||
131 | /** | 134 | /** |
@@ -249,12 +252,12 @@ static struct GNUNET_CONTAINER_Heap *req_heap; | |||
249 | 252 | ||
250 | /** | 253 | /** |
251 | * Active requests are kept in a DLL. | 254 | * Active requests are kept in a DLL. |
252 | */ | 255 | */ |
253 | static struct Request *req_head; | 256 | static struct Request *req_head; |
254 | 257 | ||
255 | /** | 258 | /** |
256 | * Active requests are kept in a DLL. | 259 | * Active requests are kept in a DLL. |
257 | */ | 260 | */ |
258 | static struct Request *req_tail; | 261 | static struct Request *req_tail; |
259 | 262 | ||
260 | /** | 263 | /** |
@@ -350,7 +353,7 @@ static void | |||
350 | free_request (struct Request *req) | 353 | free_request (struct Request *req) |
351 | { | 354 | { |
352 | struct Record *rec; | 355 | struct Record *rec; |
353 | 356 | ||
354 | while (NULL != (rec = req->rec_head)) | 357 | while (NULL != (rec = req->rec_head)) |
355 | { | 358 | { |
356 | GNUNET_CONTAINER_DLL_remove (req->rec_head, | 359 | GNUNET_CONTAINER_DLL_remove (req->rec_head, |
@@ -386,8 +389,8 @@ insert_sorted (struct Request *req) | |||
386 | req, | 389 | req, |
387 | req->expires.abs_value_us); | 390 | req->expires.abs_value_us); |
388 | if (req == GNUNET_CONTAINER_heap_peek (req_heap)) | 391 | if (req == GNUNET_CONTAINER_heap_peek (req_heap)) |
389 | { | 392 | { |
390 | if (NULL != t) | 393 | if (NULL != t) |
391 | GNUNET_SCHEDULER_cancel (t); | 394 | GNUNET_SCHEDULER_cancel (t); |
392 | t = GNUNET_SCHEDULER_add_at (req->expires, | 395 | t = GNUNET_SCHEDULER_add_at (req->expires, |
393 | &process_queue, | 396 | &process_queue, |
@@ -502,7 +505,7 @@ check_for_glue (void *cls, | |||
502 | ip)) ) | 505 | ip)) ) |
503 | { | 506 | { |
504 | add_record (gc->req, | 507 | add_record (gc->req, |
505 | rec->type, | 508 | GNUNET_GNSRECORD_TYPE_GNS2DNS, |
506 | rec->expiration_time, | 509 | rec->expiration_time, |
507 | dst, | 510 | dst, |
508 | off); | 511 | off); |
@@ -536,7 +539,7 @@ check_for_glue (void *cls, | |||
536 | ip)) ) | 539 | ip)) ) |
537 | { | 540 | { |
538 | add_record (gc->req, | 541 | add_record (gc->req, |
539 | rec->type, | 542 | GNUNET_GNSRECORD_TYPE_GNS2DNS, |
540 | rec->expiration_time, | 543 | rec->expiration_time, |
541 | dst, | 544 | dst, |
542 | off); | 545 | off); |
@@ -556,7 +559,7 @@ check_for_glue (void *cls, | |||
556 | rec->data.hostname)) ) | 559 | rec->data.hostname)) ) |
557 | { | 560 | { |
558 | add_record (gc->req, | 561 | add_record (gc->req, |
559 | rec->type, | 562 | GNUNET_GNSRECORD_TYPE_GNS2DNS, |
560 | rec->expiration_time, | 563 | rec->expiration_time, |
561 | dst, | 564 | dst, |
562 | off); | 565 | off); |
@@ -639,7 +642,7 @@ process_record (void *cls, | |||
639 | rec->data.hostname, | 642 | rec->data.hostname, |
640 | rec->name); | 643 | rec->name); |
641 | add_record (req, | 644 | add_record (req, |
642 | rec->type, | 645 | GNUNET_GNSRECORD_TYPE_GNS2DNS, |
643 | rec->expiration_time, | 646 | rec->expiration_time, |
644 | dst, | 647 | dst, |
645 | off); | 648 | off); |