ppp.h revision 146768
1178825Sdfr/* @(#) $Header: /tcpdump/master/libpcap/ppp.h,v 1.12 2005/02/08 19:52:19 guy Exp $ (LBL) */
2178825Sdfr/*
3178825Sdfr * Point to Point Protocol (PPP) RFC1331
4178825Sdfr *
5178825Sdfr * Copyright 1989 by Carnegie Mellon.
6233294Sstas *
7178825Sdfr * Permission to use, copy, modify, and distribute this program for any
8178825Sdfr * purpose and without fee is hereby granted, provided that this copyright
9178825Sdfr * and permission notice appear on all copies and supporting documentation,
10233294Sstas * the name of Carnegie Mellon not be used in advertising or publicity
11178825Sdfr * pertaining to distribution of the program without specific prior
12178825Sdfr * permission, and notice be given in supporting documentation that copying
13233294Sstas * and distribution is by permission of Carnegie Mellon and Stanford
14178825Sdfr * University.  Carnegie Mellon makes no representations about the
15178825Sdfr * suitability of this software for any purpose.  It is provided "as is"
16178825Sdfr * without express or implied warranty.
17233294Sstas */
18178825Sdfr#define PPP_ADDRESS	0xff	/* The address byte value */
19178825Sdfr#define PPP_CONTROL	0x03	/* The control byte value */
20178825Sdfr
21233294Sstas#define PPP_PPPD_IN	0x00	/* non-standard for DLT_PPP_PPPD */
22178825Sdfr#define PPP_PPPD_OUT	0x01	/* non-standard for DLT_PPP_PPPD */
23178825Sdfr
24178825Sdfr/* Protocol numbers */
25178825Sdfr#define PPP_IP		0x0021	/* Raw IP */
26178825Sdfr#define PPP_OSI		0x0023	/* OSI Network Layer */
27178825Sdfr#define PPP_NS		0x0025	/* Xerox NS IDP */
28178825Sdfr#define PPP_DECNET	0x0027	/* DECnet Phase IV */
29178825Sdfr#define PPP_APPLE	0x0029	/* Appletalk */
30178825Sdfr#define PPP_IPX		0x002b	/* Novell IPX */
31178825Sdfr#define PPP_VJC		0x002d	/* Van Jacobson Compressed TCP/IP */
32178825Sdfr#define PPP_VJNC	0x002f	/* Van Jacobson Uncompressed TCP/IP */
33178825Sdfr#define PPP_BRPDU	0x0031	/* Bridging PDU */
34178825Sdfr#define PPP_STII	0x0033	/* Stream Protocol (ST-II) */
35178825Sdfr#define PPP_VINES	0x0035	/* Banyan Vines */
36178825Sdfr#define PPP_IPV6	0x0057	/* Internet Protocol version 6 */
37178825Sdfr
38178825Sdfr#define PPP_HELLO	0x0201	/* 802.1d Hello Packets */
39178825Sdfr#define PPP_LUXCOM	0x0231	/* Luxcom */
40178825Sdfr#define PPP_SNS		0x0233	/* Sigma Network Systems */
41178825Sdfr#define PPP_MPLS_UCAST  0x0281  /* rfc 3032 */
42178825Sdfr#define PPP_MPLS_MCAST  0x0283  /* rfc 3022 */
43178825Sdfr
44178825Sdfr#define PPP_IPCP	0x8021	/* IP Control Protocol */
45178825Sdfr#define PPP_OSICP	0x8023	/* OSI Network Layer Control Protocol */
46178825Sdfr#define PPP_NSCP	0x8025	/* Xerox NS IDP Control Protocol */
47178825Sdfr#define PPP_DECNETCP	0x8027	/* DECnet Control Protocol */
48178825Sdfr#define PPP_APPLECP	0x8029	/* Appletalk Control Protocol */
49178825Sdfr#define PPP_IPXCP	0x802b	/* Novell IPX Control Protocol */
50178825Sdfr#define PPP_STIICP	0x8033	/* Strean Protocol Control Protocol */
51178825Sdfr#define PPP_VINESCP	0x8035	/* Banyan Vines Control Protocol */
52178825Sdfr#define PPP_IPV6CP	0x8057	/* IPv6 Control Protocol */
53178825Sdfr#define PPP_MPLSCP      0x8281  /* rfc 3022 */
54178825Sdfr
55178825Sdfr#define PPP_LCP		0xc021	/* Link Control Protocol */
56178825Sdfr#define PPP_PAP		0xc023	/* Password Authentication Protocol */
57178825Sdfr#define PPP_LQM		0xc025	/* Link Quality Monitoring */
58178825Sdfr#define PPP_CHAP	0xc223	/* Challenge Handshake Authentication Protocol */
59178825Sdfr