sdhci - Implement ADMA2 transfer support. Keep SDMA support for now.
[dragonfly.git] / usr.sbin / pppd / ccp.h
blob8a45eba3b806b306641661b5d6ecc6408b0e5612
1 /*
2 * ccp.h - Definitions for PPP Compression Control Protocol.
4 * Copyright (c) 1994 The Australian National University.
5 * All rights reserved.
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
12 * any purpose.
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
18 * OF SUCH DAMAGE.
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,
25 * OR MODIFICATIONS.
27 * $FreeBSD: src/usr.sbin/pppd/ccp.h,v 1.8 1999/08/28 01:19:00 peter Exp $
28 * $DragonFly: src/usr.sbin/pppd/ccp.h,v 1.2 2003/06/17 04:30:01 dillon Exp $
31 typedef struct ccp_options {
32 u_int bsd_compress: 1; /* do BSD Compress? */
33 u_int deflate: 1; /* do Deflate? (RFC code) */
34 u_int baddeflate: 1; /* do Deflate? (Magnalink!) */
35 u_int predictor_1: 1; /* do Predictor-1? */
36 u_int predictor_2: 1; /* do Predictor-2? */
37 u_int deflate_correct: 1; /* use correct code for deflate? */
38 u_int deflate_draft: 1; /* use draft RFC code for deflate? */
39 u_short bsd_bits; /* # bits/code for BSD Compress */
40 u_short deflate_size; /* lg(window size) for Deflate */
41 u_short baddeflate_size; /* lg(window size) for Deflate */
42 short method; /* code for chosen compression method */
43 } ccp_options;
45 extern fsm ccp_fsm[];
46 extern ccp_options ccp_wantoptions[];
47 extern ccp_options ccp_gotoptions[];
48 extern ccp_options ccp_allowoptions[];
49 extern ccp_options ccp_hisoptions[];
51 extern struct protent ccp_protent;