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
- Getting all the IP address for a machine from co... Chris Ptacek
- Re: Getting all the IP address for a machin... David Malone
- Re: Getting all the IP address for a ma... Robert Watson
- Re: Getting all the IP address for ... David Malone
- Re: Getting all the IP address ... Robert Watson
- kernel debugging!!! Wes Peters
- kernel debugging!!! Mohana Krishna Penumetcha
- Re: kernel debugging!!! Alfred Perlstein
- Re: kernel debugging!!! Mohana Krishna Penumetcha
- Re: kernel debugging!!! Alfred Perlstein
- Re: kernel debugging!!... Mohana Krishna Penumetcha
- Re: kernel debuggi... Julian Elischer
- Re: kernel debuggi... Mohana Krishna Penumetcha
- Re: Getting all the IP address for a machin... Brian Somers

