Rizin
unix-like reverse engineering framework and cli tools
|
#include "uv.h"
#include "internal.h"
#include <errno.h>
#include <stddef.h>
#include <ifaddrs.h>
#include <net/if.h>
#include <net/if_dl.h>
Go to the source code of this file.
Functions | |
static int | uv__ifaddr_exclude (struct ifaddrs *ent, int exclude_type) |
int | uv_interface_addresses (uv_interface_address_t **addresses, int *count) |
void | uv_free_interface_addresses (uv_interface_address_t *addresses, int count) |
Definition at line 38 of file bsd-ifaddrs.c.
References ifaddrs::ifa_addr, ifaddrs::ifa_flags, NULL, PF_INET, and UV__EXCLUDE_IFPHYS.
Referenced by uv_interface_addresses().
void uv_free_interface_addresses | ( | uv_interface_address_t * | addresses, |
int | count | ||
) |
Definition at line 154 of file bsd-ifaddrs.c.
References count, i, and uv__free().
int uv_interface_addresses | ( | uv_interface_address_t ** | addresses, |
int * | count | ||
) |
Definition at line 68 of file bsd-ifaddrs.c.
References uv_interface_address_s::address, uv_interface_address_s::address4, uv_interface_address_s::address6, AF_INET6, count, freeifaddrs(), getifaddrs(), i, ifaddrs::ifa_addr, ifaddrs::ifa_flags, ifaddrs::ifa_name, ifaddrs::ifa_netmask, ifaddrs::ifa_next, uv_interface_address_s::is_internal, memcpy(), memset(), uv_interface_address_s::name, uv_interface_address_s::netmask, uv_interface_address_s::netmask4, uv_interface_address_s::netmask6, NULL, uv_interface_address_s::phys_addr, uv__calloc(), UV__ERR, UV__EXCLUDE_IFADDR, UV__EXCLUDE_IFPHYS, uv__ifaddr_exclude(), and uv__strdup().