15d9e6103SBrian Somers /* 25d9e6103SBrian Somers * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 35d9e6103SBrian Somers * 45d9e6103SBrian Somers * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd. 55d9e6103SBrian Somers * 65d9e6103SBrian Somers * Redistribution and use in source and binary forms are permitted 75d9e6103SBrian Somers * provided that the above copyright notice and this paragraph are 85d9e6103SBrian Somers * duplicated in all such forms and that any documentation, 95d9e6103SBrian Somers * advertising materials, and other materials related to such 105d9e6103SBrian Somers * distribution and use acknowledge that the software was developed 115d9e6103SBrian Somers * by the Internet Initiative Japan. The name of the 125d9e6103SBrian Somers * IIJ may not be used to endorse or promote products derived 135d9e6103SBrian Somers * from this software without specific prior written permission. 145d9e6103SBrian Somers * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 155d9e6103SBrian Somers * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 165d9e6103SBrian Somers * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 175d9e6103SBrian Somers * 185d9e6103SBrian Somers * $Id:$ 195d9e6103SBrian Somers */ 205d9e6103SBrian Somers 215d9e6103SBrian Somers /* 225d9e6103SBrian Somers * Definition of protocol numbers 235d9e6103SBrian Somers */ 245d9e6103SBrian Somers #define PROTO_IP 0x0021 /* IP */ 255d9e6103SBrian Somers #define PROTO_VJUNCOMP 0x002f /* VJ Uncompressed */ 265d9e6103SBrian Somers #define PROTO_VJCOMP 0x002d /* VJ Compressed */ 275d9e6103SBrian Somers #define PROTO_MP 0x003d /* Multilink fragment */ 285d9e6103SBrian Somers #define PROTO_ICOMPD 0x00fb /* Individual link compressed */ 295d9e6103SBrian Somers #define PROTO_COMPD 0x00fd /* Compressed datagram */ 305d9e6103SBrian Somers 315d9e6103SBrian Somers #define PROTO_COMPRESSIBLE(p) (((p) & 0xffe1) == 0x21) 325d9e6103SBrian Somers 335d9e6103SBrian Somers #define PROTO_IPCP 0x8021 345d9e6103SBrian Somers #define PROTO_ICCP 0x80fb 355d9e6103SBrian Somers #define PROTO_CCP 0x80fd 365d9e6103SBrian Somers 375d9e6103SBrian Somers #define PROTO_LCP 0xc021 385d9e6103SBrian Somers #define PROTO_PAP 0xc023 395d9e6103SBrian Somers #define PROTO_CBCP 0xc029 405d9e6103SBrian Somers #define PROTO_LQR 0xc025 415d9e6103SBrian Somers #define PROTO_CHAP 0xc223 425d9e6103SBrian Somers 435d9e6103SBrian Somers struct lcp; 445d9e6103SBrian Somers 455d9e6103SBrian Somers extern int proto_WrapperOctets(struct lcp *, u_short); 465d9e6103SBrian Somers struct mbuf *proto_Prepend(struct mbuf *, u_short, unsigned, int); 475d9e6103SBrian Somers 485d9e6103SBrian Somers extern struct layer protolayer; 49