[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Equiv. to /proc/net/ip_acct ?
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: Equiv. to /proc/net/ip_acct ?
- From: Thomas Ribbrock <emgaron_(_at_)_gmx_(_dot_)_net>
- Date: Sun, 16 Jul 2000 00:52:46 +0100
- Mail-followup-to: misc_(_at_)_openbsd_(_dot_)_org
On Sat, Jul 15, 2000 at 07:39:54PM -0400, eric jackson wrote:
> On Sun, 16 Jul 2000, Thomas Ribbrock wrote:
[...]
> > Basically, the information I'm interested in is the throughput through ppp0
> > (preferably in bytes in/out), which I need for a utility I'm trying to port.
> > I know programs like ipfstat and ipmon provide such information, however,
> > I'd rather be able to access the information directly via C than use an
> > external utility - if possible.
> >
>
> OpenBSD doesnt use ipfw, we have ipf, with ipf you use ipfstat to get
> statistics.
Thanks for the response, but I'm aware of that (in fact, ipf is one of my
reasons for moving to OpenBSD) and I'm aware of ipfstat (as I mentioned
above). However, I'm looking for a way to get that information directly from
my own program in C (e.g. something a la fopen()/fgets() + parsing or
whatever necessary), not for a standalone program.
Cheers,
Thomas
--
-----------------------------------------------------------------------------
Thomas Ribbrock http://www.bigfoot.com/~kaytan ICQ#: 15839919
"You have to live on the edge of reality - to make your dreams come true!"
Visit your host, monkey.org