Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Smile 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.


  2. #2
    Linux Newbie
    Join Date
    Jan 2008
    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts