1995-10-31 21:10:14 +00:00
|
|
|
/*
|
|
|
|
* ccp.h - Definitions for PPP Compression Control Protocol.
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994 The Australian National University.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, and distribute this software and its
|
|
|
|
* documentation is hereby granted, provided that the above copyright
|
|
|
|
* notice appears in all copies. This software is provided without any
|
|
|
|
* warranty, express or implied. The Australian National University
|
|
|
|
* makes no representations about the suitability of this software for
|
|
|
|
* any purpose.
|
|
|
|
*
|
|
|
|
* IN NO EVENT SHALL THE AUSTRALIAN NATIONAL UNIVERSITY BE LIABLE TO ANY
|
|
|
|
* PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
|
|
|
|
* ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
|
|
|
|
* THE AUSTRALIAN NATIONAL UNIVERSITY HAVE BEEN ADVISED OF THE POSSIBILITY
|
|
|
|
* OF SUCH DAMAGE.
|
|
|
|
*
|
|
|
|
* THE AUSTRALIAN NATIONAL UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES,
|
|
|
|
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
|
|
* AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
|
|
|
|
* ON AN "AS IS" BASIS, AND THE AUSTRALIAN NATIONAL UNIVERSITY HAS NO
|
|
|
|
* OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
|
|
|
|
* OR MODIFICATIONS.
|
|
|
|
*
|
1999-08-28 01:35:59 +00:00
|
|
|
* $FreeBSD$
|
1995-10-31 21:10:14 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct ccp_options {
|
|
|
|
u_int bsd_compress: 1; /* do BSD Compress? */
|
1998-03-22 06:57:20 +00:00
|
|
|
u_int deflate: 1; /* do Deflate? (RFC code) */
|
|
|
|
u_int baddeflate: 1; /* do Deflate? (Magnalink!) */
|
1997-08-19 17:52:48 +00:00
|
|
|
u_int predictor_1: 1; /* do Predictor-1? */
|
|
|
|
u_int predictor_2: 1; /* do Predictor-2? */
|
1998-06-20 18:02:16 +00:00
|
|
|
u_int deflate_correct: 1; /* use correct code for deflate? */
|
|
|
|
u_int deflate_draft: 1; /* use draft RFC code for deflate? */
|
1995-10-31 21:10:14 +00:00
|
|
|
u_short bsd_bits; /* # bits/code for BSD Compress */
|
1997-08-19 17:52:48 +00:00
|
|
|
u_short deflate_size; /* lg(window size) for Deflate */
|
1998-03-22 06:57:20 +00:00
|
|
|
u_short baddeflate_size; /* lg(window size) for Deflate */
|
1997-08-19 17:52:48 +00:00
|
|
|
short method; /* code for chosen compression method */
|
1995-10-31 21:10:14 +00:00
|
|
|
} ccp_options;
|
|
|
|
|
|
|
|
extern fsm ccp_fsm[];
|
|
|
|
extern ccp_options ccp_wantoptions[];
|
|
|
|
extern ccp_options ccp_gotoptions[];
|
|
|
|
extern ccp_options ccp_allowoptions[];
|
|
|
|
extern ccp_options ccp_hisoptions[];
|
|
|
|
|
1997-08-19 17:52:48 +00:00
|
|
|
extern struct protent ccp_protent;
|