diff options
author | Philipp Tölke <toelke@in.tum.de> | 2011-04-10 13:19:32 +0000 |
---|---|---|
committer | Philipp Tölke <toelke@in.tum.de> | 2011-04-10 13:19:32 +0000 |
commit | 4f222e97fec909eb6d3ff137befba3eb946a3bbc (patch) | |
tree | d129ca6eed4fe1ee3707eac8f73cb2ac095ad3d7 /src/vpn | |
parent | 19ee99ab594b60ed7f75416f5c4ad59c7cf997d7 (diff) | |
download | gnunet-4f222e97fec909eb6d3ff137befba3eb946a3bbc.tar.gz gnunet-4f222e97fec909eb6d3ff137befba3eb946a3bbc.zip |
FIXMEs
Diffstat (limited to 'src/vpn')
-rw-r--r-- | src/vpn/gnunet-service-dns.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/vpn/gnunet-service-dns.c b/src/vpn/gnunet-service-dns.c index a2bf13674..ee596fd0d 100644 --- a/src/vpn/gnunet-service-dns.c +++ b/src/vpn/gnunet-service-dns.c | |||
@@ -245,7 +245,12 @@ send_rev_query(void * cls, const struct GNUNET_SCHEDULER_TaskContext *tc) { | |||
245 | struct dns_record_line *drec_data = (struct dns_record_line*)(dpkt->data+(query_states[id].namelen)+sizeof(struct dns_query_line)+2); | 245 | struct dns_record_line *drec_data = (struct dns_record_line*)(dpkt->data+(query_states[id].namelen)+sizeof(struct dns_query_line)+2); |
246 | drec_data->type = htons(12); /* AAAA */ | 246 | drec_data->type = htons(12); /* AAAA */ |
247 | drec_data->class = htons(1); /* IN */ | 247 | drec_data->class = htons(1); /* IN */ |
248 | drec_data->ttl = htonl(3600); /* FIXME: read from block */ | 248 | /* FIXME: read the TTL from block: |
249 | * GNUNET_TIME_absolute_get_remaining(rec->expiration_time) | ||
250 | * | ||
251 | * But how to get the seconds out of this? | ||
252 | */ | ||
253 | drec_data->ttl = htonl(3600); | ||
249 | 254 | ||
250 | /* Calculate at which offset in the packet the length of the name and the | 255 | /* Calculate at which offset in the packet the length of the name and the |
251 | * name, it is filled in by the daemon-vpn */ | 256 | * name, it is filled in by the daemon-vpn */ |
@@ -350,7 +355,13 @@ receive_dht(void *cls, | |||
350 | struct dns_record_line *drec_data = (struct dns_record_line*)(dpkt->data+(query_states[id].namelen)+sizeof(struct dns_query_line)+2); | 355 | struct dns_record_line *drec_data = (struct dns_record_line*)(dpkt->data+(query_states[id].namelen)+sizeof(struct dns_query_line)+2); |
351 | drec_data->type = htons(28); /* AAAA */ | 356 | drec_data->type = htons(28); /* AAAA */ |
352 | drec_data->class = htons(1); /* IN */ | 357 | drec_data->class = htons(1); /* IN */ |
353 | drec_data->ttl = htonl(3600); /* FIXME: read from block */ | 358 | |
359 | /* FIXME: read the TTL from block: | ||
360 | * GNUNET_TIME_absolute_get_remaining(rec->expiration_time) | ||
361 | * | ||
362 | * But how to get the seconds out of this? | ||
363 | */ | ||
364 | drec_data->ttl = htonl(3600); | ||
354 | drec_data->data_len = htons(16); | 365 | drec_data->data_len = htons(16); |
355 | 366 | ||
356 | /* Calculate at which offset in the packet the IPv6-Address belongs, it is | 367 | /* Calculate at which offset in the packet the IPv6-Address belongs, it is |