1*7c478bd9Sstevel@tonic-gate /* 2*7c478bd9Sstevel@tonic-gate * ccp.h - Definitions for PPP Compression Control Protocol. 3*7c478bd9Sstevel@tonic-gate * 4*7c478bd9Sstevel@tonic-gate * Copyright (c) 1994 The Australian National University. 5*7c478bd9Sstevel@tonic-gate * All rights reserved. 6*7c478bd9Sstevel@tonic-gate * 7*7c478bd9Sstevel@tonic-gate * Permission to use, copy, modify, and distribute this software and its 8*7c478bd9Sstevel@tonic-gate * documentation is hereby granted, provided that the above copyright 9*7c478bd9Sstevel@tonic-gate * notice appears in all copies. This software is provided without any 10*7c478bd9Sstevel@tonic-gate * warranty, express or implied. The Australian National University 11*7c478bd9Sstevel@tonic-gate * makes no representations about the suitability of this software for 12*7c478bd9Sstevel@tonic-gate * any purpose. 13*7c478bd9Sstevel@tonic-gate * 14*7c478bd9Sstevel@tonic-gate * IN NO EVENT SHALL THE AUSTRALIAN NATIONAL UNIVERSITY BE LIABLE TO ANY 15*7c478bd9Sstevel@tonic-gate * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES 16*7c478bd9Sstevel@tonic-gate * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF 17*7c478bd9Sstevel@tonic-gate * THE AUSTRALIAN NATIONAL UNIVERSITY HAVE BEEN ADVISED OF THE POSSIBILITY 18*7c478bd9Sstevel@tonic-gate * OF SUCH DAMAGE. 19*7c478bd9Sstevel@tonic-gate * 20*7c478bd9Sstevel@tonic-gate * THE AUSTRALIAN NATIONAL UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES, 21*7c478bd9Sstevel@tonic-gate * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 22*7c478bd9Sstevel@tonic-gate * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS 23*7c478bd9Sstevel@tonic-gate * ON AN "AS IS" BASIS, AND THE AUSTRALIAN NATIONAL UNIVERSITY HAS NO 24*7c478bd9Sstevel@tonic-gate * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, 25*7c478bd9Sstevel@tonic-gate * OR MODIFICATIONS. 26*7c478bd9Sstevel@tonic-gate * 27*7c478bd9Sstevel@tonic-gate * $Id: ccp.h,v 1.9 1998/11/07 06:59:26 paulus Exp $ 28*7c478bd9Sstevel@tonic-gate */ 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 31*7c478bd9Sstevel@tonic-gate 32*7c478bd9Sstevel@tonic-gate typedef struct ccp_options { 33*7c478bd9Sstevel@tonic-gate bool bsd_compress; /* do BSD Compress? */ 34*7c478bd9Sstevel@tonic-gate bool deflate; /* do Deflate? */ 35*7c478bd9Sstevel@tonic-gate bool predictor_1; /* do Predictor-1? */ 36*7c478bd9Sstevel@tonic-gate bool predictor_2; /* do Predictor-2? */ 37*7c478bd9Sstevel@tonic-gate bool deflate_correct; /* use correct code for deflate? */ 38*7c478bd9Sstevel@tonic-gate bool deflate_draft; /* use draft RFC code for deflate? */ 39*7c478bd9Sstevel@tonic-gate u_short bsd_bits; /* # bits/code for BSD Compress */ 40*7c478bd9Sstevel@tonic-gate u_short deflate_size; /* lg(window size) for Deflate */ 41*7c478bd9Sstevel@tonic-gate short method; /* code for chosen compression method */ 42*7c478bd9Sstevel@tonic-gate } ccp_options; 43*7c478bd9Sstevel@tonic-gate 44*7c478bd9Sstevel@tonic-gate extern fsm ccp_fsm[]; 45*7c478bd9Sstevel@tonic-gate extern ccp_options ccp_wantoptions[]; 46*7c478bd9Sstevel@tonic-gate extern ccp_options ccp_gotoptions[]; 47*7c478bd9Sstevel@tonic-gate extern ccp_options ccp_allowoptions[]; 48*7c478bd9Sstevel@tonic-gate extern ccp_options ccp_hisoptions[]; 49*7c478bd9Sstevel@tonic-gate 50*7c478bd9Sstevel@tonic-gate extern struct protent ccp_protent; 51