Deleted Added
full compact
slcompress.h (22975) slcompress.h (28415)
1/* slcompress.h 8.1 93/06/10 */
2/*
3 * Definitions for tcp compression routines.
4 *
5 * Copyright (c) 1989, 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989:
37 * - Initial distribution.
1/* slcompress.h 8.1 93/06/10 */
2/*
3 * Definitions for tcp compression routines.
4 *
5 * Copyright (c) 1989, 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989:
37 * - Initial distribution.
38 * $Id$
38 * $Id: slcompress.h,v 1.11 1997/02/22 09:41:16 peter Exp $
39 */
40
41#ifndef _NET_SLCOMPRESS_H_
42#define _NET_SLCOMPRESS_H_
43
44#define MAX_STATES 16 /* must be > 2 and < 256 */
45#define MAX_HDR MLEN /* XXX 4bsd-ism: should really be 128 */
46

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

112/*
113 * "state" data for each active tcp conversation on the wire. This is
114 * basically a copy of the entire IP/TCP header from the last packet
115 * we saw from the conversation together with a small identifier
116 * the transmit & receive ends of the line use to locate saved header.
117 */
118struct cstate {
119 struct cstate *cs_next; /* next most recently used cstate (xmit only) */
39 */
40
41#ifndef _NET_SLCOMPRESS_H_
42#define _NET_SLCOMPRESS_H_
43
44#define MAX_STATES 16 /* must be > 2 and < 256 */
45#define MAX_HDR MLEN /* XXX 4bsd-ism: should really be 128 */
46

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

112/*
113 * "state" data for each active tcp conversation on the wire. This is
114 * basically a copy of the entire IP/TCP header from the last packet
115 * we saw from the conversation together with a small identifier
116 * the transmit & receive ends of the line use to locate saved header.
117 */
118struct cstate {
119 struct cstate *cs_next; /* next most recently used cstate (xmit only) */
120 u_short cs_hlen; /* size of hdr (receive only) */
120 u_int16_t cs_hlen; /* size of hdr (receive only) */
121 u_char cs_id; /* connection # associated with this state */
122 u_char cs_filler;
123 union {
124 char csu_hdr[MAX_HDR];
125 struct ip csu_ip; /* ip/tcp hdr from most recent packet */
126 } slcs_u;
127};
128#define cs_ip slcs_u.csu_ip
129#define cs_hdr slcs_u.csu_hdr
130
131/*
132 * all the state data for one serial line (we need one of these
133 * per line).
134 */
135struct slcompress {
136 struct cstate *last_cs; /* most recently used tstate */
137 u_char last_recv; /* last rcvd conn. id */
138 u_char last_xmit; /* last sent conn. id */
121 u_char cs_id; /* connection # associated with this state */
122 u_char cs_filler;
123 union {
124 char csu_hdr[MAX_HDR];
125 struct ip csu_ip; /* ip/tcp hdr from most recent packet */
126 } slcs_u;
127};
128#define cs_ip slcs_u.csu_ip
129#define cs_hdr slcs_u.csu_hdr
130
131/*
132 * all the state data for one serial line (we need one of these
133 * per line).
134 */
135struct slcompress {
136 struct cstate *last_cs; /* most recently used tstate */
137 u_char last_recv; /* last rcvd conn. id */
138 u_char last_xmit; /* last sent conn. id */
139 u_short flags;
139 u_int16_t flags;
140#ifndef SL_NO_STATS
141 int sls_packets; /* outbound packets */
142 int sls_compressed; /* outbound compressed packets */
143 int sls_searches; /* searches for connection state */
144 int sls_misses; /* times couldn't find conn. state */
145 int sls_uncompressedin; /* inbound uncompressed packets */
146 int sls_compressedin; /* inbound compressed packets */
147 int sls_errorin; /* inbound unknown type packets */

--- 16 unchanged lines hidden ---
140#ifndef SL_NO_STATS
141 int sls_packets; /* outbound packets */
142 int sls_compressed; /* outbound compressed packets */
143 int sls_searches; /* searches for connection state */
144 int sls_misses; /* times couldn't find conn. state */
145 int sls_uncompressedin; /* inbound uncompressed packets */
146 int sls_compressedin; /* inbound compressed packets */
147 int sls_errorin; /* inbound unknown type packets */

--- 16 unchanged lines hidden ---