[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r14945 - gnunet/src/vpn
From: |
gnunet |
Subject: |
[GNUnet-SVN] r14945 - gnunet/src/vpn |
Date: |
Sun, 10 Apr 2011 15:19:32 +0200 |
Author: toelke
Date: 2011-04-10 15:19:32 +0200 (Sun, 10 Apr 2011)
New Revision: 14945
Modified:
gnunet/src/vpn/gnunet-service-dns.c
Log:
FIXMEs
Modified: gnunet/src/vpn/gnunet-service-dns.c
===================================================================
--- gnunet/src/vpn/gnunet-service-dns.c 2011-04-10 13:19:29 UTC (rev 14944)
+++ gnunet/src/vpn/gnunet-service-dns.c 2011-04-10 13:19:32 UTC (rev 14945)
@@ -245,7 +245,12 @@
struct dns_record_line *drec_data = (struct
dns_record_line*)(dpkt->data+(query_states[id].namelen)+sizeof(struct
dns_query_line)+2);
drec_data->type = htons(12); /* AAAA */
drec_data->class = htons(1); /* IN */
- drec_data->ttl = htonl(3600); /* FIXME: read from block */
+ /* FIXME: read the TTL from block:
+ * GNUNET_TIME_absolute_get_remaining(rec->expiration_time)
+ *
+ * But how to get the seconds out of this?
+ */
+ drec_data->ttl = htonl(3600);
/* Calculate at which offset in the packet the length of the name and the
* name, it is filled in by the daemon-vpn */
@@ -350,7 +355,13 @@
struct dns_record_line *drec_data = (struct
dns_record_line*)(dpkt->data+(query_states[id].namelen)+sizeof(struct
dns_query_line)+2);
drec_data->type = htons(28); /* AAAA */
drec_data->class = htons(1); /* IN */
- drec_data->ttl = htonl(3600); /* FIXME: read from block */
+
+ /* FIXME: read the TTL from block:
+ * GNUNET_TIME_absolute_get_remaining(rec->expiration_time)
+ *
+ * But how to get the seconds out of this?
+ */
+ drec_data->ttl = htonl(3600);
drec_data->data_len = htons(16);
/* Calculate at which offset in the packet the IPv6-Address belongs, it is
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r14945 - gnunet/src/vpn,
gnunet <=