Date: Thu, 25 Sep 2008 18:20:39 +0200 From: Mel <fbsd.questions@rachie.is-a-geek.net> To: freebsd-questions@freebsd.org Cc: "Vonarburg, David" <vonarburg@omnisec.ch>, Dan Nelson <dnelson@allantgroup.com>, Erik Osterholm <freebsd-lists-erik@erikosterholm.org> Subject: Re: AW: ethernet statistics Message-ID: <200809251820.41064.fbsd.questions@rachie.is-a-geek.net> In-Reply-To: <20080925155203.GB3284@dan.emsphone.com> References: <A1BAB23919F569438AECF5587963BC2513BB62@mailserver2.omnisec.ch> <20080925155203.GB3284@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 25 September 2008 17:52:07 Dan Nelson wrote: > In the last episode (Sep 25), Vonarburg, David said: > > netstat -i is ok for a user to get system statictics. I'd like get > > exactly this information but as a function call inside a "C" language > > application > > netstat -i still digs into kernel memory to get those stats, I think, > so you can't directly access those numbers as a regular user. All those vars are available through sysctl. For an example, look in src/in_sysctl.c from net/bmon port. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809251820.41064.fbsd.questions>