aboutsummaryrefslogtreecommitdiff
path: root/src/dv
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-06-16 10:10:59 +0000
committerChristian Grothoff <christian@grothoff.org>2014-06-16 10:10:59 +0000
commit1eef01cd60f92a3d77061d655c0217bd6f9ffce4 (patch)
treedb83ba950eb0ece1efb9b682e379ccd1d0dd4b72 /src/dv
parentc1d89ed3cf92fa2492a5639e725aadd74742f135 (diff)
downloadgnunet-1eef01cd60f92a3d77061d655c0217bd6f9ffce4.tar.gz
gnunet-1eef01cd60f92a3d77061d655c0217bd6f9ffce4.zip
notify performance monitors about destroyed addresses (for #3406)
Diffstat (limited to 'src/dv')
-rw-r--r--src/dv/gnunet-service-dv.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/dv/gnunet-service-dv.c b/src/dv/gnunet-service-dv.c
index 67db7072b..abade848f 100644
--- a/src/dv/gnunet-service-dv.c
+++ b/src/dv/gnunet-service-dv.c
@@ -1302,7 +1302,10 @@ handle_direct_disconnect (struct DirectNeighbor *neighbor)
1302 * 1302 *
1303 * @param cls closure 1303 * @param cls closure
1304 * @param address the address 1304 * @param address the address
1305 * @param active is this address in active use 1305 * @param active #GNUNET_YES if this address is actively used
1306 * to maintain a connection to a peer;
1307 * #GNUNET_NO if the address is not actively used;
1308 * #GNUNET_SYSERR if this address is no longer available for ATS
1306 * @param bandwidth_out assigned outbound bandwidth for the connection 1309 * @param bandwidth_out assigned outbound bandwidth for the connection
1307 * @param bandwidth_in assigned inbound bandwidth for the connection 1310 * @param bandwidth_in assigned inbound bandwidth for the connection
1308 * @param ats performance data for the address (as far as known) 1311 * @param ats performance data for the address (as far as known)
@@ -1327,8 +1330,11 @@ handle_ats_update (void *cls,
1327 return; 1330 return;
1328 } 1331 }
1329 1332
1330 if (GNUNET_NO == active) 1333 if (GNUNET_YES != active)
1334 {
1335 // FIXME: handle disconnect/inactive case too!
1331 return; 1336 return;
1337 }
1332 distance = get_atsi_distance (ats, ats_count); 1338 distance = get_atsi_distance (ats, ats_count);
1333 network = get_atsi_network (ats, ats_count); 1339 network = get_atsi_network (ats, ats_count);
1334 GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != network); 1340 GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != network);