Chris Ptacek wrote:
>
> I am looking for a way to get all the IP addresses that are configured a
> machine. I need to do this in c source code, and without using DNS services
> (ie: gethostname/gethostbyname won't work). I am hoping there are some
> system calls I can use to get this information. Thanks in advance for any
> help.
Look in /usr/src/sbin/ifconfig/*.c and cut out the parts you don't need.
It's under a BSD license, so you are pretty much free to do as you wish.
--
"Where am I, and what am I doing in this handbasket?"
Wes Peters Softweyr LLC
[EMAIL PROTECTED] http://softweyr.com/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message