function to determine available network interfaces More...
Go to the source code of this file.
Macros | |
#define | LOG(kind, ...) GNUNET_log_from (kind, "util-os-network", __VA_ARGS__) |
#define | LOG_STRERROR_FILE(kind, syscall, filename) |
Functions | |
static int | try_ifconfig (GNUNET_OS_NetworkInterfaceProcessor proc, void *proc_cls) |
Try to enumerate all network interfaces using 'ifconfig'. More... | |
static int | try_ip (GNUNET_OS_NetworkInterfaceProcessor proc, void *proc_cls) |
Try to enumerate all network interfaces using 'ip'. More... | |
void | GNUNET_OS_network_interfaces_list (GNUNET_OS_NetworkInterfaceProcessor proc, void *proc_cls) |
Enumerate all network interfaces. More... | |
function to determine available network interfaces
Definition in file os_network.c.
#define LOG | ( | kind, | |
... | |||
) | GNUNET_log_from (kind, "util-os-network", __VA_ARGS__) |
Definition at line 35 of file os_network.c.
#define LOG_STRERROR_FILE | ( | kind, | |
syscall, | |||
filename | |||
) |
Definition at line 36 of file os_network.c.
|
static |
Try to enumerate all network interfaces using 'ifconfig'.
proc | the callback function |
proc_cls | closure for proc |
Definition at line 52 of file os_network.c.
References removetrailingwhitespace::f, GNUNET_asprintf(), GNUNET_ERROR_TYPE_BULK, GNUNET_ERROR_TYPE_WARNING, GNUNET_NO, GNUNET_OK, GNUNET_SYSERR, GNUNET_YES, line, LOG_STRERROR_FILE, replace, and start.
Referenced by GNUNET_OS_network_interfaces_list().
|
static |
Try to enumerate all network interfaces using 'ip'.
proc | the callback function |
proc_cls | closure for proc |
Definition at line 245 of file os_network.c.
References removetrailingwhitespace::f, GNUNET_asprintf(), GNUNET_ERROR_TYPE_BULK, GNUNET_ERROR_TYPE_WARNING, GNUNET_OK, GNUNET_SYSERR, line, LOG_STRERROR_FILE, replace, and sbin_ip.
Referenced by GNUNET_OS_network_interfaces_list().