]> git.ozlabs.org Git - ppp.git/blobdiff - include/net/ppp_str.h
split stats ioctl into two
[ppp.git] / include / net / ppp_str.h
index 760e7376ded2a4daa3fd7a9904ceb135f559acbb..d3caba8c2e1a108092791335333eba23a530b104 100644 (file)
@@ -5,8 +5,6 @@
   See copyright statement in NOTES
 */
 
   See copyright statement in NOTES
 */
 
-#include       <sys/ioccom.h>
-
 /*
  * Packet sizes
  */
 /*
  * Packet sizes
  */
@@ -34,6 +32,11 @@ struct ifpppstatsreq {
     struct ppp_stats stats;
 };
 
     struct ppp_stats stats;
 };
 
+struct ifpppcstatsreq {
+    char ifr_name[IFNAMSIZ];
+    struct ppp_comp_stats stats;
+};
+
 /*
  * Ioctl definitions.
  */
 /*
  * Ioctl definitions.
  */
@@ -61,6 +64,7 @@ struct ifpppstatsreq {
 #define SIOCSCOMPRESS  _IOW('p', 150, struct ppp_option_data)
 
 #define SIOCGPPPSTATS  _IOWR('i', 123, struct ifpppstatsreq)
 #define SIOCSCOMPRESS  _IOW('p', 150, struct ppp_option_data)
 
 #define SIOCGPPPSTATS  _IOWR('i', 123, struct ifpppstatsreq)
+#define SIOCGPPPCSTATS _IOWR('i', 124, struct ifpppcstatsreq)
 
 #else
 /* traditional C compiler */
 
 #else
 /* traditional C compiler */
@@ -86,6 +90,7 @@ struct ifpppstatsreq {
 #define SIOCSCOMPRESS  _IOW(p, 150, struct ppp_option_data)
 
 #define SIOCGPPPSTATS  _IOWR(i, 123, struct ifpppstatsreq)
 #define SIOCSCOMPRESS  _IOW(p, 150, struct ppp_option_data)
 
 #define SIOCGPPPSTATS  _IOWR(i, 123, struct ifpppstatsreq)
+#define SIOCGPPPCSTATS _IOWR(i, 124, struct ifpppcstatsreq)
 #endif
 
 /*
 #endif
 
 /*