Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jul 2002 19:18:33 +0200
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        "Chuck T." <freebsdfan@hotmail.com>
Cc:        bjones@emergecore.com, net@FreeBSD.ORG
Subject:   Re: programatically list all local IP addresses ?
Message-ID:  <20020718171833.GA40200@falcon.midgard.homeip.net>
In-Reply-To: <F171aqKU9mS7pZFLqs2000138c5@hotmail.com>
References:  <F171aqKU9mS7pZFLqs2000138c5@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 18, 2002 at 09:52:14AM -0700, Chuck T. wrote:
> Excellent, that's just what I was looking for!  Thanks.
> >do a man getifaddrs(3)
> >
> >Bruce

Just be aware that getifaddrs(3) (which does seem to be a quite useful
function) is not very portable.
It appears to be available on recent releases of all the *BSDs, but it
does not seem to exist on Solaris or Linux.

Now, if you don't need your program to be portable this is of course
not a problem, but writing unportable code should be an informed
decision rather than done out of ignorance.


-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020718171833.GA40200>