if_nametoindex, if_indextoname - mappings between network interface names and indexes
The if_nametoindex() function returns the index of the network interface corresponding to the name
The if_indextoname() function returns the name of the network interface corresponding to the interface index
ifindex. The name is placed in the buffer pointed to by
ifname. The buffer must allow for the storage of at least IF_NAMESIZE bytes.
POSIX.1-2001, POSIX.1-2008, RFC 3493.
This function first appeared in BSDi.
This page is part of release 5.10 of the Linux
man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.