proto.h revision 46686
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:$ 19 */ 20 21/* 22 * Definition of protocol numbers 23 */ 24#define PROTO_IP 0x0021 /* IP */ 25#define PROTO_VJUNCOMP 0x002f /* VJ Uncompressed */ 26#define PROTO_VJCOMP 0x002d /* VJ Compressed */ 27#define PROTO_MP 0x003d /* Multilink fragment */ 28#define PROTO_ICOMPD 0x00fb /* Individual link compressed */ 29#define PROTO_COMPD 0x00fd /* Compressed datagram */ 30 31#define PROTO_COMPRESSIBLE(p) (((p) & 0xffe1) == 0x21) 32 33#define PROTO_IPCP 0x8021 34#define PROTO_ICCP 0x80fb 35#define PROTO_CCP 0x80fd 36 37#define PROTO_LCP 0xc021 38#define PROTO_PAP 0xc023 39#define PROTO_CBCP 0xc029 40#define PROTO_LQR 0xc025 41#define PROTO_CHAP 0xc223 42 43struct lcp; 44 45extern int proto_WrapperOctets(struct lcp *, u_short); 46struct mbuf *proto_Prepend(struct mbuf *, u_short, unsigned, int); 47 48extern struct layer protolayer; 49