Maps an interface name to its corresponding index. Format #include <if.h> unsigned int if_nametoindex ( const char *ifname );