From owner-freebsd-hackers Wed Dec 11 12:23:50 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id MAA06539 for hackers-outgoing; Wed, 11 Dec 1996 12:23:50 -0800 (PST) Received: from iafnl.es.iaf.nl (uucp@iafnl.es.iaf.nl [195.108.17.20]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id MAA06532 for ; Wed, 11 Dec 1996 12:23:47 -0800 (PST) Received: by iafnl.es.iaf.nl with UUCP id AA15500 (5.67b/IDA-1.5 for hackers@FreeBSD.ORG); Wed, 11 Dec 1996 21:22:38 +0100 Received: (from wilko@localhost) by yedi.iaf.nl (8.7.5/8.6.12) id TAA00689; Wed, 11 Dec 1996 19:51:11 +0100 (MET) From: Wilko Bulte Message-Id: <199612111851.TAA00689@yedi.iaf.nl> Subject: Re: Discovering network interfaces To: ormonde@trem.cnt.org.br (Rodrigo Ormonde) Date: Wed, 11 Dec 1996 19:51:11 +0100 (MET) Cc: hackers@FreeBSD.ORG In-Reply-To: <9612111740.AA13674@trem.cnt.org.br> from "Rodrigo Ormonde" at Dec 11, 96 02:40:27 pm X-Mailer: ELM [version 2.4 PL24 ME8a] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Rodrigo Ormonde wrote... > Helo. > > I have to write a program to show the user the names of the currently > configured network interfaces. (something like netstat -in) > The problem is that I have no idea how this could be done inside a C program I don't know, but wouldn't a short peek in the netstat source code tell you how they do it? Wilko _ ____________________________________________________________________ | / o / / _ Bulte email: wilko@yedi.iaf.nl - Arnhem, The Netherlands |/|/ / / /( (_) Do, or do not. There is no 'try' - Yoda --------------------------------------------------------------------------