gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r29622 - gnunet/src/ats
Date: Thu, 26 Sep 2013 16:54:54 +0200

Author: wachs
Date: 2013-09-26 16:54:54 +0200 (Thu, 26 Sep 2013)
New Revision: 29622

Modified:
   gnunet/src/ats/gnunet-service-ats-solver_proportional.c
Log:
solver has to suggest address


Modified: gnunet/src/ats/gnunet-service-ats-solver_proportional.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats-solver_proportional.c     2013-09-26 
14:49:30 UTC (rev 29621)
+++ gnunet/src/ats/gnunet-service-ats-solver_proportional.c     2013-09-26 
14:54:54 UTC (rev 29622)
@@ -1340,8 +1340,11 @@
   struct GAS_PROPORTIONAL_Handle *s = solver;
   struct Network *net = NULL;
   struct AddressWrapper *aw = NULL;
+  const struct ATS_Address *new_address;
+
   GNUNET_assert(NULL != s);
 
+
   net = get_network (s, network);
   if (NULL == net)
   {
@@ -1358,7 +1361,10 @@
   if (GNUNET_YES == GNUNET_CONTAINER_multihashmap_contains (s->requests, 
&address->peer.hashPubKey))
   {
     if (NULL == get_active_address (s, (struct GNUNET_CONTAINER_MultiHashMap 
*) s->addresses, &address->peer))
-      GAS_proportional_get_preferred_address (s, &address->peer);
+    {
+      if (NULL != (new_address = GAS_proportional_get_preferred_address (s, 
&address->peer)))
+          s->bw_changed (s->bw_changed_cls, (struct ATS_Address *) address);
+    }
   }
   LOG(GNUNET_ERROR_TYPE_DEBUG,
       "After adding address now total %u and active %u addresses in network 
`%s'\n",




reply via email to

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