proto.h revision 46686
146686Sbrian/*
246686Sbrian *	    Written by Toshiharu OHNO (tony-o@iij.ad.jp)
346686Sbrian *
446686Sbrian *   Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
546686Sbrian *
646686Sbrian * Redistribution and use in source and binary forms are permitted
746686Sbrian * provided that the above copyright notice and this paragraph are
846686Sbrian * duplicated in all such forms and that any documentation,
946686Sbrian * advertising materials, and other materials related to such
1046686Sbrian * distribution and use acknowledge that the software was developed
1146686Sbrian * by the Internet Initiative Japan.  The name of the
1246686Sbrian * IIJ may not be used to endorse or promote products derived
1346686Sbrian * from this software without specific prior written permission.
1446686Sbrian * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
1546686Sbrian * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
1646686Sbrian * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
1746686Sbrian *
1846686Sbrian *	$Id:$
1946686Sbrian */
2046686Sbrian
2146686Sbrian/*
2246686Sbrian *  Definition of protocol numbers
2346686Sbrian */
2446686Sbrian#define	PROTO_IP	0x0021	/* IP */
2546686Sbrian#define	PROTO_VJUNCOMP	0x002f	/* VJ Uncompressed */
2646686Sbrian#define	PROTO_VJCOMP	0x002d	/* VJ Compressed */
2746686Sbrian#define	PROTO_MP	0x003d	/* Multilink fragment */
2846686Sbrian#define	PROTO_ICOMPD	0x00fb	/* Individual link compressed */
2946686Sbrian#define	PROTO_COMPD	0x00fd	/* Compressed datagram */
3046686Sbrian
3146686Sbrian#define PROTO_COMPRESSIBLE(p) (((p) & 0xffe1) == 0x21)
3246686Sbrian
3346686Sbrian#define	PROTO_IPCP	0x8021
3446686Sbrian#define	PROTO_ICCP	0x80fb
3546686Sbrian#define	PROTO_CCP	0x80fd
3646686Sbrian
3746686Sbrian#define	PROTO_LCP	0xc021
3846686Sbrian#define	PROTO_PAP	0xc023
3946686Sbrian#define	PROTO_CBCP	0xc029
4046686Sbrian#define	PROTO_LQR	0xc025
4146686Sbrian#define	PROTO_CHAP	0xc223
4246686Sbrian
4346686Sbrianstruct lcp;
4446686Sbrian
4546686Sbrianextern int proto_WrapperOctets(struct lcp *, u_short);
4646686Sbrianstruct mbuf *proto_Prepend(struct mbuf *, u_short, unsigned, int);
4746686Sbrian
4846686Sbrianextern struct layer protolayer;
49