1190207Srpaulo/* @(#) $Header: /tcpdump/master/tcpdump/ppp.h,v 1.16 2004-10-20 16:14:16 hannes Exp $ (LBL) */
239297Sfenner/*
339297Sfenner * Point to Point Protocol (PPP) RFC1331
439297Sfenner *
539297Sfenner * Copyright 1989 by Carnegie Mellon.
639297Sfenner *
739297Sfenner * Permission to use, copy, modify, and distribute this program for any
839297Sfenner * purpose and without fee is hereby granted, provided that this copyright
939297Sfenner * and permission notice appear on all copies and supporting documentation,
1039297Sfenner * the name of Carnegie Mellon not be used in advertising or publicity
1139297Sfenner * pertaining to distribution of the program without specific prior
1239297Sfenner * permission, and notice be given in supporting documentation that copying
1339297Sfenner * and distribution is by permission of Carnegie Mellon and Stanford
1439297Sfenner * University.  Carnegie Mellon makes no representations about the
1539297Sfenner * suitability of this software for any purpose.  It is provided "as is"
1639297Sfenner * without express or implied warranty.
1753146Sbrian *
1853146Sbrian * $FreeBSD$
1939297Sfenner */
2075118Sfenner#define PPP_HDRLEN	4	/* length of PPP header */
2175118Sfenner
2239297Sfenner#define PPP_ADDRESS	0xff	/* The address byte value */
2339297Sfenner#define PPP_CONTROL	0x03	/* The control byte value */
2439297Sfenner
25146778Ssam#define PPP_WITHDIRECTION_IN  0x00 /* non-standard for DLT_PPP_WITHDIRECTION */
26146778Ssam#define PPP_WITHDIRECTION_OUT 0x01 /* non-standard for DLT_PPP_WITHDIRECTION */
27146778Ssam
2839297Sfenner/* Protocol numbers */
2939297Sfenner#define PPP_IP		0x0021	/* Raw IP */
3039297Sfenner#define PPP_OSI		0x0023	/* OSI Network Layer */
3139297Sfenner#define PPP_NS		0x0025	/* Xerox NS IDP */
3239297Sfenner#define PPP_DECNET	0x0027	/* DECnet Phase IV */
3339297Sfenner#define PPP_APPLE	0x0029	/* Appletalk */
3439297Sfenner#define PPP_IPX		0x002b	/* Novell IPX */
3539297Sfenner#define PPP_VJC		0x002d	/* Van Jacobson Compressed TCP/IP */
3639297Sfenner#define PPP_VJNC	0x002f	/* Van Jacobson Uncompressed TCP/IP */
3739297Sfenner#define PPP_BRPDU	0x0031	/* Bridging PDU */
3839297Sfenner#define PPP_STII	0x0033	/* Stream Protocol (ST-II) */
3939297Sfenner#define PPP_VINES	0x0035	/* Banyan Vines */
40146778Ssam#define PPP_ML          0x003d  /* Multi-Link PPP */
4175118Sfenner#define PPP_IPV6	0x0057	/* IPv6 */
4298527Sfenner#define	PPP_COMP	0x00fd	/* Compressed Datagram */
4339297Sfenner
4439297Sfenner#define PPP_HELLO	0x0201	/* 802.1d Hello Packets */
4539297Sfenner#define PPP_LUXCOM	0x0231	/* Luxcom */
4639297Sfenner#define PPP_SNS		0x0233	/* Sigma Network Systems */
47127675Sbms#define PPP_MPLS_UCAST  0x0281  /* rfc 3032 */
48127675Sbms#define PPP_MPLS_MCAST  0x0283  /* rfc 3022 */
4939297Sfenner
5039297Sfenner#define PPP_IPCP	0x8021	/* IP Control Protocol */
5139297Sfenner#define PPP_OSICP	0x8023	/* OSI Network Layer Control Protocol */
5239297Sfenner#define PPP_NSCP	0x8025	/* Xerox NS IDP Control Protocol */
5339297Sfenner#define PPP_DECNETCP	0x8027	/* DECnet Control Protocol */
5439297Sfenner#define PPP_APPLECP	0x8029	/* Appletalk Control Protocol */
5539297Sfenner#define PPP_IPXCP	0x802b	/* Novell IPX Control Protocol */
5639297Sfenner#define PPP_STIICP	0x8033	/* Strean Protocol Control Protocol */
5739297Sfenner#define PPP_VINESCP	0x8035	/* Banyan Vines Control Protocol */
5875118Sfenner#define PPP_IPV6CP	0x8057	/* IPv6 Control Protocol */
5975118Sfenner#define PPP_CCP		0x80fd	/* Compress Control Protocol */
60127675Sbms#define PPP_MPLSCP      0x8281  /* rfc 3022 */
6139297Sfenner
6239297Sfenner#define PPP_LCP		0xc021	/* Link Control Protocol */
6339297Sfenner#define PPP_PAP		0xc023	/* Password Authentication Protocol */
6439297Sfenner#define PPP_LQM		0xc025	/* Link Quality Monitoring */
65127675Sbms#define PPP_SPAP        0xc027
6639297Sfenner#define PPP_CHAP	0xc223	/* Challenge Handshake Authentication Protocol */
6775118Sfenner#define PPP_BACP	0xc02b	/* Bandwidth Allocation Control Protocol */
6875118Sfenner#define PPP_BAP		0xc02d	/* BAP */
69146778Ssam#define PPP_MPCP		0xc03d	/* Multi-Link */
70127675Sbms#define PPP_SPAP_OLD    0xc123
71127675Sbms#define PPP_EAP         0xc227
7275118Sfenner
7356896Sfennerextern struct tok ppptype2str[];
74