summaryrefslogtreecommitdiffstats
path: root/include/linux/isdn_ppp.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-05-07 02:55:41 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-05-07 02:55:41 +0000
commitdcec8a13bf565e47942a1751a9cec21bec5648fe (patch)
tree548b69625b18cc2e88c3e68d0923be546c9ebb03 /include/linux/isdn_ppp.h
parent2e0f55e79c49509b7ff70ff1a10e1e9e90a3dfd4 (diff)
o Merge with Linux 2.1.99.
o Fix ancient bug in the ELF loader making ldd crash. o Fix ancient bug in the keyboard code for SGI, SNI and Jazz.
Diffstat (limited to 'include/linux/isdn_ppp.h')
-rw-r--r--include/linux/isdn_ppp.h58
1 files changed, 37 insertions, 21 deletions
diff --git a/include/linux/isdn_ppp.h b/include/linux/isdn_ppp.h
index 71bbc557a..177646520 100644
--- a/include/linux/isdn_ppp.h
+++ b/include/linux/isdn_ppp.h
@@ -1,23 +1,8 @@
#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
@@ -31,18 +16,17 @@ struct pppcallinfo
int charge_units;
};
-
#define PPPIOCGCALLINFO _IOWR('t',128,struct pppcallinfo)
#define PPPIOCBUNDLE _IOW('t',129,int)
#define PPPIOCGMPFLAGS _IOR('t',130,int)
#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 PPPIOCGCOMPRESSORS _IOR('t',134,unsigned long)
-#define PPPIOCSCOMPRESSOR _IOW('t',135,int)
-
-#define PPP_MP 0x003d
+#define PPP_MP 0x003d
+#define PPP_LINK_COMP 0x00fb
#define SC_MP_PROT 0x00000200
#define SC_REJ_MP_PROT 0x00000400
@@ -52,4 +36,36 @@ struct pppcallinfo
#define MP_END_FRAG 0x40
#define MP_BEGIN_FRAG 0x80
-#endif
+#ifdef __KERNEL__
+/*
+ * this is an 'old friend' from ppp-comp.h under a new name
+ * check the original include for more information
+ */
+struct isdn_ppp_compressor {
+ struct isdn_ppp_compressor *next,*prev;
+ int num; /* CCP compression protocol number */
+ void *(*comp_alloc) (unsigned char *options, int opt_len);
+ void (*comp_free) (void *state);
+ int (*comp_init) (void *state, unsigned char *options, int opt_len,
+ int unit, int opthdr, int debug);
+ void (*comp_reset) (void *state);
+ int (*compress) (void *state,struct sk_buff *in, struct sk_buff *skb_out,
+ int proto);
+ void (*comp_stat) (void *state, struct compstat *stats);
+ void *(*decomp_alloc) (unsigned char *options, int opt_len);
+ void (*decomp_free) (void *state);
+ int (*decomp_init) (void *state, unsigned char *options,
+ int opt_len, int unit, int opthdr, int mru, int debug);
+ void (*decomp_reset) (void *state);
+ int (*decompress) (void *state, unsigned char *ibuf, int isize, unsigned char *obuf, int osize);
+ void (*incomp) (void *state, unsigned char *ibuf, int icnt);
+ void (*decomp_stat) (void *state, struct compstat *stats);
+};
+
+extern int isdn_ppp_register_compressor(struct isdn_ppp_compressor *);
+extern int isdn_ppp_unregister_compressor(struct isdn_ppp_compressor *);
+
+#endif /* __KERNEL__ */
+
+#endif /* _LINUX_ISDN_PPP_H */
+