summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/throughput.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-06-12 20:12:26 +0000
committerbrian <brian@FreeBSD.org>1998-06-12 20:12:26 +0000
commit02a56dd03f499041230d5e52ef0187e6af7cdce2 (patch)
tree8946fabbe9f87bf3394279c760b3b42b87f5641e /usr.sbin/ppp/throughput.h
parentfd91ad6629443073196c8a7be06c623864255fbb (diff)
downloadFreeBSD-src-02a56dd03f499041230d5e52ef0187e6af7cdce2.zip
FreeBSD-src-02a56dd03f499041230d5e52ef0187e6af7cdce2.tar.gz
Add the ``clear'' function.
Mostly submitted by: "Stephane E. Potvin" <sepotvin@videotron.ca>
Diffstat (limited to 'usr.sbin/ppp/throughput.h')
-rw-r--r--usr.sbin/ppp/throughput.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/ppp/throughput.h b/usr.sbin/ppp/throughput.h
index dfad619..bdeac1e 100644
--- a/usr.sbin/ppp/throughput.h
+++ b/usr.sbin/ppp/throughput.h
@@ -23,11 +23,17 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: throughput.h,v 1.3 1998/05/21 21:48:43 brian Exp $
+ * $Id: throughput.h,v 1.4 1998/06/09 18:49:10 brian Exp $
*/
#define SAMPLE_PERIOD 5
+#define THROUGHPUT_OVERALL 0x0001
+#define THROUGHPUT_CURRENT 0x0002
+#define THROUGHPUT_PEAK 0x0004
+#define THROUGHPUT_ALL THROUGHPUT_OVERALL | THROUGHPUT_CURRENT \
+ | THROUGHPUT_PEAK
+
struct pppThroughput {
time_t uptime;
u_long OctetsIn;
@@ -48,3 +54,4 @@ 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_clear(struct pppThroughput *, int, struct prompt *);
OpenPOWER on IntegriCloud