Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-08-2009 #1Just Joined!
- Join Date
- Sep 2009
- Posts
- 5
How to get network Adapter names & types in linux
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.
Regards,
Bharath
- 09-23-2009 #2Linux Newbie
- Join Date
- Jan 2008
- Location
- Canada
- Posts
- 109
Hi paturi1710
As root run 'lspci -vv' . This shows all pci controllers, adapters etc. in some level of detail. Not sure if this will help but it is a great command anyway. Cheers...
Robert


Reply With Quote
