All of lore.kernel.org
 help / color / mirror / Atom feed
* Use ioctl() to list all network interfaces.
@ 2011-01-06 15:33 Chin Shi Hong
  2011-01-06 16:11 ` Rémi Denis-Courmont
  2011-01-06 17:07 ` Alexander Clouter
  0 siblings, 2 replies; 5+ messages in thread
From: Chin Shi Hong @ 2011-01-06 15:33 UTC (permalink / raw)
  To: netdev

Dear all,

The following codes are just part of my application's source codes:

--begin of some codes--
ifconf ifc;
ret = ioctl(n, SIOCGIFCONF,&ifc);
--End of some codes--

My application's role is to display all network interfaces, including
the network interface which are down.

However, with the above codes, my application only display the network
interface which are already up. The network interface which are down
will not be displayed.

So, what can I do to make my application display all network
interfaces, including the network interface which are down?

regards,

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-01-07  5:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-06 15:33 Use ioctl() to list all network interfaces Chin Shi Hong
2011-01-06 16:11 ` Rémi Denis-Courmont
2011-01-07  5:40   ` Chin Shi Hong
2011-01-06 17:07 ` Alexander Clouter
2011-01-07  5:41   ` Chin Shi Hong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.