I am trying to get Network adapter names & types in linux using ioctl system calls.
I am getting "etho" as name. I think I am getting interface name not adapter name.
Please suggest how i can get adapter names & types in linux from my C program.
currently i used ioctl(fd, SIOCGIFHWADDR, &ifr);
i could able to get mac address.
similarly is there any way to get the list of adapter names & types.
Please help me.