diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-15 10:52:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-15 10:52:06 +0000 |
commit | 3288af4a4651156c01bdf6ffe1b20c6fbedf4bd8 (patch) | |
tree | ed49951102400f7086f4db23846fb7aaf32e5eb1 /src/gns/gnunet-service-gns_interceptor.c | |
parent | 9e94c69b299f74ac88b14f92b7a01bba0c33a776 (diff) | |
download | gnunet-3288af4a4651156c01bdf6ffe1b20c6fbedf4bd8.tar.gz gnunet-3288af4a4651156c01bdf6ffe1b20c6fbedf4bd8.zip |
-eliminating duplicate struct definitions
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 ec6664454..6097c8611 100644 --- a/src/gns/gnunet-service-gns_interceptor.c +++ b/src/gns/gnunet-service-gns_interceptor.c | |||
@@ -148,7 +148,7 @@ reply_to_dns (void *cls, uint32_t rd_count, | |||
148 | } | 148 | } |
149 | GNUNET_break (0 == (rd[i].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION)); | 149 | GNUNET_break (0 == (rd[i].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION)); |
150 | answer_records[i].expiration_time.abs_value_us = rd[i].expiration_time; | 150 | answer_records[i].expiration_time.abs_value_us = rd[i].expiration_time; |
151 | answer_records[i].class = GNUNET_DNSPARSER_CLASS_INTERNET; | 151 | answer_records[i].class = GNUNET_TUN_DNS_CLASS_INTERNET; |
152 | } | 152 | } |
153 | else | 153 | else |
154 | { | 154 | { |
@@ -176,16 +176,16 @@ reply_to_dns (void *cls, uint32_t rd_count, | |||
176 | } | 176 | } |
177 | GNUNET_break (0 == (rd[i].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION)); | 177 | GNUNET_break (0 == (rd[i].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION)); |
178 | additional_records[i].expiration_time.abs_value_us = rd[i].expiration_time; | 178 | additional_records[i].expiration_time.abs_value_us = rd[i].expiration_time; |
179 | additional_records[i].class = GNUNET_DNSPARSER_CLASS_INTERNET; | 179 | additional_records[i].class = GNUNET_TUN_DNS_CLASS_INTERNET; |
180 | } | 180 | } |
181 | } | 181 | } |
182 | packet->num_answers = num_answers; | 182 | packet->num_answers = num_answers; |
183 | packet->num_additional_records = rd_count - num_answers; | 183 | packet->num_additional_records = rd_count - num_answers; |
184 | packet->flags.authoritative_answer = 1; | 184 | packet->flags.authoritative_answer = 1; |
185 | if (NULL == rd) | 185 | if (NULL == rd) |
186 | packet->flags.return_code = GNUNET_DNSPARSER_RETURN_CODE_NAME_ERROR; | 186 | packet->flags.return_code = GNUNET_TUN_DNS_RETURN_CODE_NAME_ERROR; |
187 | else | 187 | else |
188 | packet->flags.return_code = GNUNET_DNSPARSER_RETURN_CODE_NO_ERROR; | 188 | packet->flags.return_code = GNUNET_TUN_DNS_RETURN_CODE_NO_ERROR; |
189 | packet->flags.query_or_response = 1; | 189 | packet->flags.query_or_response = 1; |
190 | ret = GNUNET_DNSPARSER_pack (packet, | 190 | ret = GNUNET_DNSPARSER_pack (packet, |
191 | 1024, /* maximum allowed size for DNS reply */ | 191 | 1024, /* maximum allowed size for DNS reply */ |