ccp.h revision 21673
1/*
2 *	    Written by Toshiharu OHNO (tony-o@iij.ad.jp)
3 *
4 *   Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
5 *
6 * Redistribution and use in source and binary forms are permitted
7 * provided that the above copyright notice and this paragraph are
8 * duplicated in all such forms and that any documentation,
9 * advertising materials, and other materials related to such
10 * distribution and use acknowledge that the software was developed
11 * by the Internet Initiative Japan.  The name of the
12 * IIJ may not be used to endorse or promote products derived
13 * from this software without specific prior written permission.
14 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17 *
18 * $FreeBSD: head/usr.sbin/ppp/ccp.h 21673 1997-01-14 07:20:47Z jkh $
19 *
20 *	TODO:
21 */
22
23#ifndef _CCP_H_
24#define	_CCP_H_
25
26#define	CCP_MAXCODE	CODE_RESETACK
27
28#define	TY_OUI		0	/* OUI */
29#define	TY_PRED1	1	/* Predictor type 1 */
30#define	TY_PRED2	2	/* Predictor type 2 */
31#define	TY_PUDDLE	3	/* Puddle Jumper */
32#define	TY_HWPPC	16	/* Hewlett-Packard PPC */
33#define	TY_STAC		17	/* Stac Electronics LZS */
34#define	TY_MSPPC	18	/* Microsoft PPC */
35#define	TY_GAND		19	/* Gandalf FZA */
36#define	TY_V42BIS	20	/* V.42bis compression */
37#define	TY_BSD		21	/* BSD LZW Compress */
38
39struct ccpstate {
40  u_long  his_proto;		/* peer's compression protocol */
41  u_long  want_proto;		/* my compression protocol */
42
43  u_long  his_reject;		/* Request codes rejected by peer */
44  u_long  my_reject;		/* Request codes I have rejected */
45
46  u_long  orgout, compout;
47  u_long  orgin, compin;
48};
49
50extern struct ccpstate CcpInfo;
51
52void CcpRecvResetReq __P((struct fsm *));
53void CcpSendResetReq __P((struct fsm *));
54void CcpInput __P((struct mbuf *));
55void CcpUp __P((void));
56void CcpOpen __P((void));
57void CcpInit __P((void));
58#endif
59