gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r19105 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r19105 - gnunet/src/ats
Date: Thu, 12 Jan 2012 13:56:04 +0100

Author: wachs
Date: 2012-01-12 13:56:04 +0100 (Thu, 12 Jan 2012)
New Revision: 19105

Modified:
   gnunet/src/ats/gnunet-service-ats_addresses.c
Log:
- fix wrong documentation


Modified: gnunet/src/ats/gnunet-service-ats_addresses.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses.c       2012-01-12 12:41:28 UTC 
(rev 19104)
+++ gnunet/src/ats/gnunet-service-ats_addresses.c       2012-01-12 12:56:04 UTC 
(rev 19105)
@@ -303,9 +303,12 @@
 
 
 /**
- * Update a bandwidth assignment for a peer.  This trivial method currently
- * simply assigns the same share to all active connections.
+ * Delete an address
  *
+ * If session != 0, just the session is deleted, the address itself still 
exists
+ * If session == 0, remove full address
+ * If session == 0 and addrlen == 0, destroy inbound address
+ *
  * @param cls unused
  * @param key unused
  * @param value the 'struct ATS_Address'
@@ -320,6 +323,7 @@
   GNUNET_assert (0 ==
                  memcmp (&aa->peer, &info->peer,
                          sizeof (struct GNUNET_PeerIdentity)));
+  /* session == 0, remove full address  */
   if ((info->session_id == 0) && (0 == strcmp (info->plugin, aa->plugin)) &&
       (aa->addr_len == info->addr_len) &&
       (0 == memcmp (info->addr, aa->addr, aa->addr_len)))
@@ -331,6 +335,7 @@
       recalculate_assigned_bw ();
     return GNUNET_OK;
   }
+  /* session != 0, just remove session */
   if (aa->session_id != info->session_id)
     return GNUNET_OK;           /* irrelevant */
   if (aa->session_id != 0)




reply via email to

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