From owner-freebsd-net Thu Jul 18 21:13: 7 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 2B2E037B400 for ; Thu, 18 Jul 2002 21:13:05 -0700 (PDT) Received: from shuttle.wide.toshiba.co.jp (shuttle.wide.toshiba.co.jp [202.249.10.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 492BB43E65 for ; Thu, 18 Jul 2002 21:13:04 -0700 (PDT) (envelope-from jinmei@isl.rdc.toshiba.co.jp) Received: from localhost ([3ffe:501:4819:2000:944b:74ea:3301:7fbb]) by shuttle.wide.toshiba.co.jp (8.11.6/8.9.1) with ESMTP id g6J4CgA00835; Fri, 19 Jul 2002 13:12:42 +0900 (JST) Date: Fri, 19 Jul 2002 13:12:45 +0900 Message-ID: From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: Erik Trulsson Cc: "Chuck T." , bjones@emergecore.com, net@FreeBSD.ORG Subject: Re: programatically list all local IP addresses ? In-Reply-To: <20020718171833.GA40200@falcon.midgard.homeip.net> References: <20020718171833.GA40200@falcon.midgard.homeip.net> User-Agent: Wanderlust/2.6.1 (Upside Down) Emacs/21.2 Mule/5.0 (SAKAKI) Organization: Research & Development Center, Toshiba Corp., Kawasaki, Japan. MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Dispatcher: imput version 20000228(IM140) Lines: 23 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 >>>>> On Thu, 18 Jul 2002 19:18:33 +0200, >>>>> Erik Trulsson said: >> Excellent, that's just what I was looking for! Thanks. >> >do a man getifaddrs(3) > 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. If I remember correctly, the USAGI project (http://www.linux-ipv6.org/) provided getifaddrs(3) on linux. They should also be trying to merge their products to the linux main kernel and major distributions. (still, it's true that we cannot always expect portability of getifaddrs(3)) JINMEI, Tatuya Communication Platform Lab. Corporate R&D Center, Toshiba Corp. jinmei@isl.rdc.toshiba.co.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message