Update libpcap to 1.1.1.
Changes:
Thu. April 1, 2010. guy@alum.mit.edu.
Summary for 1.1.1 libpcap release
Update CHANGES to reflect more of the changes in 1.1.0.
Fix build on RHEL5.
Fix shared library build on AIX.
Thu. March 11, 2010. ken@netfunctional.ca/guy@alum.mit.edu.
Summary for 1.1.0 libpcap release
Add SocketCAN capture support
Add Myricom SNF API support
Update Endace DAG and ERF support
Add support for shared libraries on Solaris, HP-UX, and AIX
Build, install, and un-install shared libraries by default;
don't build/install shared libraries on platforms we don't support
Fix building from a directory other than the source directory
Fix compiler warnings and builds on some platforms
Update config.guess and config.sub
Support monitor mode on mac80211 devices on Linux
Fix USB memory-mapped capturing on Linux; it requires a new DLT_
value
On Linux, scan /sys/class/net for devices if we have it; scan
it, or /proc/net/dev if we don't have /sys/class/net, even if
we have getifaddrs(), as it'll find interfaces with no
addresses
Add limited support for reading pcap-ng files
Fix BPF driver-loading error handling on AIX
Support getting the full-length interface description on FreeBSD
In the lexical analyzer, free up any addrinfo structure we got back
from getaddrinfo().
Add support for BPF and libdlpi in OpenSolaris (and SXCE)
Hyphenate "link-layer" everywhere
Add /sys/kernel/debug/usb/usbmon to the list of usbmon locations
In pcap_read_linux_mmap(), if there are no frames available, call
poll() even if we're in non-blocking mode, so we pick up
errors, and check for the errors in question.
Note that poll() works on BPF devices is Snow Leopard
If an ENXIO or ENETDOWN is received, it may mean the device has
gone away. Deal with it.
For BPF, raise the default capture buffer size to from 32k to 512k
Support ps_ifdrop on Linux
Added a bunch of #ifdef directives to make wpcap.dll (WinPcap) compile
under cygwin.
Changes to Linux mmapped captures.
Fix bug where create_ring would fail for particular snaplen and
buffer size combinations
Update pcap-config so that it handles libpcap requiring
additional libraries
Add workaround for threadsafeness on Windows
Add missing mapping for DLT_ENC <-> LINKTYPE_ENC
DLT: Add DLT_CAN_SOCKETCAN
DLT: Add Solaris ipnet
Don't check for DLT_IPNET if it's not defined
Add link-layer types for Fibre Channel FC-2
Add link-layer types for Wireless HART
Add link-layer types for AOS
Add link-layer types for DECT
Autoconf fixes (AIX, HP-UX, OSF/1, Tru64 cleanups)
Install headers unconditionally, and include vlan.h/bluetooth.h if
enabled
Autoconf fixes+cleanup
Support enabling/disabling bluetooth (--{en,dis}able-bluetooth)
Support disabling SITA support (--without-sita)
Return -1 on failure to create packet ring (if supported but
creation failed)
Fix handling of 'any' device, so that it can be opened, and no longer
attempt to open it in Monitor mode
Add support for snapshot length for USB Memory-Mapped Interface
Fix configure and build on recent Linux kernels
Fix memory-mapped Linux capture to support pcap_next() and
pcap_next_ex()
Fixes for Linux USB capture
DLT: Add DLT_LINUX_EVDEV
DLT: Add DLT_GSMTAP_UM
DLT: Add DLT_GSMTAP_ABIS
2010-10-28 16:22:13 +00:00
|
|
|
/* @(#) $Header: /tcpdump/master/libpcap/ppp.h,v 1.12 2005-02-08 19:52:19 guy Exp $ (LBL) */
|
1998-09-15 19:28:10 +00:00
|
|
|
/*
|
|
|
|
* Point to Point Protocol (PPP) RFC1331
|
|
|
|
*
|
|
|
|
* Copyright 1989 by Carnegie Mellon.
|
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, and distribute this program for any
|
|
|
|
* purpose and without fee is hereby granted, provided that this copyright
|
|
|
|
* and permission notice appear on all copies and supporting documentation,
|
|
|
|
* the name of Carnegie Mellon not be used in advertising or publicity
|
|
|
|
* pertaining to distribution of the program without specific prior
|
|
|
|
* permission, and notice be given in supporting documentation that copying
|
|
|
|
* and distribution is by permission of Carnegie Mellon and Stanford
|
|
|
|
* University. Carnegie Mellon makes no representations about the
|
|
|
|
* suitability of this software for any purpose. It is provided "as is"
|
|
|
|
* without express or implied warranty.
|
|
|
|
*/
|
|
|
|
#define PPP_ADDRESS 0xff /* The address byte value */
|
|
|
|
#define PPP_CONTROL 0x03 /* The control byte value */
|
|
|
|
|
2005-05-29 17:46:52 +00:00
|
|
|
#define PPP_PPPD_IN 0x00 /* non-standard for DLT_PPP_PPPD */
|
|
|
|
#define PPP_PPPD_OUT 0x01 /* non-standard for DLT_PPP_PPPD */
|
|
|
|
|
1998-09-15 19:28:10 +00:00
|
|
|
/* Protocol numbers */
|
|
|
|
#define PPP_IP 0x0021 /* Raw IP */
|
|
|
|
#define PPP_OSI 0x0023 /* OSI Network Layer */
|
|
|
|
#define PPP_NS 0x0025 /* Xerox NS IDP */
|
|
|
|
#define PPP_DECNET 0x0027 /* DECnet Phase IV */
|
|
|
|
#define PPP_APPLE 0x0029 /* Appletalk */
|
|
|
|
#define PPP_IPX 0x002b /* Novell IPX */
|
|
|
|
#define PPP_VJC 0x002d /* Van Jacobson Compressed TCP/IP */
|
|
|
|
#define PPP_VJNC 0x002f /* Van Jacobson Uncompressed TCP/IP */
|
|
|
|
#define PPP_BRPDU 0x0031 /* Bridging PDU */
|
|
|
|
#define PPP_STII 0x0033 /* Stream Protocol (ST-II) */
|
|
|
|
#define PPP_VINES 0x0035 /* Banyan Vines */
|
2000-01-30 00:32:56 +00:00
|
|
|
#define PPP_IPV6 0x0057 /* Internet Protocol version 6 */
|
1998-09-15 19:28:10 +00:00
|
|
|
|
|
|
|
#define PPP_HELLO 0x0201 /* 802.1d Hello Packets */
|
|
|
|
#define PPP_LUXCOM 0x0231 /* Luxcom */
|
|
|
|
#define PPP_SNS 0x0233 /* Sigma Network Systems */
|
2005-05-29 17:46:52 +00:00
|
|
|
#define PPP_MPLS_UCAST 0x0281 /* rfc 3032 */
|
|
|
|
#define PPP_MPLS_MCAST 0x0283 /* rfc 3022 */
|
1998-09-15 19:28:10 +00:00
|
|
|
|
|
|
|
#define PPP_IPCP 0x8021 /* IP Control Protocol */
|
|
|
|
#define PPP_OSICP 0x8023 /* OSI Network Layer Control Protocol */
|
|
|
|
#define PPP_NSCP 0x8025 /* Xerox NS IDP Control Protocol */
|
|
|
|
#define PPP_DECNETCP 0x8027 /* DECnet Control Protocol */
|
|
|
|
#define PPP_APPLECP 0x8029 /* Appletalk Control Protocol */
|
|
|
|
#define PPP_IPXCP 0x802b /* Novell IPX Control Protocol */
|
|
|
|
#define PPP_STIICP 0x8033 /* Strean Protocol Control Protocol */
|
|
|
|
#define PPP_VINESCP 0x8035 /* Banyan Vines Control Protocol */
|
2000-01-30 00:32:56 +00:00
|
|
|
#define PPP_IPV6CP 0x8057 /* IPv6 Control Protocol */
|
2005-05-29 17:46:52 +00:00
|
|
|
#define PPP_MPLSCP 0x8281 /* rfc 3022 */
|
1998-09-15 19:28:10 +00:00
|
|
|
|
|
|
|
#define PPP_LCP 0xc021 /* Link Control Protocol */
|
|
|
|
#define PPP_PAP 0xc023 /* Password Authentication Protocol */
|
|
|
|
#define PPP_LQM 0xc025 /* Link Quality Monitoring */
|
|
|
|
#define PPP_CHAP 0xc223 /* Challenge Handshake Authentication Protocol */
|