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