patch-2.1.42 linux/include/linux/isdn_ppp.h

Next file: linux/include/linux/isdnif.h
Previous file: linux/include/linux/isdn.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.41/linux/include/linux/isdn_ppp.h linux/include/linux/isdn_ppp.h
@@ -1,8 +1,23 @@
 #ifndef _LINUX_ISDN_PPP_H
 #define _LINUX_ISDN_PPP_H
 
+struct isdn_ppp_compressor
+{
+    struct isdn_ppp_compressor *next,*prev;
+    int num;    /* proto num */
+    void *priv; /* private data for compressor */
+	int (*open)(struct isdn_ppp_compressor *);
+	int (*close)(struct isdn_ppp_compressor *);
+	int (*reset)(struct isdn_ppp_compressor *,int type);
+	int (*config)(struct isdn_ppp_compressor *,void *data,int data_len);
+	struct sk_buff *(*compress)(struct isdn_ppp_compressor *,struct sk_buff *);
+	struct sk_buff *(*uncompress)(struct isdn_ppp_compressor *,struct sk_buff *);
+};
+
 extern int isdn_ppp_dial_slave(char *);
 extern int isdn_ppp_hangup_slave(char *);
+extern int isdn_ppp_register_compressor(struct isdn_ppp_compressor *);
+extern int isdn_ppp_unregister_compressor(struct isdn_ppp_compressor *);
 
 #define CALLTYPE_INCOMING 0x1
 #define CALLTYPE_OUTGOING 0x2
@@ -23,6 +38,9 @@
 #define PPPIOCSMPFLAGS _IOW('t',131,int)
 #define PPPIOCSMPMTU   _IOW('t',132,int)
 #define PPPIOCSMPMRU   _IOW('t',133,int)
+
+#define PPPIOCGCOMPRESSORS  _IOR('t',134,unsigned long)
+#define PPPIOCSCOMPRESSOR   _IOW('t',135,int)
 
 #define PPP_MP         0x003d
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov