-/* $Id: if_ppp.h,v 1.7 1994/10/21 06:26:15 paulus Exp $ */
+/* $Id: if_ppp.h,v 1.8 1994/10/22 11:56:19 paulus Exp $ */
/*
* if_ppp.h - Point-to-Point Protocol definitions.
struct ppp_stats stats;
};
+struct ifpppcstatsreq {
+ char ifr_name[IFNAMSIZ];
+ struct ppp_comp_stats stats;
+};
+
/*
* Ioctl definitions.
*/
#define PPPIOCSNPMODE _IOW('t', 75, struct npioctl) /* set NP mode */
#define SIOCGPPPSTATS _IOWR('i', 123, struct ifpppstatsreq)
+#define SIOCGPPPCSTATS _IOWR('i', 124, struct ifpppcstatsreq)
#if !defined(ifr_mtu)
#define ifr_mtu ifr_ifru.ifru_metric
-/* $Id: ppp_defs.h,v 1.2 1994/09/21 01:31:06 paulus Exp $ */
+/* $Id: ppp_defs.h,v 1.3 1994/10/22 11:56:19 paulus Exp $ */
/*
* ppp_defs.h - PPP definitions.
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 */
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 */
};
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.
*/
#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
/*