X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fccp.h;h=1f15345bc9282652264805d358497ef56ddc3ea9;hp=8c2cc6d42ab4d6e225510e155970b6ba486591ce;hb=88890fc13f9b346db647c882b376926686177112;hpb=045d19436a083f9c180993ff35a68597af65bc12 diff --git a/pppd/ccp.h b/pppd/ccp.h index 8c2cc6d..1f15345 100644 --- a/pppd/ccp.h +++ b/pppd/ccp.h @@ -1,42 +1,46 @@ /* * ccp.h - Definitions for PPP Compression Control Protocol. * - * $Id: ccp.h,v 1.1 1994/08/11 01:44:32 paulus Exp $ - */ - -/* - * Compression algorithms = configuration options - */ -#define CI_BSD_COMPRESS 0x21 /* BSD Compress */ - -/* - * Extra codes for CCP. + * 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. + * + * $Id: ccp.h,v 1.7 1996/07/01 01:11:49 paulus Exp $ */ -#define RESETREQ 14 -#define RESETACK 15 typedef struct ccp_options { - u_short bsd_compress: 1; /* do BSD Compress? */ + u_int bsd_compress: 1; /* do BSD Compress? */ + u_int deflate: 1; /* do Deflate? */ + u_int predictor_1: 1; /* do Predictor-1? */ + u_int predictor_2: 1; /* do Predictor-2? */ u_short bsd_bits; /* # bits/code for BSD Compress */ + u_short deflate_size; /* lg(window size) for Deflate */ + short method; /* code for chosen compression method */ } ccp_options; -#define MIN_BSD_BITS 9 -#define MAX_BSD_BITS 15 - extern fsm ccp_fsm[]; extern ccp_options ccp_wantoptions[]; extern ccp_options ccp_gotoptions[]; extern ccp_options ccp_allowoptions[]; extern ccp_options ccp_hisoptions[]; -void ccp_init __ARGS((int unit)); -void ccp_open __ARGS((int unit)); -void ccp_close __ARGS((int unit)); -void ccp_lowerup __ARGS((int unit)); -void ccp_lowerdown __ARGS((int)); -void ccp_input __ARGS((int unit, u_char *pkt, int len)); -void ccp_protrej __ARGS((int unit)); -int ccp_printpkt __ARGS((u_char *pkt, int len, - void (*printer) __ARGS((void *, char *, ...)), - void *arg)); -void ccp_datainput __ARGS((int unit, u_char *pkt, int len)); +extern struct protent ccp_protent;