summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/throughput.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-05-08 11:07:56 +0000
committerbrian <brian@FreeBSD.org>1999-05-08 11:07:56 +0000
commitab7d88ae2d8ea955c6193cc242b9cee4d58f8fd4 (patch)
treee79816f983bd5a5be86a78fe0aafbd00a13ac2db /usr.sbin/ppp/throughput.h
parent713dd62834d401cc7b9b394a4b916ab9e5e3d4d5 (diff)
downloadFreeBSD-src-ab7d88ae2d8ea955c6193cc242b9cee4d58f8fd4.zip
FreeBSD-src-ab7d88ae2d8ea955c6193cc242b9cee4d58f8fd4.tar.gz
o Redesign the layering mechanism and make the aliasing code part of
the layering. We now ``stack'' layers as soon as we open the device (when we figure out what we're dealing with). A static set of `dispatch' routines are also declared for dealing with incoming packets after they've been `pulled' up through the stacked layers. Physical devices are now assigned handlers based on the device type when they're opened. For the moment there are three device types; ttys, execs and tcps. o Increment version number to 2.2 o Make an entry in [uw]tmp for non-tty -direct invocations (after pap/chap authentication). o Make throughput counters quad_t's o Account for the absolute number of mbuf malloc()s and free()s in ``show mem''. o ``show modem'' becomes ``show physical''.
Diffstat (limited to 'usr.sbin/ppp/throughput.h')
-rw-r--r--usr.sbin/ppp/throughput.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/ppp/throughput.h b/usr.sbin/ppp/throughput.h
index bdeac1e..85003f5 100644
--- a/usr.sbin/ppp/throughput.h
+++ b/usr.sbin/ppp/throughput.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: throughput.h,v 1.4 1998/06/09 18:49:10 brian Exp $
+ * $Id: throughput.h,v 1.5 1998/06/12 20:12:26 brian Exp $
*/
#define SAMPLE_PERIOD 5
@@ -36,11 +36,11 @@
struct pppThroughput {
time_t uptime;
- u_long OctetsIn;
- u_long OctetsOut;
- u_long SampleOctets[SAMPLE_PERIOD];
- int OctetsPerSecond;
- int BestOctetsPerSecond;
+ unsigned long long OctetsIn;
+ unsigned long long OctetsOut;
+ unsigned long long SampleOctets[SAMPLE_PERIOD];
+ unsigned long long OctetsPerSecond;
+ unsigned long long BestOctetsPerSecond;
time_t BestOctetsPerSecondTime;
int nSample;
unsigned rolling : 1;
@@ -52,6 +52,6 @@ extern void throughput_disp(struct pppThroughput *, struct prompt *);
extern void throughput_log(struct pppThroughput *, int, const char *);
extern void throughput_start(struct pppThroughput *, const char *, int);
extern void throughput_stop(struct pppThroughput *);
-extern void throughput_addin(struct pppThroughput *, int);
-extern void throughput_addout(struct pppThroughput *, int);
+extern void throughput_addin(struct pppThroughput *, long long);
+extern void throughput_addout(struct pppThroughput *, long long);
extern void throughput_clear(struct pppThroughput *, int, struct prompt *);
OpenPOWER on IntegriCloud