X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=include%2Fnet%2Fppp_defs.h;h=3e2f9a7379f99e0cb4e271131f5d981267e96d06;hp=ccd4f6e8c5b2eb2b0b48c751de4fdf880ffe96ff;hb=9abf2cd6f7a0cc812f5a20c088999a7058607b24;hpb=29829af57374e99da39f341fd00a0ae2445266d6 diff --git a/include/net/ppp_defs.h b/include/net/ppp_defs.h index ccd4f6e..3e2f9a7 100644 --- a/include/net/ppp_defs.h +++ b/include/net/ppp_defs.h @@ -1,4 +1,4 @@ -/* $Id: ppp_defs.h,v 1.3 1994/10/22 11:56:19 paulus Exp $ */ +/* $Id: ppp_defs.h,v 1.6 1995/04/24 02:42:06 paulus Exp $ */ /* * ppp_defs.h - PPP definitions. @@ -78,7 +78,7 @@ #ifdef UINT32_T typedef UINT32_T u_int32_t; #else -typedef unsigned long u_int32_t; +typedef unsigned int u_int32_t; #endif #endif @@ -132,7 +132,7 @@ struct compstat { u_int comp_packets; /* compressed packets */ u_int inc_bytes; /* incompressible bytes */ u_int inc_packets; /* incompressible packets */ - double ratio; /* recent compression ratio */ + u_int ratio; /* recent compression ratio << 8 */ }; struct ppp_comp_stats { @@ -140,6 +140,15 @@ struct ppp_comp_stats { struct compstat d; /* packet decompression statistics */ }; +/* + * The following structure records the time in seconds since + * the last NP packet was sent or received. + */ +struct ppp_idle { + time_t xmit_idle; /* time since last NP packet sent */ + time_t recv_idle; /* time since last NP packet received */ +}; + #ifndef __P #ifdef __STDC__ #define __P(x) x