 |
Index for Section 3 |
|
 |
Alphabetical listing for I |
|
 |
Bottom of page |
|
if_indextoname(3)
NAME
if_indextoname - Maps an interface index to an interface name
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <net/if.h>
char *if_indextoname (
unsigned int ifindex,
char *ifname) ;
PARAMETERS
ifindex
Specifies the index number.
ifname
Points to a buffer, IFNAMSIZ bytes in length, that contains the
interface name. IFNAMSIZ is defined in <net/if.h>.
DESCRIPTION
The if_indextoname() function maps an interface index number to its
corresponding interface name.
RETURN VALUES
Upon successful conversion, the if_indextoname() function returns a pointer
to the buffer containing the interface name. If no interface name
corresponds to the index, it returns a pointer to the buffer containing
NULL.
RELATED INFORMATION
Functions: if_freenameindex(3), if_nameindex(3), if_nametoindex(3).
 |
Index for Section 3 |
|
 |
Alphabetical listing for I |
|
 |
Top of page |
|