nrfxlib API 2.8.99
|
int nrf_getifaddrs | ( | struct nrf_ifaddrs ** | ifa | ) |
#include <nrf_modem/include/nrf_socket.h>
Get interface address information.
Create a linked list of nrf_ifaddrs structures describing the network interfaces and store the address of the first item of the list in *ifa
.
The data returned by this function is dynamically allocated and must be freed using nrf_freeifaddrs() when no longer needed.
[in,out] | ifa | First item in the linked list of interface addresses. |
0 | on success. |
-1 | on error, and set errno to indicate the reason. |