Index Index for
Section 3
Index Alphabetical
listing for I
Bottom of page 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, into which the function will place 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 the value specified in the ifname parameter, which points the buffer that now contains the interface name. Otherwise, it returns a NULL pointer.

RELATED INFORMATION

Functions: if_freenameindex(3), if_nameindex(3), if_nametoindex(3).

Index Index for
Section 3
Index Alphabetical
listing for I
Top of page Top of
page