aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-tng.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-11-23 17:19:53 +0100
committerChristian Grothoff <christian@grothoff.org>2018-11-23 17:19:53 +0100
commit61787bfa37e0ac5998e01d9c4806600033c19c74 (patch)
tree1ceb843f63aa076682ebfa2de2250dc32ee65004 /src/transport/gnunet-service-tng.c
parent4a3be482811fe8ed1502fea2c12a8449b560a99e (diff)
downloadgnunet-61787bfa37e0ac5998e01d9c4806600033c19c74.tar.gz
gnunet-61787bfa37e0ac5998e01d9c4806600033c19c74.zip
rename fest: use new libgnunetnt instead of old libgnunetats logic for network type classification
Diffstat (limited to 'src/transport/gnunet-service-tng.c')
-rw-r--r--src/transport/gnunet-service-tng.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/transport/gnunet-service-tng.c b/src/transport/gnunet-service-tng.c
index 3e08900bb..b184a0600 100644
--- a/src/transport/gnunet-service-tng.c
+++ b/src/transport/gnunet-service-tng.c
@@ -162,7 +162,7 @@ struct Queue
162 /** 162 /**
163 * Network type offered by this queue. 163 * Network type offered by this queue.
164 */ 164 */
165 enum GNUNET_ATS_Network_Type nt; 165 enum GNUNET_NetworkType nt;
166 166
167 /** 167 /**
168 * Connection status for this queue. 168 * Connection status for this queue.
@@ -322,7 +322,7 @@ struct AddressListEntry
322 /** 322 /**
323 * Network type offered by this address. 323 * Network type offered by this address.
324 */ 324 */
325 enum GNUNET_ATS_Network_Type nt; 325 enum GNUNET_NetworkType nt;
326 326
327}; 327};
328 328
@@ -549,7 +549,7 @@ static void
549notify_monitor (struct TransportClient *tc, 549notify_monitor (struct TransportClient *tc,
550 const struct GNUNET_PeerIdentity *peer, 550 const struct GNUNET_PeerIdentity *peer,
551 const char *address, 551 const char *address,
552 enum GNUNET_ATS_Network_Type nt, 552 enum GNUNET_NetworkType nt,
553 const struct MonitorEvent *me) 553 const struct MonitorEvent *me)
554{ 554{
555 struct GNUNET_MQ_Envelope *env; 555 struct GNUNET_MQ_Envelope *env;
@@ -588,7 +588,7 @@ notify_monitor (struct TransportClient *tc,
588static void 588static void
589notify_monitors (const struct GNUNET_PeerIdentity *peer, 589notify_monitors (const struct GNUNET_PeerIdentity *peer,
590 const char *address, 590 const char *address,
591 enum GNUNET_ATS_Network_Type nt, 591 enum GNUNET_NetworkType nt,
592 const struct MonitorEvent *me) 592 const struct MonitorEvent *me)
593{ 593{
594 static struct GNUNET_PeerIdentity zero; 594 static struct GNUNET_PeerIdentity zero;
@@ -1255,7 +1255,7 @@ handle_add_address (void *cls,
1255 ale->address = (const char *) &ale[1]; 1255 ale->address = (const char *) &ale[1];
1256 ale->expiration = GNUNET_TIME_relative_ntoh (aam->expiration); 1256 ale->expiration = GNUNET_TIME_relative_ntoh (aam->expiration);
1257 ale->aid = aam->aid; 1257 ale->aid = aam->aid;
1258 ale->nt = (enum GNUNET_ATS_Network_Type) ntohl (aam->nt); 1258 ale->nt = (enum GNUNET_NetworkType) ntohl (aam->nt);
1259 memcpy (&ale[1], 1259 memcpy (&ale[1],
1260 &aam[1], 1260 &aam[1],
1261 slen); 1261 slen);
@@ -1427,7 +1427,7 @@ handle_add_queue_message (void *cls,
1427 queue->qid = aqm->qid; 1427 queue->qid = aqm->qid;
1428 queue->mtu = ntohl (aqm->mtu); 1428 queue->mtu = ntohl (aqm->mtu);
1429 queue->distance = ntohl (aqm->distance); 1429 queue->distance = ntohl (aqm->distance);
1430 queue->nt = (enum GNUNET_ATS_Network_Type) ntohl (aqm->nt); 1430 queue->nt = (enum GNUNET_NetworkType) ntohl (aqm->nt);
1431 queue->cs = (enum GNUNET_TRANSPORT_ConnectionStatus) ntohl (aqm->cs); 1431 queue->cs = (enum GNUNET_TRANSPORT_ConnectionStatus) ntohl (aqm->cs);
1432 queue->neighbour = neighbour; 1432 queue->neighbour = neighbour;
1433 memcpy (&queue[1], 1433 memcpy (&queue[1],