if nameindex
Table of Contents >> IPv6 Programmer's Reference
#include <trsocket.h> |
struct if_nameindex * if_nameindex | (void); |
Function Description
Obtain an array containing the name and corresponding index of all interfaces.
Returns
- struct if_nameindex *
- A pointer to an array of if_nameindex structures terminated with an entry that has an if_index value of 0 and a NULL if_name value. A NULL pointer will be returned if the memory could not be allocated.
Note: | The user must call if_freenameindex() to release the memory allocated and returned by this function. |