On Wed, Sep 13, 2000 at 08:12:47PM -0700, 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.
You could use getifaddrs in FreeBSD 4 and later - otherwise you'll
need to use sysctl to get the list of interfaces and addresses.
David.
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
- Re: Getting all the IP address for a machin... 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

