GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
- by the Free Software Foundation; either version 2, or (at your
+ by the Free Software Foundation; either version 3, or (at your
option) any later version.
GNUnet is distributed in the hope that it will be useful, but
* @author Jake Dust
* @author LRN
*/
-
#include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_os_lib.h"
+#include "gnunet_util_lib.h"
#define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)
{
if (GNUNET_OK !=
proc (proc_cls, results[i].pretty_name, results[i].is_default,
- &results[i].address,
+ (const struct sockaddr *) &results[i].address,
results[i].
- flags & ENUMNICS3_BCAST_OK ? &results[i].broadcast : NULL,
- results[i].flags & ENUMNICS3_MASK_OK ? &results[i].mask : NULL,
+ flags & ENUMNICS3_BCAST_OK ?
+ (const struct sockaddr *) &results[i].broadcast : NULL,
+ results[i].flags & ENUMNICS3_MASK_OK ?
+ (const struct sockaddr *) &results[i].mask : NULL,
results[i].addr_size))
break;
}
pass_netmask = (struct sockaddr *) &netmask6;
}
-
+
if (GNUNET_OK !=
proc (proc_cls, ifc, 0 == strcmp (ifc, GNUNET_DEFAULT_INTERFACE),
(const struct sockaddr *) &a6,