From owner-freebsd-hackers Mon Aug 25 23:02:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA11686 for hackers-outgoing; Mon, 25 Aug 1997 23:02:19 -0700 (PDT) Received: from misery.sdf.com (misery.sdf.com [204.244.210.193]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id XAA11675 for ; Mon, 25 Aug 1997 23:02:12 -0700 (PDT) Received: from tom by misery.sdf.com with smtp (Exim 1.62 #1) id 0x3EfV-0006UM-00; Mon, 25 Aug 1997 22:59:57 -0700 Date: Mon, 25 Aug 1997 22:59:56 -0700 (PDT) From: Tom Samplonius To: Adrian Chadd cc: Julian Elischer , freebsd-hackers@freebsd.org Subject: Re: Grabbing throughput stats within pppd. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 26 Aug 1997, Adrian Chadd wrote: > On Mon, 25 Aug 1997, Julian Elischer wrote: > > > how about netstat -ib? > > if that doesn't give you bytes, then we'll gladly accept patches > > :) > > of course there is the usual ipfw stuff.. > > Erm, I think people aren't understanding me here. :-) > > I was after a way INSIDE pppd. :-) (its to implement RADIUS accounting). > Since I'm not really interested in accounting for non-IP stuff, I was > wondering if there was a way to account JUST IP packets coming down > the ppp link, inside pppd. Otherwise I'll just be evil, and read the > interface byte counts. netstat -b -I ppp0 will give you the info for just ppp0. > -- > Adrian Chadd | "Unix doesn't stop you from doing > | stupid things because that would > | stop you from doing clever things" > > > > Tom