Re: how to get interface information

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 09, 2005 at 12:40:46PM +0100, Jochen Witte wrote:
> Hello,
> 
> I would like to get a list of all my current ip-adresses in a C program.
> How do I do this? Do I really have to use ioctl? Or is there something
> simple/portable out there?

Do you have a copy of UNIX Network Programming by W.R.Stevens? It goes
through all of this. That should work on most UNIX type systems.

Alternativly you can look up the documentation for Netlink. That will
work on linix, don't know about other OSs.

Hope this helps,
-- 
Martijn van Oosterhout   <kleptog@xxxxxxxxx>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment: pgp8HJOmg2JMj.pgp
Description: PGP signature


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux