From owner-freebsd-hackers Wed Dec 11 08:44:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id IAA21058 for hackers-outgoing; Wed, 11 Dec 1996 08:44:05 -0800 (PST) Received: from trem.cnt.org.br (desvio.cnt.org.br [200.19.123.2]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id IAA21032 for ; Wed, 11 Dec 1996 08:43:58 -0800 (PST) Received: by trem.cnt.org.br (AIX 3.2/UCB 5.64/4.03) id AA13674; Wed, 11 Dec 1996 14:40:27 -0300 From: ormonde@trem.cnt.org.br (Rodrigo Ormonde) Message-Id: <9612111740.AA13674@trem.cnt.org.br> Subject: Discovering network interfaces To: hackers@freebsd.org Date: Wed, 11 Dec 1996 14:40:27 -0300 (GRNLNDST) X-Mailer: ELM [version 2.4 PL24] 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 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 want to execute a external program like netstat to do this. It'd be nice if I could do it inside my C program). Does anybody know a function/system call which can be used to list the network interfaces ? Any help will be apreciated. Please send answers to me, I'm not on the list. Thanks in advance. -- Rodrigo de La Rocque Ormonde e-mail: ormonde@cnt.org.br PGP Public key: finger ormonde@cnt.org.br