Deleted Added
full compact
ccp.h (32381) ccp.h (32439)
1/*
2 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
3 *
4 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
5 *
6 * Redistribution and use in source and binary forms are permitted
7 * provided that the above copyright notice and this paragraph are
8 * duplicated in all such forms and that any documentation,
9 * advertising materials, and other materials related to such
10 * distribution and use acknowledge that the software was developed
11 * by the Internet Initiative Japan. The name of the
12 * IIJ may not be used to endorse or promote products derived
13 * from this software without specific prior written permission.
14 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17 *
1/*
2 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
3 *
4 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
5 *
6 * Redistribution and use in source and binary forms are permitted
7 * provided that the above copyright notice and this paragraph are
8 * duplicated in all such forms and that any documentation,
9 * advertising materials, and other materials related to such
10 * distribution and use acknowledge that the software was developed
11 * by the Internet Initiative Japan. The name of the
12 * IIJ may not be used to endorse or promote products derived
13 * from this software without specific prior written permission.
14 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17 *
18 * $Id: ccp.h,v 1.12 1998/01/04 20:25:41 brian Exp $
18 * $Id: ccp.h,v 1.13 1998/01/10 01:55:09 brian Exp $
19 *
20 * TODO:
21 */
22
23#define CCP_MAXCODE CODE_RESETACK
24
25#define TY_OUI 0 /* OUI */
26#define TY_PRED1 1 /* Predictor type 1 */

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

31#define TY_MSPPC 18 /* Microsoft PPC */
32#define TY_GAND 19 /* Gandalf FZA */
33#define TY_V42BIS 20 /* V.42bis compression */
34#define TY_BSD 21 /* BSD LZW Compress */
35#define TY_PPPD_DEFLATE 24 /* Deflate (gzip) - (mis) numbered by pppd */
36#define TY_DEFLATE 26 /* Deflate (gzip) - rfc 1979 */
37
38struct ccpstate {
19 *
20 * TODO:
21 */
22
23#define CCP_MAXCODE CODE_RESETACK
24
25#define TY_OUI 0 /* OUI */
26#define TY_PRED1 1 /* Predictor type 1 */

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

31#define TY_MSPPC 18 /* Microsoft PPC */
32#define TY_GAND 19 /* Gandalf FZA */
33#define TY_V42BIS 20 /* V.42bis compression */
34#define TY_BSD 21 /* BSD LZW Compress */
35#define TY_PPPD_DEFLATE 24 /* Deflate (gzip) - (mis) numbered by pppd */
36#define TY_DEFLATE 26 /* Deflate (gzip) - rfc 1979 */
37
38struct ccpstate {
39 u_long his_proto; /* peer's compression protocol */
40 u_long my_proto; /* our compression protocol */
39 int his_proto; /* peer's compression protocol */
40 int my_proto; /* our compression protocol */
41
42 int reset_sent; /* If != -1, ignore compressed 'till ack */
43 int last_reset; /* We can receive more (dups) w/ this id */
44
41
42 int reset_sent; /* If != -1, ignore compressed 'till ack */
43 int last_reset; /* We can receive more (dups) w/ this id */
44
45 u_long his_reject; /* Request codes rejected by peer */
46 u_long my_reject; /* Request codes I have rejected */
45 u_int32_t his_reject; /* Request codes rejected by peer */
46 u_int32_t my_reject; /* Request codes I have rejected */
47
48 int out_init; /* Init called for out algorithm */
49 int in_init; /* Init called for in algorithm */
50
51 u_long uncompout, compout;
52 u_long uncompin, compin;
53};
54

--- 38 unchanged lines hidden ---
47
48 int out_init; /* Init called for out algorithm */
49 int in_init; /* Init called for in algorithm */
50
51 u_long uncompout, compout;
52 u_long uncompin, compin;
53};
54

--- 38 unchanged lines hidden ---