-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Try list-interfaces.c[1], which will enumerate through all available
> interfaces, and prints the corresponding addresses assigned to them.
>
> References:
> [1] - http://wahjava.googlepages.com/list-interfaces.c

Nice. Funny ifaddrs.h is not documented at all. Although this one does
not give the information for one specific interface, it looks like the
most portable way to get the job done. None of the other options look
good enough:
  + ioctl -- known to be not portable
  + /proc/net -- not present on GNU/Hurd and Solaris
  + rtnetlink -- looks Linux specific

Thank you,
Debarshi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: http://getfiregpg.org

iD8DBQFITUNRTMO+PGPUpacRAu/5AKCTL1MA7eusEB5lKeYDbw+iGdvuLwCgrc+w
4KDxKo3zpxo9Pno00Dt9gz8=
=6LSs
-----END PGP SIGNATURE-----

_______________________________________________
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - February 22-24, 2008
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/

Reply via email to