OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [net/] [ppp/] [current/] [include/] [ccp.h] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
//==========================================================================
2
//
3
//      include/ccp.h
4
//
5
//==========================================================================
6
// ####ECOSGPLCOPYRIGHTBEGIN####                                            
7
// -------------------------------------------                              
8
// This file is part of eCos, the Embedded Configurable Operating System.   
9
// Copyright (C) 2003 Free Software Foundation, Inc.                        
10
//
11
// eCos is free software; you can redistribute it and/or modify it under    
12
// the terms of the GNU General Public License as published by the Free     
13
// Software Foundation; either version 2 or (at your option) any later      
14
// version.                                                                 
15
//
16
// eCos is distributed in the hope that it will be useful, but WITHOUT      
17
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or    
18
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License    
19
// for more details.                                                        
20
//
21
// You should have received a copy of the GNU General Public License        
22
// along with eCos; if not, write to the Free Software Foundation, Inc.,    
23
// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.            
24
//
25
// As a special exception, if other files instantiate templates or use      
26
// macros or inline functions from this file, or you compile this file      
27
// and link it with other works to produce a work based on this file,       
28
// this file does not by itself cause the resulting work to be covered by   
29
// the GNU General Public License. However the source code for this file    
30
// must still be made available in accordance with section (3) of the GNU   
31
// General Public License v2.                                               
32
//
33
// This exception does not invalidate any other reasons why a work based    
34
// on this file might be covered by the GNU General Public License.         
35
// -------------------------------------------                              
36
// ####ECOSGPLCOPYRIGHTEND####                                              
37
// ####BSDALTCOPYRIGHTBEGIN####                                             
38
// -------------------------------------------                              
39
// Portions of this software may have been derived from FreeBSD, OpenBSD,   
40
// or other sources, and if so are covered by the appropriate copyright     
41
// and license included herein.                                             
42
// -------------------------------------------                              
43
// ####BSDALTCOPYRIGHTEND####                                               
44
//==========================================================================
45
 
46
/*
47
 * ccp.h - Definitions for PPP Compression Control Protocol.
48
 *
49
 * Copyright (c) 1994 The Australian National University.
50
 * All rights reserved.
51
 *
52
 * Permission to use, copy, modify, and distribute this software and its
53
 * documentation is hereby granted, provided that the above copyright
54
 * notice appears in all copies.  This software is provided without any
55
 * warranty, express or implied. The Australian National University
56
 * makes no representations about the suitability of this software for
57
 * any purpose.
58
 *
59
 * IN NO EVENT SHALL THE AUSTRALIAN NATIONAL UNIVERSITY BE LIABLE TO ANY
60
 * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
61
 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
62
 * THE AUSTRALIAN NATIONAL UNIVERSITY HAVE BEEN ADVISED OF THE POSSIBILITY
63
 * OF SUCH DAMAGE.
64
 *
65
 * THE AUSTRALIAN NATIONAL UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES,
66
 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
67
 * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
68
 * ON AN "AS IS" BASIS, AND THE AUSTRALIAN NATIONAL UNIVERSITY HAS NO
69
 * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
70
 * OR MODIFICATIONS.
71
 *
72
 * $FreeBSD: src/usr.sbin/pppd/ccp.h,v 1.8 1999/08/28 01:19:00 peter Exp $
73
 */
74
 
75
typedef struct ccp_options {
76
    u_int bsd_compress: 1;      /* do BSD Compress? */
77
    u_int deflate: 1;           /* do Deflate? (RFC code) */
78
    u_int baddeflate: 1;        /* do Deflate? (Magnalink!) */
79
    u_int predictor_1: 1;       /* do Predictor-1? */
80
    u_int predictor_2: 1;       /* do Predictor-2? */
81
    u_int deflate_correct: 1;   /* use correct code for deflate? */
82
    u_int deflate_draft: 1;     /* use draft RFC code for deflate? */
83
    u_short bsd_bits;           /* # bits/code for BSD Compress */
84
    u_short deflate_size;       /* lg(window size) for Deflate */
85
    u_short baddeflate_size;    /* lg(window size) for Deflate */
86
    short method;               /* code for chosen compression method */
87
} ccp_options;
88
 
89
extern fsm ccp_fsm[];
90
extern ccp_options ccp_wantoptions[];
91
extern ccp_options ccp_gotoptions[];
92
extern ccp_options ccp_allowoptions[];
93
extern ccp_options ccp_hisoptions[];
94
 
95
extern struct protent ccp_protent;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.