aboutsummaryrefslogtreecommitdiff
path: root/src/nt
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/nt
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/nt')
-rw-r--r--src/nt/nt.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/nt/nt.c b/src/nt/nt.c
index 5764f8f4a..ae0fef119 100644
--- a/src/nt/nt.c
+++ b/src/nt/nt.c
@@ -165,6 +165,9 @@ interface_proc (void *cls,
165 struct GNUNET_NT_InterfaceScanner *is = cls; 165 struct GNUNET_NT_InterfaceScanner *is = cls;
166 /* Calculate network */ 166 /* Calculate network */
167 struct NT_Network *net = NULL; 167 struct NT_Network *net = NULL;
168 (void) name;
169 (void) isDefault;
170 (void) broadcast_addr;
168 171
169 /* Skipping IPv4 loopback addresses since we have special check */ 172 /* Skipping IPv4 loopback addresses since we have special check */
170 if (addr->sa_family == AF_INET) 173 if (addr->sa_family == AF_INET)
@@ -285,9 +288,9 @@ get_addresses (void *cls)
285 * @return type of the network the address belongs to 288 * @return type of the network the address belongs to
286 */ 289 */
287enum GNUNET_NetworkType 290enum GNUNET_NetworkType
288GNUNET_NT_scanner_address_get_type (struct GNUNET_NT_InterfaceScanner *is, 291GNUNET_NT_scanner_get_type (struct GNUNET_NT_InterfaceScanner *is,
289 const struct sockaddr *addr, 292 const struct sockaddr *addr,
290 socklen_t addrlen) 293 socklen_t addrlen)
291{ 294{
292 struct NT_Network *cur = is->net_head; 295 struct NT_Network *cur = is->net_head;
293 enum GNUNET_NetworkType type = GNUNET_NT_UNSPECIFIED; 296 enum GNUNET_NetworkType type = GNUNET_NT_UNSPECIFIED;