summaryrefslogtreecommitdiffstats
path: root/sys/net/pppcompress.h
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-09-23 00:13:22 +0000
committerwollman <wollman@FreeBSD.org>1994-09-23 00:13:22 +0000
commit866af634b010cb61542d457701bbe0fbb2530355 (patch)
tree568bd0505c59904992f3730ddfa912e162603bf6 /sys/net/pppcompress.h
parente525d0eb89e1528268acf406d5fcf4cf390f5d4e (diff)
downloadFreeBSD-src-866af634b010cb61542d457701bbe0fbb2530355.zip
FreeBSD-src-866af634b010cb61542d457701bbe0fbb2530355.tar.gz
Make the kernel side of PPP compile.
Diffstat (limited to 'sys/net/pppcompress.h')
-rw-r--r--sys/net/pppcompress.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/sys/net/pppcompress.h b/sys/net/pppcompress.h
index b73be42..ed30971 100644
--- a/sys/net/pppcompress.h
+++ b/sys/net/pppcompress.h
@@ -42,8 +42,8 @@
* $Id: slcompress.h,v 1.5 1994/01/15 20:13:16 deraadt Exp $
*/
-#ifndef _SLCOMPRESS_H_
-#define _SLCOMPRESS_H_
+#ifndef _NET_PPPCOMPRESS_H_
+#define _NET_PPPCOMPRESS_H_
#define MAX_STATES 16 /* must be > 2 and < 256 */
#define MAX_HDR MLEN /* XXX 4bsd-ism: should really be 128 */
@@ -136,6 +136,8 @@ struct cstate {
* all the state data for one serial line (we need one of these
* per line).
*/
+#define slcompress pppcompress
+
struct slcompress {
struct cstate *last_cs; /* most recently used tstate */
u_char last_recv; /* last rcvd conn. id */
@@ -157,6 +159,12 @@ struct slcompress {
/* flag values */
#define SLF_TOSS 1 /* tossing rcvd frames because of input err */
+#define sl_compress_init ppp_compress_init
+#define sl_compress_setup ppp_compress_setup
+#define sl_compress_tcp ppp_compress_tcp
+#define sl_uncompress_tcp ppp_uncompress_tcp
+#define sl_uncompress_tcp_part ppp_uncompress_tcp_part
+
extern void sl_compress_init __P((struct slcompress *));
extern void sl_compress_setup __P((struct slcompress *, int maxslot));
extern u_char sl_compress_tcp __P((struct mbuf *m, struct ip *ip,
@@ -167,4 +175,4 @@ extern int sl_uncompress_tcp_part __P((u_char **bufp, int buflen,
int total_len, u_int type,
struct slcompress *));
-#endif /* _SLCOMPRESS_H_ */
+#endif /* _NET_PPPCOMPRESS_H_ */
OpenPOWER on IntegriCloud