|
if_indextoname(3)
Contents
|
if_indextoname - Map an interface index to an interface
name
#include <net/if.h>
char *if_indextoname(
unsigned int ifindex,
char *ifname );
Standard C Library (libc)
Specifies the index number. Points to a buffer, IFNAMSIZ
bytes in length, into which the function will place the
interface name. IFNAMSIZ is defined in <net/if.h>.
The if_indextoname() function maps an interface index number
to its corresponding interface name.
Upon successful conversion, the if_indextoname() function
returns the value specified in the ifname parameter, which
points the buffer that now contains the interface name.
If no interface name corresponds to the index, it returns
a NULL pointer.
Functions: if_freenameindex(3), if_nameindex(3), if_nametoindex(3).
if_indextoname(3)
[ Back ] |