Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Dec 1996 11:51:03 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        ormonde@trem.cnt.org.br (Rodrigo Ormonde)
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Discovering network interfaces
Message-ID:  <199612111851.LAA06772@phaeton.artisoft.com>
In-Reply-To: <9612111740.AA13674@trem.cnt.org.br> from "Rodrigo Ormonde" at Dec 11, 96 02:40:27 pm

next in thread | previous in thread | raw e-mail | index | archive | help
>   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 ? 

Look at the source code that netstat -in uses.  It is located in:

	/usr/src/usr.bin/netstat


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612111851.LAA06772>