diff options
Diffstat (limited to 'src/gns/gnunet-service-gns_interceptor.c')
-rw-r--r-- | src/gns/gnunet-service-gns_interceptor.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gns/gnunet-service-gns_interceptor.c b/src/gns/gnunet-service-gns_interceptor.c index 61568c438..efa6e49bb 100644 --- a/src/gns/gnunet-service-gns_interceptor.c +++ b/src/gns/gnunet-service-gns_interceptor.c | |||
@@ -97,7 +97,7 @@ static struct InterceptLookupHandle *ilh_tail; | |||
97 | */ | 97 | */ |
98 | static void | 98 | static void |
99 | reply_to_dns (void *cls, uint32_t rd_count, | 99 | reply_to_dns (void *cls, uint32_t rd_count, |
100 | const struct GNUNET_NAMESTORE_RecordData *rd) | 100 | const struct GNUNET_GNSRECORD_Data *rd) |
101 | { | 101 | { |
102 | struct InterceptLookupHandle *ilh = cls; | 102 | struct InterceptLookupHandle *ilh = cls; |
103 | struct GNUNET_DNSPARSER_Packet *packet = ilh->packet; | 103 | struct GNUNET_DNSPARSER_Packet *packet = ilh->packet; |
@@ -125,7 +125,7 @@ reply_to_dns (void *cls, uint32_t rd_count, | |||
125 | 125 | ||
126 | packet->answers = answer_records; | 126 | packet->answers = answer_records; |
127 | packet->additional_records = additional_records; | 127 | packet->additional_records = additional_records; |
128 | /* FIXME: need to handle #GNUNET_NAMESTORE_RF_SHADOW_RECORD option | 128 | /* FIXME: need to handle #GNUNET_GNSRECORD_RF_SHADOW_RECORD option |
129 | (by ignoring records where this flag is set if there is any | 129 | (by ignoring records where this flag is set if there is any |
130 | other record of that type in the result set) */ | 130 | other record of that type in the result set) */ |
131 | for (i=0; i < rd_count; i++) | 131 | for (i=0; i < rd_count; i++) |
@@ -183,7 +183,7 @@ reply_to_dns (void *cls, uint32_t rd_count, | |||
183 | answer_records[i - skip_answers].data.raw.data = (char*)rd[i].data; | 183 | answer_records[i - skip_answers].data.raw.data = (char*)rd[i].data; |
184 | break; | 184 | break; |
185 | } | 185 | } |
186 | GNUNET_break (0 == (rd[i - skip_answers].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION)); | 186 | GNUNET_break (0 == (rd[i - skip_answers].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION)); |
187 | answer_records[i - skip_answers].expiration_time.abs_value_us = rd[i].expiration_time; | 187 | answer_records[i - skip_answers].expiration_time.abs_value_us = rd[i].expiration_time; |
188 | answer_records[i - skip_answers].dns_traffic_class = GNUNET_TUN_DNS_CLASS_INTERNET; | 188 | answer_records[i - skip_answers].dns_traffic_class = GNUNET_TUN_DNS_CLASS_INTERNET; |
189 | } | 189 | } |
@@ -240,7 +240,7 @@ reply_to_dns (void *cls, uint32_t rd_count, | |||
240 | additional_records[i - skip_additional].data.raw.data = (char*)rd[i].data; | 240 | additional_records[i - skip_additional].data.raw.data = (char*)rd[i].data; |
241 | break; | 241 | break; |
242 | } | 242 | } |
243 | GNUNET_break (0 == (rd[i - skip_additional].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION)); | 243 | GNUNET_break (0 == (rd[i - skip_additional].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION)); |
244 | additional_records[i - skip_additional].expiration_time.abs_value_us = rd[i].expiration_time; | 244 | additional_records[i - skip_additional].expiration_time.abs_value_us = rd[i].expiration_time; |
245 | additional_records[i - skip_additional].dns_traffic_class = GNUNET_TUN_DNS_CLASS_INTERNET; | 245 | additional_records[i - skip_additional].dns_traffic_class = GNUNET_TUN_DNS_CLASS_INTERNET; |
246 | } | 246 | } |