gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r32751 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r32751 - gnunet/src/mesh
Date: Sat, 22 Mar 2014 00:06:55 +0100

Author: bartpolot
Date: 2014-03-22 00:06:54 +0100 (Sat, 22 Mar 2014)
New Revision: 32751

Modified:
   gnunet/src/mesh/gnunet-service-mesh_dht.c
Log:
- expire data with hello

Modified: gnunet/src/mesh/gnunet-service-mesh_dht.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_dht.c   2014-03-21 23:06:53 UTC (rev 
32750)
+++ gnunet/src/mesh/gnunet-service-mesh_dht.c   2014-03-21 23:06:54 UTC (rev 
32751)
@@ -253,6 +253,7 @@
   struct GNUNET_HashCode phash;
   const struct GNUNET_HELLO_Message *hello;
   size_t size;
+  struct GNUNET_TIME_Absolute expiration;
 
   if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
   {
@@ -274,6 +275,7 @@
     LOG (GNUNET_ERROR_TYPE_DEBUG, "  no hello, waiting!\n");
     return;
   }
+  expiration = GNUNET_HELLO_get_last_expiration (hello);
 
   LOG (GNUNET_ERROR_TYPE_DEBUG, "Hello %p size: %u\n", hello, size);
   memset (&phash, 0, sizeof (phash));
@@ -286,7 +288,7 @@
                   GNUNET_BLOCK_TYPE_DHT_HELLO,       /* Block type */
                   size,  /* Size of the data */
                   (const char *) hello, /* Data itself */
-                  GNUNET_TIME_UNIT_FOREVER_ABS,  /* Data expiration */
+                  expiration,  /* Data expiration */
                   GNUNET_TIME_UNIT_FOREVER_REL, /* Retry time */
                   NULL,         /* Continuation */
                   NULL);        /* Continuation closure */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]