X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fnet%2Fslcompress.h;h=3712a1ae8c1d25e0b84c2d59ae7dfb2fd49cd6f8;hb=6531eb055818ea1b4df386b3e7132392771cd0e5;hp=3cf9a20cca1123b1be6e229e6d6354dc7c3120af;hpb=0ae17bd9d21166d8274d4b4da594d05efd0ae87d;p=ppp.git diff --git a/include/net/slcompress.h b/include/net/slcompress.h index 3cf9a20..3712a1a 100644 --- a/include/net/slcompress.h +++ b/include/net/slcompress.h @@ -1,7 +1,7 @@ /* * Definitions for tcp compression routines. * - * $Header: /home/paulus/ppp/samba.org/ppp/include/net/slcompress.h,v 1.1 1994/02/23 03:49:22 paulus Exp $ + * $Id: slcompress.h,v 1.4 1994/09/21 06:50:08 paulus Exp $ * * Copyright (c) 1989 Regents of the University of California. * All rights reserved. @@ -22,6 +22,9 @@ * - Initial distribution. */ +#ifndef _SLCOMPRESS_H_ +#define _SLCOMPRESS_H_ + #define MAX_STATES 16 /* must be > 2 and < 256 */ #define MAX_HDR MLEN /* XXX 4bsd-ism: should really be 128 */ @@ -134,7 +137,12 @@ struct slcompress { /* flag values */ #define SLF_TOSS 1 /* tossing rcvd frames because of input err */ -extern void sl_compress_init(/* struct slcompress * */); -extern u_char sl_compress_tcp(/* struct mbuf *, struct ip *, - struct slcompress *, int compress_cid_flag */); -extern int sl_uncompress_tcp(/* u_char **, int, u_char, struct slcompress * */); +void sl_compress_init(struct slcompress *); +void sl_compress_setup(struct slcompress *, int); +u_int sl_compress_tcp(struct mbuf *, + struct ip *, struct slcompress *, int); +int sl_uncompress_tcp(u_char **, int, u_int, struct slcompress *); +int sl_uncompress_tcp_core(u_char *, int, int, u_int, + struct slcompress *, u_char **, u_int *); + +#endif /* _SLCOMPRESS_H_ */