From owner-freebsd-net Thu Jul 18 10:22:14 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 264ED37B400 for ; Thu, 18 Jul 2002 10:22:12 -0700 (PDT) Received: from silver.he.iki.fi (silver.he.iki.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08A8943E4A for ; Thu, 18 Jul 2002 10:22:11 -0700 (PDT) (envelope-from pete@he.iki.fi) Received: from he.iki.fi (localhost.he.iki.fi [127.0.0.1]) by silver.he.iki.fi (8.12.3/8.11.4) with ESMTP id g6IHM36l013805; Thu, 18 Jul 2002 20:22:04 +0300 (EEST) (envelope-from pete@he.iki.fi) Message-ID: <3D36F939.680BD76C@he.iki.fi> Date: Thu, 18 Jul 2002 20:22:01 +0300 From: Petri Helenius X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.6-PRERELEASE i386) X-Accept-Language: en,fi MIME-Version: 1.0 To: Erik Trulsson Cc: "Chuck T." , bjones@emergecore.com, net@FreeBSD.ORG Subject: Re: programatically list all local IP addresses ? References: <20020718171833.GA40200@falcon.midgard.homeip.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Erik Trulsson wrote: > > 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. > What would be the portable alternative to getifaddrs? I don't know one, but obviously it's good to know that you'll reimplement some of your code when going from platform to another. Pete To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message