xref: /dflybsd-src/contrib/libpcap/ppp.h (revision 97a9217a80442061add4f20a612a3a5dd2cdb0d4)
1*1077d0bdSPeter Avalos /*
2*1077d0bdSPeter Avalos  * Point to Point Protocol (PPP) RFC1331
3*1077d0bdSPeter Avalos  *
4*1077d0bdSPeter Avalos  * Copyright 1989 by Carnegie Mellon.
5*1077d0bdSPeter Avalos  *
6*1077d0bdSPeter Avalos  * Permission to use, copy, modify, and distribute this program for any
7*1077d0bdSPeter Avalos  * purpose and without fee is hereby granted, provided that this copyright
8*1077d0bdSPeter Avalos  * and permission notice appear on all copies and supporting documentation,
9*1077d0bdSPeter Avalos  * the name of Carnegie Mellon not be used in advertising or publicity
10*1077d0bdSPeter Avalos  * pertaining to distribution of the program without specific prior
11*1077d0bdSPeter Avalos  * permission, and notice be given in supporting documentation that copying
12*1077d0bdSPeter Avalos  * and distribution is by permission of Carnegie Mellon and Stanford
13*1077d0bdSPeter Avalos  * University.  Carnegie Mellon makes no representations about the
14*1077d0bdSPeter Avalos  * suitability of this software for any purpose.  It is provided "as is"
15*1077d0bdSPeter Avalos  * without express or implied warranty.
16*1077d0bdSPeter Avalos  */
17*1077d0bdSPeter Avalos #define PPP_ADDRESS	0xff	/* The address byte value */
18*1077d0bdSPeter Avalos #define PPP_CONTROL	0x03	/* The control byte value */
19*1077d0bdSPeter Avalos 
20*1077d0bdSPeter Avalos #define PPP_PPPD_IN	0x00	/* non-standard for DLT_PPP_PPPD */
21*1077d0bdSPeter Avalos #define PPP_PPPD_OUT	0x01	/* non-standard for DLT_PPP_PPPD */
22*1077d0bdSPeter Avalos 
23*1077d0bdSPeter Avalos /* Protocol numbers */
24*1077d0bdSPeter Avalos #define PPP_IP		0x0021	/* Raw IP */
25*1077d0bdSPeter Avalos #define PPP_OSI		0x0023	/* OSI Network Layer */
26*1077d0bdSPeter Avalos #define PPP_NS		0x0025	/* Xerox NS IDP */
27*1077d0bdSPeter Avalos #define PPP_DECNET	0x0027	/* DECnet Phase IV */
28*1077d0bdSPeter Avalos #define PPP_APPLE	0x0029	/* Appletalk */
29*1077d0bdSPeter Avalos #define PPP_IPX		0x002b	/* Novell IPX */
30*1077d0bdSPeter Avalos #define PPP_VJC		0x002d	/* Van Jacobson Compressed TCP/IP */
31*1077d0bdSPeter Avalos #define PPP_VJNC	0x002f	/* Van Jacobson Uncompressed TCP/IP */
32*1077d0bdSPeter Avalos #define PPP_BRPDU	0x0031	/* Bridging PDU */
33*1077d0bdSPeter Avalos #define PPP_STII	0x0033	/* Stream Protocol (ST-II) */
34*1077d0bdSPeter Avalos #define PPP_VINES	0x0035	/* Banyan Vines */
35*1077d0bdSPeter Avalos #define PPP_IPV6	0x0057	/* Internet Protocol version 6 */
36*1077d0bdSPeter Avalos 
37*1077d0bdSPeter Avalos #define PPP_HELLO	0x0201	/* 802.1d Hello Packets */
38*1077d0bdSPeter Avalos #define PPP_LUXCOM	0x0231	/* Luxcom */
39*1077d0bdSPeter Avalos #define PPP_SNS		0x0233	/* Sigma Network Systems */
40*1077d0bdSPeter Avalos #define PPP_MPLS_UCAST  0x0281  /* rfc 3032 */
41*1077d0bdSPeter Avalos #define PPP_MPLS_MCAST  0x0283  /* rfc 3022 */
42*1077d0bdSPeter Avalos 
43*1077d0bdSPeter Avalos #define PPP_IPCP	0x8021	/* IP Control Protocol */
44*1077d0bdSPeter Avalos #define PPP_OSICP	0x8023	/* OSI Network Layer Control Protocol */
45*1077d0bdSPeter Avalos #define PPP_NSCP	0x8025	/* Xerox NS IDP Control Protocol */
46*1077d0bdSPeter Avalos #define PPP_DECNETCP	0x8027	/* DECnet Control Protocol */
47*1077d0bdSPeter Avalos #define PPP_APPLECP	0x8029	/* Appletalk Control Protocol */
48*1077d0bdSPeter Avalos #define PPP_IPXCP	0x802b	/* Novell IPX Control Protocol */
49*1077d0bdSPeter Avalos #define PPP_STIICP	0x8033	/* Strean Protocol Control Protocol */
50*1077d0bdSPeter Avalos #define PPP_VINESCP	0x8035	/* Banyan Vines Control Protocol */
51*1077d0bdSPeter Avalos #define PPP_IPV6CP	0x8057	/* IPv6 Control Protocol */
52*1077d0bdSPeter Avalos #define PPP_MPLSCP      0x8281  /* rfc 3022 */
53*1077d0bdSPeter Avalos 
54*1077d0bdSPeter Avalos #define PPP_LCP		0xc021	/* Link Control Protocol */
55*1077d0bdSPeter Avalos #define PPP_PAP		0xc023	/* Password Authentication Protocol */
56*1077d0bdSPeter Avalos #define PPP_LQM		0xc025	/* Link Quality Monitoring */
57*1077d0bdSPeter Avalos #define PPP_CHAP	0xc223	/* Challenge Handshake Authentication Protocol */
58