aboutsummaryrefslogtreecommitdiff
path: root/src/util/os_network.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/os_network.c')
-rw-r--r--src/util/os_network.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/os_network.c b/src/util/os_network.c
index e310455e0..9ee26f0a9 100644
--- a/src/util/os_network.c
+++ b/src/util/os_network.c
@@ -381,6 +381,8 @@ try_ip (GNUNET_OS_NetworkInterfaceProcessor proc,
381 pclose (f); 381 pclose (f);
382 return GNUNET_OK; 382 return GNUNET_OK;
383} 383}
384
385
384#endif 386#endif
385 387
386 388
@@ -403,7 +405,7 @@ GNUNET_OS_network_interfaces_list (GNUNET_OS_NetworkInterfaceProcessor proc,
403 { 405 {
404 for (ifa_ptr = ifa_first; ifa_ptr != NULL; ifa_ptr = ifa_ptr->ifa_next) 406 for (ifa_ptr = ifa_first; ifa_ptr != NULL; ifa_ptr = ifa_ptr->ifa_next)
405 { 407 {
406 if ((ifa_ptr->ifa_name != NULL) &&(ifa_ptr->ifa_addr != NULL) && 408 if ((ifa_ptr->ifa_name != NULL) && (ifa_ptr->ifa_addr != NULL) &&
407 ( (ifa_ptr->ifa_flags & IFF_UP) != 0) ) 409 ( (ifa_ptr->ifa_flags & IFF_UP) != 0) )
408 { 410 {
409 if ((ifa_ptr->ifa_addr->sa_family != AF_INET) && 411 if ((ifa_ptr->ifa_addr->sa_family != AF_INET) &&