|struct if_nameindex * if_nameindex||(void);|
Obtain an array containing the name and corresponding index of all interfaces.
- 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.|