30 #if !defined(__CYGWIN__) && !defined(__MSYS__)
31 #include <net/if_dl.h>
34 #if defined(__HAIKU__)
35 #define IFF_RUNNING IFF_LINK
43 #if !defined(__CYGWIN__) && !defined(__MSYS__)
50 return (ent->
ifa_addr->sa_family != AF_LINK);
52 #if defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__) || \
58 if (ent->
ifa_addr->sa_family == AF_LINK)
60 #elif defined(__NetBSD__) || defined(__OpenBSD__)
62 ent->
ifa_addr->sa_family != PF_INET6)
72 #if !(defined(__CYGWIN__) || defined(__MSYS__))
97 if (*addresses ==
NULL) {
102 address = *addresses;
129 #if !(defined(__CYGWIN__) || defined(__MSYS__))
135 address = *addresses;
139 struct sockaddr_dl* sa_addr;
140 sa_addr = (
struct sockaddr_dl*)(ent->
ifa_addr);
__BEGIN_DECLS int getifaddrs(struct ifaddrs **ifap)
void freeifaddrs(struct ifaddrs *ifa)
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)
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
return memset(p, 0, total)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
struct sockaddr * ifa_addr
struct ifaddrs * ifa_next
struct sockaddr * ifa_netmask
struct sockaddr_in6 netmask6
struct sockaddr_in6 address6
struct sockaddr_in netmask4
union uv_interface_address_s::@399 netmask
union uv_interface_address_s::@398 address
struct sockaddr_in address4
char * uv__strdup(const char *s)
void * uv__calloc(size_t count, size_t size)