diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-21 15:19:21 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-21 15:19:21 +0000 |
commit | b98e0afd91337dd69af31cc734376675e3c9a610 (patch) | |
tree | 07ce8015ba8e9287aef14c66fdd7b253c90e3669 /src/gns/gnunet-service-gns_interceptor.c | |
parent | 76613c37258a7fef8764d127a5bda9cee6d05888 (diff) | |
download | gnunet-b98e0afd91337dd69af31cc734376675e3c9a610.tar.gz gnunet-b98e0afd91337dd69af31cc734376675e3c9a610.zip |
document places where SHADOW records likely need to be handled
Diffstat (limited to 'src/gns/gnunet-service-gns_interceptor.c')
-rw-r--r-- | src/gns/gnunet-service-gns_interceptor.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gns/gnunet-service-gns_interceptor.c b/src/gns/gnunet-service-gns_interceptor.c index 677350735..e0a16ccab 100644 --- a/src/gns/gnunet-service-gns_interceptor.c +++ b/src/gns/gnunet-service-gns_interceptor.c | |||
@@ -21,6 +21,10 @@ | |||
21 | * @file gns/gnunet-service-gns_interceptor.c | 21 | * @file gns/gnunet-service-gns_interceptor.c |
22 | * @brief GNUnet GNS interceptor logic | 22 | * @brief GNUnet GNS interceptor logic |
23 | * @author Martin Schanzenbach | 23 | * @author Martin Schanzenbach |
24 | * @author Christian Grothoff | ||
25 | * | ||
26 | * TODO: | ||
27 | * - implement RF_SHADOW_RECORD logic | ||
24 | */ | 28 | */ |
25 | #include "platform.h" | 29 | #include "platform.h" |
26 | #include "gnunet_util_lib.h" | 30 | #include "gnunet_util_lib.h" |
@@ -120,6 +124,9 @@ reply_to_dns (void *cls, uint32_t rd_count, | |||
120 | packet->answers = answer_records; | 124 | packet->answers = answer_records; |
121 | packet->additional_records = additional_records; | 125 | packet->additional_records = additional_records; |
122 | 126 | ||
127 | /* FIXME: need to handle #GNUNET_NAMESTORE_RF_SHADOW_RECORD option | ||
128 | (by ignoring records where this flag is set if there is any | ||
129 | other record of that type in the result set) */ | ||
123 | for (i=0; i < rd_count; i++) | 130 | for (i=0; i < rd_count; i++) |
124 | { | 131 | { |
125 | if (rd[i].record_type == query->type) | 132 | if (rd[i].record_type == query->type) |