> 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.

This is a bit late....

I'd favour copying src/usr.sbin/portmap/from_local.c (a reasonably 
recent version of the code).  It can be built as a main program that 
literally just outputs a list of local IP numbers.

>   - Chris

-- 
Brian <[EMAIL PROTECTED]>                        <brian@[uk.]FreeBSD.org>
      <http://www.Awfulhak.org>                   <brian@[uk.]OpenBSD.org>
Don't _EVER_ lose your sense of humour !




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to