summaryrefslogtreecommitdiff
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)
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,
struct GNUNET_NT_InterfaceScanner *is = cls;
/* Calculate network */
struct NT_Network *net = NULL;
+ (void) name;
+ (void) isDefault;
+ (void) broadcast_addr;
/* Skipping IPv4 loopback addresses since we have special check */
if (addr->sa_family == AF_INET)
@@ -285,9 +288,9 @@ get_addresses (void *cls)
* @return type of the network the address belongs to
*/
enum GNUNET_NetworkType
-GNUNET_NT_scanner_address_get_type (struct GNUNET_NT_InterfaceScanner *is,
- const struct sockaddr *addr,
- socklen_t addrlen)
+GNUNET_NT_scanner_get_type (struct GNUNET_NT_InterfaceScanner *is,
+ const struct sockaddr *addr,
+ socklen_t addrlen)
{
struct NT_Network *cur = is->net_head;
enum GNUNET_NetworkType type = GNUNET_NT_UNSPECIFIED;