Subject: Re: PPPoE stats
To: Martin Husemann <martin@duskware.de>
From: Jean-Edouard BABIN <listes@jeb.com.fr>
List: current-users
Date: 04/08/2003 17:16:21
Hi,

Thanks for the info !
I have make a patch for ifconfig
Ifconfig -c interface
will print then clear stats

http://jeb.be/ifconfig.c.patch
I think this is a usefull fonction

on 08/04/03 15:10, =AB=A0Martin Husemann=A0=BB <martin@duskware.de> wrote:

> On Tue, Apr 08, 2003 at 02:31:04PM +0200, Jean-Edouard BABIN wrote:
>> I am wondering if there is a easyer way
>=20
> You can query the stats with the SIOCGIFDATA ioctl or query-and-clear
> them with SIOCZIFDATA. Some network watching utilities from pkgsrc
> use this.
>=20
> The only tool in the base distribution I know of that uses the former is
> "ifconfig -v ppppoe0". I don't know if ifconfig should get an option to c=
lear
> them.
>=20
> Martin
>=20

--=20
Jean-Edouard BABIN
Mail: Jeb@jeb.com.fr
Web : www.Jeb.com.fr
IRC : Jeb @ Undernet