core.sys.darwin.ifaddrs

Binding for Mac OSX's <ifaddr.h>, expose network interface addresses

The following functions are present as of Mac OSX 10.15: - getifaddrs(3): get interface addresses - freeifaddrs(3): deallocates the return value of getifaddrs - getifmaddrs(3): get multicast group membership - freeifmaddrs(3): deallocates the return value of getifmaddrs

Members

Functions

freeifaddrs
void freeifaddrs(ifaddrs* )

Frees the linked list returned by getifaddrs

freeifmaddrs
void freeifmaddrs(ifmaddrs* )

Frees the list allocated by getifmaddrs

getifaddrs
int getifaddrs(ifaddrs** )
getifmaddrs
int getifmaddrs(ifmaddrs** )

Stores a reference to a linked list of the multicast memberships on the local machine in the memory referenced by ifmaddrs

Structs

ifaddrs
struct ifaddrs
ifmaddrs
struct ifmaddrs

Meta

Authors

Daniel Graczer