21 #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__)
22 #error "Only <gnunet_util_lib.h> can be included directly."
37 #ifndef GNUNET_NT_LIB_H
38 #define GNUNET_NT_LIB_H
78 #define GNUNET_NT_COUNT 6
108 const struct sockaddr *addr,
struct GNUNET_TESTING_Interpreter * is
GNUNET_NetworkType
Types of networks (with separate quotas) we support.
void GNUNET_NT_scanner_done(struct GNUNET_NT_InterfaceScanner *is)
Terminate interface scanner.
struct GNUNET_NT_InterfaceScanner * GNUNET_NT_scanner_init(void)
Initialize the address characterization client handle.
const char * GNUNET_NT_to_string(enum GNUNET_NetworkType net)
Convert a enum GNUNET_NetworkType to a string.
enum GNUNET_NetworkType GNUNET_NT_scanner_get_type(struct GNUNET_NT_InterfaceScanner *is, const struct sockaddr *addr, socklen_t addrlen)
Returns where the address is located: loopback, LAN or WAN.
@ GNUNET_NT_WLAN
Wireless LAN (i.e.
@ GNUNET_NT_WAN
Wide area network (i.e.
@ GNUNET_NT_UNSPECIFIED
Category of last resort.
@ GNUNET_NT_LAN
Local area network.
@ GNUNET_NT_LOOPBACK
Loopback (same host).
@ GNUNET_NT_BT
Bluetooth LAN.
Handle to the interface scanner.