Deleted Added
full compact
slcompress.h (50479) slcompress.h (58982)
1/*
2 * Definitions for tcp compression routines.
3 *
4 * Copyright (c) 1989 Regents of the University of California.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms are permitted
8 * provided that the above copyright notice and this paragraph are
9 * duplicated in all such forms and that any documentation,
10 * advertising materials, and other materials related to such
11 * distribution and use acknowledge that the software was developed
12 * by the University of California, Berkeley. The name of the
13 * University may not be used to endorse or promote products derived
14 * from this software without specific prior written permission.
15 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
17 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18 *
1/*
2 * Definitions for tcp compression routines.
3 *
4 * Copyright (c) 1989 Regents of the University of California.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms are permitted
8 * provided that the above copyright notice and this paragraph are
9 * duplicated in all such forms and that any documentation,
10 * advertising materials, and other materials related to such
11 * distribution and use acknowledge that the software was developed
12 * by the University of California, Berkeley. The name of the
13 * University may not be used to endorse or promote products derived
14 * from this software without specific prior written permission.
15 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
17 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18 *
19 * $FreeBSD: head/usr.sbin/ppp/slcompress.h 50479 1999-08-28 01:35:59Z peter $
19 * $FreeBSD: head/usr.sbin/ppp/slcompress.h 58982 2000-04-03 19:54:33Z gj $
20 *
21 * Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989:
22 * - Initial distribution.
23 */
24
25#define MIN_VJ_STATES 3
26#define MAX_VJ_STATES 255
27#define DEF_VJ_STATES 16 /* must be > 2 and < 256 */

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

97 * we saw from the conversation together with a small identifier
98 * the transmit & receive ends of the line use to locate saved header.
99 */
100struct cstate {
101 struct cstate *cs_next; /* next most recently used cstate (xmit only) */
102 u_short cs_hlen; /* size of hdr (receive only) */
103 u_char cs_id; /* connection # associated with this state */
104 u_char cs_filler;
20 *
21 * Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989:
22 * - Initial distribution.
23 */
24
25#define MIN_VJ_STATES 3
26#define MAX_VJ_STATES 255
27#define DEF_VJ_STATES 16 /* must be > 2 and < 256 */

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

97 * we saw from the conversation together with a small identifier
98 * the transmit & receive ends of the line use to locate saved header.
99 */
100struct cstate {
101 struct cstate *cs_next; /* next most recently used cstate (xmit only) */
102 u_short cs_hlen; /* size of hdr (receive only) */
103 u_char cs_id; /* connection # associated with this state */
104 u_char cs_filler;
105 union {
106 char csu_hdr[MAX_HDR];
107 struct ip csu_ip; /* ip/tcp hdr from most recent packet */
108 } slcs_u;
105 struct ip cs_ip; /* ip/tcp hdr from most recent packet */
109};
110
106};
107
111#define cs_ip slcs_u.csu_ip
112#define cs_hdr slcs_u.csu_hdr
113
114/*
115 * all the state data for one serial line (we need one of these
116 * per line).
117 */
118struct slcompress {
119 struct cstate *last_cs; /* most recently used tstate */
120 u_char last_recv; /* last rcvd conn. id */
121 u_char last_xmit; /* last sent conn. id */

--- 28 unchanged lines hidden ---
108/*
109 * all the state data for one serial line (we need one of these
110 * per line).
111 */
112struct slcompress {
113 struct cstate *last_cs; /* most recently used tstate */
114 u_char last_recv; /* last rcvd conn. id */
115 u_char last_xmit; /* last sent conn. id */

--- 28 unchanged lines hidden ---