title: Want to get the list all the available interfaces on the system
body: <p>I want to get the list all the available interfaces on a particular PC along with their types that is wired or wireless. Currently I am doing the following but no success:-</p>
  
  <pre><code>ioctl(sd, SIOCGIFNAME, &amp;ifr);
  strncpy(ifname,ifr.ifr_name,IFNAMSIZ);
  printf("Interface name :%s\n",ifname);
  </code></pre>
  
  <p>It will also be good if only names are available.</p>