#include <stdio.h>
#include <net/if.h>

int main(int ac, char**av)
{
  return av[1] && printf ("%i\n", if_nametoindex (av[1]));
}

