nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ nrf_getifaddrs()

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.

Parameters
[in,out]ifaFirst item in the linked list of interface addresses.
Return values
0on success.
-1on error, and set errno to indicate the reason.