2 * ccp.h - Definitions for PPP Compression Control Protocol.
4 * Copyright (c) 1994 The Australian National University.
7 * Permission to use, copy, modify, and distribute this software and its
8 * documentation is hereby granted, provided that the above copyright
9 * notice appears in all copies. This software is provided without any
10 * warranty, express or implied. The Australian National University
11 * makes no representations about the suitability of this software for
14 * IN NO EVENT SHALL THE AUSTRALIAN NATIONAL UNIVERSITY BE LIABLE TO ANY
15 * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
16 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
17 * THE AUSTRALIAN NATIONAL UNIVERSITY HAVE BEEN ADVISED OF THE POSSIBILITY
20 * THE AUSTRALIAN NATIONAL UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES,
21 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
22 * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
23 * ON AN "AS IS" BASIS, AND THE AUSTRALIAN NATIONAL UNIVERSITY HAS NO
24 * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
27 * $Id: ccp.h,v 1.6 1995/12/18 03:44:41 paulus Exp $
30 typedef struct ccp_options {
31 u_int bsd_compress: 1; /* do BSD Compress? */
32 u_int deflate: 1; /* do Deflate? */
33 u_int predictor_1: 1; /* do Predictor-1? */
34 u_int predictor_2: 1; /* do Predictor-2? */
35 u_short bsd_bits; /* # bits/code for BSD Compress */
36 u_short deflate_size; /* lg(window size) for Deflate */
40 extern ccp_options ccp_wantoptions[];
41 extern ccp_options ccp_gotoptions[];
42 extern ccp_options ccp_allowoptions[];
43 extern ccp_options ccp_hisoptions[];
45 void ccp_init __P((int unit));
46 void ccp_open __P((int unit));
47 void ccp_close __P((int unit, char *));
48 void ccp_lowerup __P((int unit));
49 void ccp_lowerdown __P((int));
50 void ccp_input __P((int unit, u_char *pkt, int len));
51 void ccp_protrej __P((int unit));
52 int ccp_printpkt __P((u_char *pkt, int len,
53 void (*printer) __P((void *, char *, ...)),
55 void ccp_datainput __P((int unit, u_char *pkt, int len));
57 extern struct protent ccp_protent;