+/*
+ * Statistics.
+ */
+struct pppstat {
+ u_int ppp_ibytes; /* bytes received */
+ u_int ppp_ipackets; /* packets received */
+ u_int ppp_ierrors; /* receive errors */
+ u_int ppp_obytes; /* bytes sent */
+ u_int ppp_opackets; /* packets sent */
+ u_int ppp_oerrors; /* transmit errors */
+};
+
+struct vjstat {
+ u_int sls_packets; /* outbound packets */
+ u_int sls_compressed; /* outbound compressed packets */
+ u_int sls_searches; /* searches for connection state */
+ u_int sls_misses; /* times couldn't find conn. state */
+ u_int sls_uncompressedin; /* inbound uncompressed packets */
+ u_int sls_compressedin; /* inbound compressed packets */
+ u_int sls_errorin; /* inbound unknown type packets */
+ u_int sls_tossed; /* inbound packets tossed because of error */
+};
+
+struct ppp_stats {
+ struct pppstat p;
+ struct vjstat vj;
+};
+
+/*
+ * What to do with network protocol (NP) packets.
+ */
+
+enum NPmode {
+ NPMODE_PASS, /* pass the packet through */
+ NPMODE_DROP, /* silently drop the packet */
+ NPMODE_ERROR, /* return an error */
+ NPMODE_QUEUE /* save it up for later. */
+};
+
+struct npioctl {
+ int protocol; /* PPP procotol, e.g. PPP_IP */
+ enum NPmode mode;
+};
+
+/* Structure describing a CCP configuration option, for SIOCSCOMPRESS */
+#define MAX_PPP_OPTION 32
+struct ppp_option_data {
+ u_int length;
+ int transmit;
+ u_char opt_data[MAX_PPP_OPTION];
+};
+
+/*
+ * Ioctl definitions.
+ */
+