slcompress.h (59005) | slcompress.h (92725) |
---|---|
1/* 2 * Definitions for tcp compression routines. 3 * 4 * Copyright (c) 1989, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 20 unchanged lines hidden (view full) --- 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * 35 * Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989: 36 * - Initial distribution. | 1/* 2 * Definitions for tcp compression routines. 3 * 4 * Copyright (c) 1989, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 20 unchanged lines hidden (view full) --- 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * 35 * Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989: 36 * - Initial distribution. |
37 * $FreeBSD: head/sys/net/slcompress.h 59005 2000-04-04 09:20:53Z gj $ | 37 * $FreeBSD: head/sys/net/slcompress.h 92725 2002-03-19 21:54:18Z alfred $ |
38 */ 39 40#ifndef _NET_SLCOMPRESS_H_ 41#define _NET_SLCOMPRESS_H_ 42 43#define MAX_STATES 16 /* must be > 2 and < 256 */ 44#define MAX_HDR 128 45 --- 101 unchanged lines hidden (view full) --- 147 int sls_tossed; /* inbound packets tossed because of error */ 148#endif 149 struct cstate tstate[MAX_STATES]; /* xmit connection states */ 150 struct cstate rstate[MAX_STATES]; /* receive connection states */ 151}; 152/* flag values */ 153#define SLF_TOSS 1 /* tossing rcvd frames because of input err */ 154 | 38 */ 39 40#ifndef _NET_SLCOMPRESS_H_ 41#define _NET_SLCOMPRESS_H_ 42 43#define MAX_STATES 16 /* must be > 2 and < 256 */ 44#define MAX_HDR 128 45 --- 101 unchanged lines hidden (view full) --- 147 int sls_tossed; /* inbound packets tossed because of error */ 148#endif 149 struct cstate tstate[MAX_STATES]; /* xmit connection states */ 150 struct cstate rstate[MAX_STATES]; /* receive connection states */ 151}; 152/* flag values */ 153#define SLF_TOSS 1 /* tossing rcvd frames because of input err */ 154 |
155void sl_compress_init __P((struct slcompress *, int)); 156u_int sl_compress_tcp __P((struct mbuf *, 157 struct ip *, struct slcompress *, int)); 158int sl_uncompress_tcp __P((u_char **, int, u_int, struct slcompress *)); 159int sl_uncompress_tcp_core __P((u_char *, int, int, u_int, 160 struct slcompress *, u_char **, u_int *)); | 155void sl_compress_init(struct slcompress *, int); 156u_int sl_compress_tcp(struct mbuf *, struct ip *, struct slcompress *, int); 157int sl_uncompress_tcp(u_char **, int, u_int, struct slcompress *); 158int sl_uncompress_tcp_core(u_char *, int, int, u_int, 159 struct slcompress *, u_char **, u_int *); |
161 162#endif /* !_NET_SLCOMPRESS_H_ */ | 160 161#endif /* !_NET_SLCOMPRESS_H_ */ |