X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=include%2Fnet%2Fppp_str.h;h=cdb68512176764588b93fea6c3e286f8f2c8caa9;hp=760e7376ded2a4daa3fd7a9904ceb135f559acbb;hb=00d6b31a5087fa0bb2c9cdbc95d2dcdafca9be9b;hpb=8c436a744dd2d779743bf8269867dc96e8a35a42 diff --git a/include/net/ppp_str.h b/include/net/ppp_str.h index 760e737..cdb6851 100644 --- a/include/net/ppp_str.h +++ b/include/net/ppp_str.h @@ -5,8 +5,6 @@ See copyright statement in NOTES */ -#include - /* * Packet sizes */ @@ -34,11 +32,16 @@ struct ifpppstatsreq { 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 */ @@ -61,6 +64,7 @@ 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 */ @@ -86,6 +90,7 @@ 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 /* @@ -111,5 +116,7 @@ struct ifpppstatsreq { #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