From owner-freebsd-hackers Sun Feb 9 02:55:05 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA11416 for hackers-outgoing; Sun, 9 Feb 1997 02:55:05 -0800 (PST) Received: from panda.hilink.com.au (panda.hilink.com.au [203.2.144.5]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA11406 for ; Sun, 9 Feb 1997 02:54:56 -0800 (PST) Received: (from danny@localhost) by panda.hilink.com.au (8.7.6/8.7.3) id VAA21361; Sun, 9 Feb 1997 21:57:04 +1100 (EST) Date: Sun, 9 Feb 1997 21:57:03 +1100 (EST) From: "Daniel O'Callaghan" To: Luigi Rizzo cc: hackers@freebsd.org Subject: Re: How to get all ip addresses of a system ? In-Reply-To: <199702090727.IAA10507@labinfo.iet.unipi.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sun, 9 Feb 1997, Luigi Rizzo wrote: > I was wondering, is there a system call (possibly portable to different > OS's) to get all the addresses associated with a system ? Ideally, I > would like something to scan the "in_ifaddr" list in the kernel. I can > probably hack something using kvm_read, but would prefer a better (and > more portable) way if possible. What about the calls used by 'netstat -ain'? Danny