]> git.ozlabs.org Git - ppp.git/blobdiff - include/net/ppp_defs.h
split stats ioctl into two
[ppp.git] / include / net / ppp_defs.h
index 9a0a2a16b7846bc8c5deadd716c014cd4e1a0b9a..ccd4f6e8c5b2eb2b0b48c751de4fdf880ffe96ff 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: ppp_defs.h,v 1.1 1994/09/19 04:18:43 paulus Exp $  */
+/*     $Id: ppp_defs.h,v 1.3 1994/10/22 11:56:19 paulus Exp $  */
 
 /*
  * ppp_defs.h - PPP definitions.
 
 /*
  * ppp_defs.h - PPP definitions.
@@ -27,6 +27,9 @@
  * OR MODIFICATIONS.
  */
 
  * OR MODIFICATIONS.
  */
 
+#ifndef _PPP_DEFS_H_
+#define _PPP_DEFS_H_
+
 /*
  * The basic PPP frame.
  */
 /*
  * The basic PPP frame.
  */
 #define        PPP_VJC_COMP    0x2d    /* VJ compressed TCP */
 #define        PPP_VJC_UNCOMP  0x2f    /* VJ uncompressed TCP */
 #define PPP_COMP       0xfd    /* compressed packet */
 #define        PPP_VJC_COMP    0x2d    /* VJ compressed TCP */
 #define        PPP_VJC_UNCOMP  0x2f    /* VJ uncompressed TCP */
 #define PPP_COMP       0xfd    /* compressed packet */
-#define PPP_LCP                0xc021  /* Link Control Protocol */
+#define PPP_IPCP       0x8021  /* IP Control Protocol */
 #define PPP_CCP                0x80fd  /* Compression Control Protocol */
 #define PPP_CCP                0x80fd  /* Compression Control Protocol */
+#define PPP_LCP                0xc021  /* Link Control Protocol */
+#define PPP_PAP                0xc023  /* Password Authentication Protocol */
+#define PPP_LQR                0xc025  /* Link Quality Report protocol */
+#define PPP_CHAP       0xc223  /* Cryptographic Handshake Auth. Protocol */
 
 /*
  * Values for FCS calculations.
 
 /*
  * Values for FCS calculations.
@@ -113,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 */
@@ -123,9 +135,7 @@ struct compstat {
     double     ratio;          /* recent compression ratio */
 };
 
     double     ratio;          /* recent compression ratio */
 };
 
-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 */
 };
@@ -137,3 +147,5 @@ struct ppp_stats {
 #define __P(x) ()
 #endif
 #endif
 #define __P(x) ()
 #endif
 #endif
+
+#endif /* _PPP_DEFS_H_ */