aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_clients.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-service-transport_clients.c')
-rw-r--r--src/transport/gnunet-service-transport_clients.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/transport/gnunet-service-transport_clients.c b/src/transport/gnunet-service-transport_clients.c
index fc3abdd1a..29d506ab3 100644
--- a/src/transport/gnunet-service-transport_clients.c
+++ b/src/transport/gnunet-service-transport_clients.c
@@ -1115,10 +1115,11 @@ struct IterationContext
1115 int all; 1115 int all;
1116}; 1116};
1117 1117
1118
1118/** 1119/**
1119 * Output information of validation entries to the given client. 1120 * Output information of validation entries to the given client.
1120 * 1121 *
1121 * @param cls the 'struct IterationContext' 1122 * @param cls the `struct IterationContext *`
1122 * @param peer identity of the neighbour 1123 * @param peer identity of the neighbour
1123 * @param address the address 1124 * @param address the address
1124 * @param last_validation point in time when last validation was performed 1125 * @param last_validation point in time when last validation was performed
@@ -1128,12 +1129,12 @@ struct IterationContext
1128 */ 1129 */
1129static void 1130static void
1130send_validation_information (void *cls, 1131send_validation_information (void *cls,
1131 const struct GNUNET_PeerIdentity *peer, 1132 const struct GNUNET_PeerIdentity *peer,
1132 const struct GNUNET_HELLO_Address *address, 1133 const struct GNUNET_HELLO_Address *address,
1133 struct GNUNET_TIME_Absolute last_validation, 1134 struct GNUNET_TIME_Absolute last_validation,
1134 struct GNUNET_TIME_Absolute valid_until, 1135 struct GNUNET_TIME_Absolute valid_until,
1135 struct GNUNET_TIME_Absolute next_validation, 1136 struct GNUNET_TIME_Absolute next_validation,
1136 enum GNUNET_TRANSPORT_ValidationState state) 1137 enum GNUNET_TRANSPORT_ValidationState state)
1137{ 1138{
1138 struct IterationContext *pc = cls; 1139 struct IterationContext *pc = cls;
1139 struct ValidationIterateResponseMessage *msg; 1140 struct ValidationIterateResponseMessage *msg;
@@ -1158,7 +1159,7 @@ send_validation_information (void *cls,
1158/** 1159/**
1159 * Output information of neighbours to the given client. 1160 * Output information of neighbours to the given client.
1160 * 1161 *
1161 * @param cls the 'struct PeerIterationContext' 1162 * @param cls the `struct PeerIterationContext *`
1162 * @param peer identity of the neighbour 1163 * @param peer identity of the neighbour
1163 * @param address the address 1164 * @param address the address
1164 * @param state current state this peer is in 1165 * @param state current state this peer is in
@@ -1168,12 +1169,12 @@ send_validation_information (void *cls,
1168 */ 1169 */
1169static void 1170static void
1170send_peer_information (void *cls, 1171send_peer_information (void *cls,
1171 const struct GNUNET_PeerIdentity *peer, 1172 const struct GNUNET_PeerIdentity *peer,
1172 const struct GNUNET_HELLO_Address *address, 1173 const struct GNUNET_HELLO_Address *address,
1173 enum GNUNET_TRANSPORT_PeerState state, 1174 enum GNUNET_TRANSPORT_PeerState state,
1174 struct GNUNET_TIME_Absolute state_timeout, 1175 struct GNUNET_TIME_Absolute state_timeout,
1175 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in, 1176 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in,
1176 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out) 1177 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out)
1177{ 1178{
1178 struct IterationContext *pc = cls; 1179 struct IterationContext *pc = cls;
1179 struct PeerIterateResponseMessage *msg; 1180 struct PeerIterateResponseMessage *msg;
@@ -1498,21 +1499,20 @@ GST_clients_broadcast_peer_notification (const struct GNUNET_PeerIdentity *peer,
1498 * @param state state of validation notification 1499 * @param state state of validation notification
1499 */ 1500 */
1500void 1501void
1501GST_clients_broadcast_validation_notification ( 1502GST_clients_broadcast_validation_notification (const struct GNUNET_PeerIdentity *peer,
1502 const struct GNUNET_PeerIdentity *peer, 1503 const struct GNUNET_HELLO_Address *address,
1503 const struct GNUNET_HELLO_Address *address, 1504 struct GNUNET_TIME_Absolute last_validation,
1504 struct GNUNET_TIME_Absolute last_validation, 1505 struct GNUNET_TIME_Absolute valid_until,
1505 struct GNUNET_TIME_Absolute valid_until, 1506 struct GNUNET_TIME_Absolute next_validation,
1506 struct GNUNET_TIME_Absolute next_validation, 1507 enum GNUNET_TRANSPORT_ValidationState state)
1507 enum GNUNET_TRANSPORT_ValidationState state)
1508{ 1508{
1509 struct ValidationIterateResponseMessage *msg; 1509 struct ValidationIterateResponseMessage *msg;
1510 struct MonitoringClient *mc; 1510 struct MonitoringClient *mc;
1511 static struct GNUNET_PeerIdentity all_zeros; 1511 static struct GNUNET_PeerIdentity all_zeros;
1512 1512
1513 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1513 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1514 "Sending information about for validation entry for peer `%s' using address `%s'\n", 1514 "Sending information about for validation entry for peer `%s' using address `%s'\n",
1515 GNUNET_i2s(peer), (address != NULL) ? GST_plugins_a2s (address) : "<none>"); 1515 GNUNET_i2s(peer), (address != NULL) ? GST_plugins_a2s (address) : "<none>");
1516 1516
1517 msg = compose_validation_iterate_response_message (peer, address); 1517 msg = compose_validation_iterate_response_message (peer, address);
1518 msg->last_validation = GNUNET_TIME_absolute_hton(last_validation); 1518 msg->last_validation = GNUNET_TIME_absolute_hton(last_validation);