Deleted Added
full compact
slcompress.h (28679) slcompress.h (30187)
1/*
2 * Definitions for tcp compression routines.
3 *
1/*
2 * Definitions for tcp compression routines.
3 *
4 * $Header: /home/ncvs/src/usr.sbin/ppp/slcompress.h,v 1.6 1997/06/09 03:27:38 brian Exp $
4 * $Header: /home/ncvs/src/usr.sbin/ppp/slcompress.h,v 1.7 1997/08/25 00:29:29 brian Exp $
5 *
6 * Copyright (c) 1989 Regents of the University of California.
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms are permitted
10 * provided that the above copyright notice and this paragraph are
11 * duplicated in all such forms and that any documentation,
12 * advertising materials, and other materials related to such
13 * distribution and use acknowledge that the software was developed
14 * by the University of California, Berkeley. The name of the
15 * University may not be used to endorse or promote products derived
16 * from this software without specific prior written permission.
17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
19 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 *
5 *
6 * Copyright (c) 1989 Regents of the University of California.
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms are permitted
10 * provided that the above copyright notice and this paragraph are
11 * duplicated in all such forms and that any documentation,
12 * advertising materials, and other materials related to such
13 * distribution and use acknowledge that the software was developed
14 * by the University of California, Berkeley. The name of the
15 * University may not be used to endorse or promote products derived
16 * from this software without specific prior written permission.
17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
19 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 *
21 * $Id: slcompress.h,v 1.6 1997/06/09 03:27:38 brian Exp $
21 * $Id: slcompress.h,v 1.7 1997/08/25 00:29:29 brian Exp $
22 *
23 * Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989:
24 * - Initial distribution.
25 */
26
27#define MAX_STATES 16 /* must be > 2 and < 256 */
28#define MAX_HDR 128 /* XXX 4bsd-ism: should really be 128 */
29

--- 103 unchanged lines hidden (view full) ---

133 int sls_compressedin; /* inbound compressed packets */
134 int sls_errorin; /* inbound unknown type packets */
135 int sls_tossed; /* inbound packets tossed because of error */
136};
137
138/* flag values */
139#define SLF_TOSS 1 /* tossing rcvd frames because of input err */
140
22 *
23 * Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989:
24 * - Initial distribution.
25 */
26
27#define MAX_STATES 16 /* must be > 2 and < 256 */
28#define MAX_HDR 128 /* XXX 4bsd-ism: should really be 128 */
29

--- 103 unchanged lines hidden (view full) ---

133 int sls_compressedin; /* inbound compressed packets */
134 int sls_errorin; /* inbound unknown type packets */
135 int sls_tossed; /* inbound packets tossed because of error */
136};
137
138/* flag values */
139#define SLF_TOSS 1 /* tossing rcvd frames because of input err */
140
141extern void sl_compress_init(struct slcompress *);
141extern void sl_compress_init(struct slcompress *, int max_state);
142extern u_char sl_compress_tcp
143__P((struct mbuf *, struct ip *,
144 struct slcompress *, int compress_cid_flag));
145 extern int sl_uncompress_tcp(u_char **, int, u_int, struct slcompress *);
142extern u_char sl_compress_tcp
143__P((struct mbuf *, struct ip *,
144 struct slcompress *, int compress_cid_flag));
145 extern int sl_uncompress_tcp(u_char **, int, u_int, struct slcompress *);