Hi,
I'm trying to figure how I can programatically get the the IP addresses of all interfaces. That is, I'm in a Linux machine, and I want a C program to find out the IP adderess that the machine has (like I can get with /sbin/ifconfig). One way I'm aware of, is to parse /proc/net/if_inet6, but this seems to be connected to IPv6, I want to support also IPv4. What other ways exists to find this info ?
thanks in advance,
Megatron