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

Re: determining network interface information from c...



On Tue, 5 Mar 2002 12:45:07 +0000
kevin lyda <kevin@suberic.net> wrote:

> is there an approved way to determine interface info (device, ip
> address) from c?  for instance should i follow the way ifconfig does
> it, or should application developers do it differently?

I wrote something (to get the devicename & the ip) like this a while
back with getifaddrs() & ioctl(). Should be fairly trivial.

// nick