diff options
-rw-r--r-- | src/ats/plugin_ats_proportional.c | 20 |
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 | */ |
939 | static void | 944 | static void |
940 | addresse_increment (struct GAS_PROPORTIONAL_Handle *s, | 945 | address_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 | */ |
967 | static int | 977 | static int |
968 | addresse_decrement (struct GAS_PROPORTIONAL_Handle *s, | 978 | addresse_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; |