title: How to get NIC details from a C program?
body: <p>I want to get the following details for all the NICs attached to my computer:</p>
  
  <p>1) Interface name (eg. eth0)</p>
  
  <p>2) Interface Number (like in <a href="http://answers.yahoo.com/question/index?qid=20080517041705AAOmJPu" rel="noreferrer">Windows</a>) if such a thing exists in Linux</p>
  
  <p>3) NIC bandwidth capacity and mode (eg. 1Gb/s full duplex)</p>