"SfR Fresh" - the SfR Freeware/Shareware Archive 
Member "slirp-1.0.16/src/ppp/ccp.h" of archive slirp-1.0.16.tar.gz:
As a special service "SfR Fresh" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting with prefixed line numbers.
Alternatively you can here view or download the uninterpreted source code file.
That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
1 /*
2 * ccp.h - Definitions for PPP Compression Control Protocol.
3 *
4 * Copyright (c) 1994 The Australian National University.
5 * All rights reserved.
6 *
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.
13 *
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.
19 *
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.
26 *
27 * $Id: ccp.h,v 1.4 1995/04/24 06:00:54 paulus Exp $
28 */
29
30 typedef struct ccp_options {
31 u_int bsd_compress: 1; /* do BSD Compress? */
32 u_short bsd_bits; /* # bits/code for BSD Compress */
33 } ccp_options;
34
35 extern fsm ccp_fsm[];
36 extern ccp_options ccp_wantoptions[];
37 extern ccp_options ccp_gotoptions[];
38 extern ccp_options ccp_allowoptions[];
39 extern ccp_options ccp_hisoptions[];
40
41 void ccp_init __P((int unit));
42 void ccp_open __P((int unit));
43 void ccp_close __P((int unit));
44 void ccp_lowerup __P((int unit));
45 void ccp_lowerdown __P((int));
46 void ccp_input __P((int unit, u_char *pkt, int len));
47 void ccp_protrej __P((int unit));
48 int ccp_printpkt __P((u_char *pkt, int len,
49 void (*printer) __P((void *, char *, ...)),
50 void *arg));
51 void ccp_datainput __P((int unit, u_char *pkt, int len));