aboutsummaryrefslogtreecommitdiff
path: root/src/ats
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2014-06-26 12:15:48 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2014-06-26 12:15:48 +0000
commitff6b4b8f32320a55827ef6c9c4237ba8fa3d1bd3 (patch)
tree928085f909bdbc7109ff250db408ddca7ed550c1 /src/ats
parent285e67709ddc33386d9587a7b4ea72cd3db7e6bb (diff)
downloadgnunet-ff6b4b8f32320a55827ef6c9c4237ba8fa3d1bd3.tar.gz
gnunet-ff6b4b8f32320a55827ef6c9c4237ba8fa3d1bd3.zip
renaming
Diffstat (limited to 'src/ats')
-rw-r--r--src/ats/plugin_ats_proportional.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/ats/plugin_ats_proportional.c b/src/ats/plugin_ats_proportional.c
index 9cf637114..5459e216b 100644
--- a/src/ats/plugin_ats_proportional.c
+++ b/src/ats/plugin_ats_proportional.c
@@ -934,10 +934,15 @@ get_network (struct GAS_PROPORTIONAL_Handle *s, uint32_t type)
934 934
935 935
936/** 936/**
937 * FIXME. Degermanize. 937 * Increase address count in network
938 *
939 * @param s the solver handle
940 * @param net the network type
941 * @param total increase total addresses
942 * @param active increase active addresses
938 */ 943 */
939static void 944static void
940addresse_increment (struct GAS_PROPORTIONAL_Handle *s, 945address_increment (struct GAS_PROPORTIONAL_Handle *s,
941 struct Network *net, 946 struct Network *net,
942 int total, 947 int total,
943 int active) 948 int active)
@@ -962,7 +967,12 @@ addresse_increment (struct GAS_PROPORTIONAL_Handle *s,
962 967
963 968
964/** 969/**
965 * FIXME. Degermanize. 970 * Decrease address count in network
971 *
972 * @param s the solver handle
973 * @param net the network type
974 * @param total decrease total addresses
975 * @param active decrease active addresses
966 */ 976 */
967static int 977static int
968addresse_decrement (struct GAS_PROPORTIONAL_Handle *s, 978addresse_decrement (struct GAS_PROPORTIONAL_Handle *s,
@@ -1248,7 +1258,7 @@ update_active_address (struct GAS_PROPORTIONAL_Handle *s,
1248 /* Mark address as active */ 1258 /* Mark address as active */
1249 asi->activated = GNUNET_TIME_absolute_get(); 1259 asi->activated = GNUNET_TIME_absolute_get();
1250 best_address->active = GNUNET_YES; 1260 best_address->active = GNUNET_YES;
1251 addresse_increment (s, net, GNUNET_NO, GNUNET_YES); 1261 address_increment (s, net, GNUNET_NO, GNUNET_YES);
1252 1262
1253 /* Distribute bandwidth */ 1263 /* Distribute bandwidth */
1254 distribute_bandwidth_in_network (s, net); 1264 distribute_bandwidth_in_network (s, net);
@@ -1853,7 +1863,7 @@ GAS_proportional_address_add (void *solver,
1853 aw = GNUNET_new (struct AddressWrapper); 1863 aw = GNUNET_new (struct AddressWrapper);
1854 aw->addr = address; 1864 aw->addr = address;
1855 GNUNET_CONTAINER_DLL_insert(net->head, net->tail, aw); 1865 GNUNET_CONTAINER_DLL_insert(net->head, net->tail, aw);
1856 addresse_increment (s, net, GNUNET_YES, GNUNET_NO); 1866 address_increment (s, net, GNUNET_YES, GNUNET_NO);
1857 1867
1858 asi = GNUNET_new (struct AddressSolverInformation); 1868 asi = GNUNET_new (struct AddressSolverInformation);
1859 asi->network = net; 1869 asi->network = net;