ppp.h (127675) | ppp.h (146778) |
---|---|
1/* @(#) $Header: /tcpdump/master/tcpdump/ppp.h,v 1.14 2003/05/22 15:29:22 hannes Exp $ (LBL) */ | 1/* @(#) $Header: /tcpdump/master/tcpdump/ppp.h,v 1.16 2004/10/20 16:14:16 hannes Exp $ (LBL) */ |
2/* 3 * Point to Point Protocol (PPP) RFC1331 4 * 5 * Copyright 1989 by Carnegie Mellon. 6 * 7 * Permission to use, copy, modify, and distribute this program for any 8 * purpose and without fee is hereby granted, provided that this copyright 9 * and permission notice appear on all copies and supporting documentation, 10 * the name of Carnegie Mellon not be used in advertising or publicity 11 * pertaining to distribution of the program without specific prior 12 * permission, and notice be given in supporting documentation that copying 13 * and distribution is by permission of Carnegie Mellon and Stanford 14 * University. Carnegie Mellon makes no representations about the 15 * suitability of this software for any purpose. It is provided "as is" 16 * without express or implied warranty. 17 * | 2/* 3 * Point to Point Protocol (PPP) RFC1331 4 * 5 * Copyright 1989 by Carnegie Mellon. 6 * 7 * Permission to use, copy, modify, and distribute this program for any 8 * purpose and without fee is hereby granted, provided that this copyright 9 * and permission notice appear on all copies and supporting documentation, 10 * the name of Carnegie Mellon not be used in advertising or publicity 11 * pertaining to distribution of the program without specific prior 12 * permission, and notice be given in supporting documentation that copying 13 * and distribution is by permission of Carnegie Mellon and Stanford 14 * University. Carnegie Mellon makes no representations about the 15 * suitability of this software for any purpose. It is provided "as is" 16 * without express or implied warranty. 17 * |
18 * $FreeBSD: head/contrib/tcpdump/ppp.h 127675 2004-03-31 14:57:24Z bms $ | 18 * $FreeBSD: head/contrib/tcpdump/ppp.h 146778 2005-05-29 19:09:28Z sam $ |
19 */ 20#define PPP_HDRLEN 4 /* length of PPP header */ 21 22#undef PPP_ADDRESS 23#define PPP_ADDRESS 0xff /* The address byte value */ 24#undef PPP_CONTROL 25#define PPP_CONTROL 0x03 /* The control byte value */ 26 | 19 */ 20#define PPP_HDRLEN 4 /* length of PPP header */ 21 22#undef PPP_ADDRESS 23#define PPP_ADDRESS 0xff /* The address byte value */ 24#undef PPP_CONTROL 25#define PPP_CONTROL 0x03 /* The control byte value */ 26 |
27#define PPP_WITHDIRECTION_IN 0x00 /* non-standard for DLT_PPP_WITHDIRECTION */ 28#define PPP_WITHDIRECTION_OUT 0x01 /* non-standard for DLT_PPP_WITHDIRECTION */ 29 |
|
27/* Protocol numbers */ 28#ifndef PPP_IP 29#define PPP_IP 0x0021 /* Raw IP */ 30#endif 31#define PPP_OSI 0x0023 /* OSI Network Layer */ 32#define PPP_NS 0x0025 /* Xerox NS IDP */ 33#define PPP_DECNET 0x0027 /* DECnet Phase IV */ 34#define PPP_APPLE 0x0029 /* Appletalk */ 35#ifndef PPP_IPX 36#define PPP_IPX 0x002b /* Novell IPX */ 37#endif 38#define PPP_VJC 0x002d /* Van Jacobson Compressed TCP/IP */ 39#define PPP_VJNC 0x002f /* Van Jacobson Uncompressed TCP/IP */ 40#define PPP_BRPDU 0x0031 /* Bridging PDU */ 41#define PPP_STII 0x0033 /* Stream Protocol (ST-II) */ 42#define PPP_VINES 0x0035 /* Banyan Vines */ | 30/* Protocol numbers */ 31#ifndef PPP_IP 32#define PPP_IP 0x0021 /* Raw IP */ 33#endif 34#define PPP_OSI 0x0023 /* OSI Network Layer */ 35#define PPP_NS 0x0025 /* Xerox NS IDP */ 36#define PPP_DECNET 0x0027 /* DECnet Phase IV */ 37#define PPP_APPLE 0x0029 /* Appletalk */ 38#ifndef PPP_IPX 39#define PPP_IPX 0x002b /* Novell IPX */ 40#endif 41#define PPP_VJC 0x002d /* Van Jacobson Compressed TCP/IP */ 42#define PPP_VJNC 0x002f /* Van Jacobson Uncompressed TCP/IP */ 43#define PPP_BRPDU 0x0031 /* Bridging PDU */ 44#define PPP_STII 0x0033 /* Stream Protocol (ST-II) */ 45#define PPP_VINES 0x0035 /* Banyan Vines */ |
46#define PPP_ML 0x003d /* Multi-Link PPP */ |
|
43#define PPP_IPV6 0x0057 /* IPv6 */ 44#define PPP_COMP 0x00fd /* Compressed Datagram */ 45 46#define PPP_HELLO 0x0201 /* 802.1d Hello Packets */ 47#define PPP_LUXCOM 0x0231 /* Luxcom */ 48#define PPP_SNS 0x0233 /* Sigma Network Systems */ 49#define PPP_MPLS_UCAST 0x0281 /* rfc 3032 */ 50#define PPP_MPLS_MCAST 0x0283 /* rfc 3022 */ --- 12 unchanged lines hidden (view full) --- 63 64#define PPP_LCP 0xc021 /* Link Control Protocol */ 65#define PPP_PAP 0xc023 /* Password Authentication Protocol */ 66#define PPP_LQM 0xc025 /* Link Quality Monitoring */ 67#define PPP_SPAP 0xc027 68#define PPP_CHAP 0xc223 /* Challenge Handshake Authentication Protocol */ 69#define PPP_BACP 0xc02b /* Bandwidth Allocation Control Protocol */ 70#define PPP_BAP 0xc02d /* BAP */ | 47#define PPP_IPV6 0x0057 /* IPv6 */ 48#define PPP_COMP 0x00fd /* Compressed Datagram */ 49 50#define PPP_HELLO 0x0201 /* 802.1d Hello Packets */ 51#define PPP_LUXCOM 0x0231 /* Luxcom */ 52#define PPP_SNS 0x0233 /* Sigma Network Systems */ 53#define PPP_MPLS_UCAST 0x0281 /* rfc 3032 */ 54#define PPP_MPLS_MCAST 0x0283 /* rfc 3022 */ --- 12 unchanged lines hidden (view full) --- 67 68#define PPP_LCP 0xc021 /* Link Control Protocol */ 69#define PPP_PAP 0xc023 /* Password Authentication Protocol */ 70#define PPP_LQM 0xc025 /* Link Quality Monitoring */ 71#define PPP_SPAP 0xc027 72#define PPP_CHAP 0xc223 /* Challenge Handshake Authentication Protocol */ 73#define PPP_BACP 0xc02b /* Bandwidth Allocation Control Protocol */ 74#define PPP_BAP 0xc02d /* BAP */ |
71#define PPP_MP 0xc03d /* Multi-Link */ | 75#define PPP_MPCP 0xc03d /* Multi-Link */ |
72#define PPP_SPAP_OLD 0xc123 73#define PPP_EAP 0xc227 74 75extern struct tok ppptype2str[]; | 76#define PPP_SPAP_OLD 0xc123 77#define PPP_EAP 0xc227 78 79extern struct tok ppptype2str[]; |