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 * $Id: ccp.h,v 1.6 1997/06/09 03:27:14 brian Exp $ 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 39 struct 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 50 extern struct ccpstate CcpInfo; 51 52 void CcpRecvResetReq(struct fsm *); 53 void CcpSendResetReq(struct fsm *); 54 void CcpInput(struct mbuf *); 55 void CcpUp(void); 56 void CcpOpen(void); 57 void CcpInit(void); 58 59 #endif 60