From owner-freebsd-hackers Sat Sep 16 8: 9:15 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 348DD37B424 for ; Sat, 16 Sep 2000 08:09:13 -0700 (PDT) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.9.3/8.9.3) with SMTP id LAA00610; Sat, 16 Sep 2000 11:09:01 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Sat, 16 Sep 2000 11:09:01 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: David Malone Cc: Chris Ptacek , freebsd-hackers@FreeBSD.ORG Subject: Re: Getting all the IP address for a machine from code... In-Reply-To: <200009161101.aa71225@salmon.maths.tcd.ie> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 16 Sep 2000, David Malone wrote: > > It is possible to get interface lists on earlier versions (and I hope > > still current versions) using the ioctl interfaces described in Stevens. > > See also ifconfig.c source from various versions of FreeBSD :-). > > I think Garret suggested that the ioctl method was deprecated? That said, the ioctl() method is probably also portable across platforms. Recommending the deprecating quasi-standard interfaces in favor of local interfaces for third-party application writers would probably be a mistake. Where it's not possible to perform the function with the portable API, fine, of course. :-) Robert N M Watson robert@fledge.watson.org http://www.watson.org/~robert/ PGP key fingerprint: AF B5 5F FF A6 4A 79 37 ED 5F 55 E9 58 04 6A B1 TIS Labs at Network Associates, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message