]> git.ozlabs.org Git - ppp.git/blobdiff - include/net/ppp_defs.h
compression ratio is now fixed point.
[ppp.git] / include / net / ppp_defs.h
index 7e6c62f793b853d380e95d1bfd094c70659e5936..c6205dcf197a30b1f7cba0d563585f68ba859d44 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: ppp_defs.h,v 1.2 1994/09/21 01:31:06 paulus Exp $  */
+/*     $Id: ppp_defs.h,v 1.4 1994/10/23 11:46:45 paulus Exp $  */
 
 /*
  * ppp_defs.h - PPP definitions.
 
 /*
  * ppp_defs.h - PPP definitions.
@@ -120,6 +120,11 @@ struct vjstat {
     u_int      vjs_tossed;     /* inbound packets tossed because of error */
 };
 
     u_int      vjs_tossed;     /* inbound packets tossed because of error */
 };
 
+struct ppp_stats {
+    struct pppstat     p;      /* basic PPP statistics */
+    struct vjstat      vj;     /* VJ header compression statistics */
+};
+
 struct compstat {
     u_int      unc_bytes;      /* total uncompressed bytes */
     u_int      unc_packets;    /* total uncompressed packets */
 struct compstat {
     u_int      unc_bytes;      /* total uncompressed bytes */
     u_int      unc_packets;    /* total uncompressed packets */
@@ -127,12 +132,10 @@ struct compstat {
     u_int      comp_packets;   /* compressed packets */
     u_int      inc_bytes;      /* incompressible bytes */
     u_int      inc_packets;    /* incompressible packets */
     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_stats {
-    struct pppstat     p;      /* basic PPP statistics */
-    struct vjstat      vj;     /* VJ header compression statistics */
+struct ppp_comp_stats {
     struct compstat    c;      /* packet compression statistics */
     struct compstat    d;      /* packet decompression statistics */
 };
     struct compstat    c;      /* packet compression statistics */
     struct compstat    d;      /* packet decompression statistics */
 };