Subject: Re: Retrieval of interface stats
To: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-net
Date: 07/31/1996 13:07:08
On Wed, 31 Jul 1996 13:20:52 -0400
der Mouse <mouse@Collatz.McRCIM.McGill.EDU> wrote:
> Use The Source, Luke. See /usr/src/sbin/ifconfig/, especially the
> printall() function in ifconfig.c. Briefly, what you want is the
> SIOCGIFCONF ioctl.
Well, an ifreq structure (pointed to by an ifconf, for example), won't
tell you all of the information hidden withing an ifnet. To get the
if_data structure, you need to get the ifnet as a whole.
-- save the ancient forests - http://www.bayarea.net/~thorpej/forest/ --
Jason R. Thorpe thorpej@nas.nasa.gov
NASA Ames Research Center Home: 408.866.1912
NAS: M/S 258-6 Work: 415.604.0935
Moffett Field, CA 94035 Pager: 415.428.6939