070f42a366
dial-on-demand, packet filtering, idle timeouts, etc). The IPX support is pretty much there but more work needs to be done in sys-bsd.c for the interface ioctls (Linux has a very different way of configuring IPX interfaces). Along the way some things have temporarily been lost due to very messy conflicts. I will recover them shortly when I can think clearer. The main one is the local:remote address override in pap-secrets and chap-secrets. Some other home-grown features (dns1,dns2) have been implemented differently. Microsoft's chap client auth hacks have been implemented. There are bound to be more rough edges... The changes for connect-max-retries doesn't fit well with the dial-on-demand code.
47 lines
1.8 KiB
C
47 lines
1.8 KiB
C
/*
|
|
* 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.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
typedef struct ccp_options {
|
|
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;
|
|
|
|
extern fsm ccp_fsm[];
|
|
extern ccp_options ccp_wantoptions[];
|
|
extern ccp_options ccp_gotoptions[];
|
|
extern ccp_options ccp_allowoptions[];
|
|
extern ccp_options ccp_hisoptions[];
|
|
|
|
extern struct protent ccp_protent;
|