|
static int | netlink_socket (void) |
|
static int | netlink_send (int p_socket, int p_request) |
|
static int | netlink_recv (int p_socket, void *p_buffer, size_t p_len) |
|
static struct nlmsghdr * | getNetlinkResponse (int p_socket, int *p_size, int *p_done) |
|
static NetlinkList * | newListItem (struct nlmsghdr *p_data, unsigned int p_size) |
|
static void | freeResultList (NetlinkList *p_list) |
|
static NetlinkList * | getResultList (int p_socket, int p_request) |
|
static size_t | maxSize (size_t a, size_t b) |
|
static size_t | calcAddrLen (sa_family_t p_family, int p_dataSize) |
|
static void | makeSockaddr (sa_family_t p_family, struct sockaddr *p_dest, void *p_data, size_t p_size) |
|
static void | addToEnd (struct ifaddrs **p_resultList, struct ifaddrs *p_entry) |
|
static int | interpretLink (struct nlmsghdr *p_hdr, struct ifaddrs **p_resultList) |
|
static struct ifaddrs * | findInterface (int p_index, struct ifaddrs **p_links, int p_numLinks) |
|
static int | interpretAddr (struct nlmsghdr *p_hdr, struct ifaddrs **p_resultList, int p_numLinks) |
|
static int | interpretLinks (int p_socket, NetlinkList *p_netlinkList, struct ifaddrs **p_resultList) |
|
static int | interpretAddrs (int p_socket, NetlinkList *p_netlinkList, struct ifaddrs **p_resultList, int p_numLinks) |
|
int | getifaddrs (struct ifaddrs **ifap) |
|
void | freeifaddrs (struct ifaddrs *ifa) |
|