See copyright statement in NOTES
*/
-#include <sys/ioccom.h>
-
/*
* Packet sizes
*/
struct ppp_stats stats;
};
+struct ifpppcstatsreq {
+ char ifr_name[IFNAMSIZ];
+ struct ppp_comp_stats stats;
+};
+
/*
* Ioctl definitions.
*/
-#ifdef __STDC__
+#if defined(__STDC__) || defined(__osf__)
#define SIOCSIFCOMPAC _IOW('p', 130, char)
#define SIOCSIFCOMPPROT _IOW('p', 131, char)
#define SIOCSIFMRU _IOW('p', 132, int) /* set max receive unit */
#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 */
#define SIOCSCOMPRESS _IOW(p, 150, struct ppp_option_data)
#define SIOCGPPPSTATS _IOWR(i, 123, struct ifpppstatsreq)
+#define SIOCGPPPCSTATS _IOWR(i, 124, struct ifpppcstatsreq)
#endif
/*
#define CCP_FATALERROR 0x20
/* defines for streams modules */
-#define IF_INPUT_ERROR 0xe1
-#define IF_OUTPUT_ERROR 0xe2
+#define IF_INPUT_ERROR 0xe1
+#define IF_OUTPUT_ERROR 0xe2
+#define IF_GET_CSTATS 0xe3
+#define IF_CSTATS 0xe4