1*d1e87331SXin LIFriday December 9, 2011. guy@alum.mit.edu. 2*d1e87331SXin LISummary for 1.2.1 libpcap release 3*d1e87331SXin LI Update README file. 4*d1e87331SXin LI Fix typoes in README.linux file. 5*d1e87331SXin LI Clean up some compiler warnings. 6*d1e87331SXin LI Fix Linux compile problems and tests for ethtool.h. 7*d1e87331SXin LI Treat Debian/kFreeBSD and GNU/Hurd as systems with GNU 8*d1e87331SXin LI toolchains. 9*d1e87331SXin LI Support 802.1 QinQ as a form of VLAN in filters. 10*d1e87331SXin LI Treat "carp" as equivalent to "vrrp" in filters. 11*d1e87331SXin LI Fix code generated for "ip6 protochain". 12*d1e87331SXin LI Add some new link-layer header types. 13*d1e87331SXin LI Support capturing NetFilter log messages on Linux. 14*d1e87331SXin LI Clean up some error messages. 15*d1e87331SXin LI Turn off monitor mode on exit for mac80211 interfaces on Linux. 16*d1e87331SXin LI Fix problems turning monitor mode on for non-mac80211 interfaces 17*d1e87331SXin LI on Linux. 18*d1e87331SXin LI Properly fail if /sys/class/net or /proc/net/dev exist but can't 19*d1e87331SXin LI be opened. 20*d1e87331SXin LI Fail if pcap_activate() is called on an already-activated 21*d1e87331SXin LI pcap_t, and add a test program for that. 22*d1e87331SXin LI Fix filtering in pcap-ng files. 23*d1e87331SXin LI Don't build for PowerPC on Mac OS X Lion. 24*d1e87331SXin LI Simplify handling of new DLT_/LINKTYPE_ values. 25*d1e87331SXin LI Expand pcap(3PCAP) man page. 26*d1e87331SXin LI 27*d1e87331SXin LISunday July 24, 2011. mcr@sandelman.ca. 28*d1e87331SXin LISummary for 1.2 libpcap release 29*d1e87331SXin LI All of the changes listed below for 1.1.1 and 1.1.2. 30*d1e87331SXin LI Changes to error handling for pcap_findalldevs(). 31*d1e87331SXin LI Fix the calculation of the frame size in memory-mapped captures. 32*d1e87331SXin LI Add a link-layer header type for STANAG 5066 D_PDUs. 33*d1e87331SXin LI Add a link-layer type for a variant of 3GPP TS 27.010. 34*d1e87331SXin LI Noted real nature of LINKTYPE_ARCNET. 35*d1e87331SXin LI Add a link-layer type for DVB-CI. 36*d1e87331SXin LI Fix configure-script discovery of VLAN acceleration support. 37*d1e87331SXin LI see http://netoptimizer.blogspot.com/2010/09/tcpdump-vs-vlan-tags.html 38*d1e87331SXin LI Linux, HP-UX, AIX, NetBSD and OpenBSD compilation/conflict fixes. 39*d1e87331SXin LI Protect against including AIX 5.x's <net/bpf.h> having been included. 40*d1e87331SXin LI Add DLT_DBUS, for raw D-Bus messages. 41*d1e87331SXin LI Treat either EPERM or EACCES as "no soup for you". 42*d1e87331SXin LI Changes to permissions on DLPI systems. 43*d1e87331SXin LI Add DLT_IEEE802_15_4_NOFCS for 802.15.4 interfaces. 44*d1e87331SXin LI 45*d1e87331SXin LIFri. August 6, 2010. guy@alum.mit.edu. 46*d1e87331SXin LISummary for 1.1.2 libpcap release 47*d1e87331SXin LI Return DLT_ values, not raw LINKTYPE_ values from 48*d1e87331SXin LI pcap_datalink() when reading pcap-ng files 49*d1e87331SXin LI Add support for "wlan ra" and "wlan ta", to check the RA and TA 50*d1e87331SXin LI of WLAN frames that have them 51*d1e87331SXin LI Don't crash if "wlan addr{1,2,3,4}" are used without 802.11 52*d1e87331SXin LI headers 53*d1e87331SXin LI Do filtering on USB and Bluetooth capturing 54*d1e87331SXin LI On FreeBSD/SPARC64, use -fPIC - it's apparently necessary 55*d1e87331SXin LI Check for valid port numbers (fit in a 16-bit unsigned field) in 56*d1e87331SXin LI "port" filters 57*d1e87331SXin LI Reject attempts to put savefiles into non-blocking mode 58*d1e87331SXin LI Check for "no such device" for the "get the media types" ioctl 59*d1e87331SXin LI in *BSD 60*d1e87331SXin LI Improve error messages from bpf_open(), and let it do the error 61*d1e87331SXin LI handling 62*d1e87331SXin LI Return more specific errors from pcap_can_set_rfmon(); fix 63*d1e87331SXin LI documentation 64*d1e87331SXin LI Update description fetching code for FreeBSD, fix code for 65*d1e87331SXin LI OpenBSD 66*d1e87331SXin LI Ignore /sys/net/dev files if we get ENODEV for them, not just 67*d1e87331SXin LI ENXIO; fixes handling of bonding devices on Linux 68*d1e87331SXin LI Fix check for a constant 0 argument to BPF_DIV 69*d1e87331SXin LI Use the right version of ar when cross-building 70*d1e87331SXin LI Free any filter set on a savefile when the savefile is closed 71*d1e87331SXin LI Include the CFLAGS setting when configure was run in the 72*d1e87331SXin LI compiler flags 73*d1e87331SXin LI Add support for 802.15.4 interfaces on Linux 74*d1e87331SXin LI 75a0ee43a1SRui PauloThu. April 1, 2010. guy@alum.mit.edu. 76a0ee43a1SRui PauloSummary for 1.1.1 libpcap release 77a0ee43a1SRui Paulo Update CHANGES to reflect more of the changes in 1.1.0. 78a0ee43a1SRui Paulo Fix build on RHEL5. 79a0ee43a1SRui Paulo Fix shared library build on AIX. 80a0ee43a1SRui Paulo 81a0ee43a1SRui PauloThu. March 11, 2010. ken@netfunctional.ca/guy@alum.mit.edu. 82a0ee43a1SRui PauloSummary for 1.1.0 libpcap release 83a0ee43a1SRui Paulo Add SocketCAN capture support 84a0ee43a1SRui Paulo Add Myricom SNF API support 85a0ee43a1SRui Paulo Update Endace DAG and ERF support 86a0ee43a1SRui Paulo Add support for shared libraries on Solaris, HP-UX, and AIX 87a0ee43a1SRui Paulo Build, install, and un-install shared libraries by default; 88a0ee43a1SRui Paulo don't build/install shared libraries on platforms we don't support 89a0ee43a1SRui Paulo Fix building from a directory other than the source directory 90a0ee43a1SRui Paulo Fix compiler warnings and builds on some platforms 91a0ee43a1SRui Paulo Update config.guess and config.sub 92a0ee43a1SRui Paulo Support monitor mode on mac80211 devices on Linux 93a0ee43a1SRui Paulo Fix USB memory-mapped capturing on Linux; it requires a new DLT_ 94a0ee43a1SRui Paulo value 95a0ee43a1SRui Paulo On Linux, scan /sys/class/net for devices if we have it; scan 96a0ee43a1SRui Paulo it, or /proc/net/dev if we don't have /sys/class/net, even if 97a0ee43a1SRui Paulo we have getifaddrs(), as it'll find interfaces with no 98a0ee43a1SRui Paulo addresses 99a0ee43a1SRui Paulo Add limited support for reading pcap-ng files 100a0ee43a1SRui Paulo Fix BPF driver-loading error handling on AIX 101a0ee43a1SRui Paulo Support getting the full-length interface description on FreeBSD 102a0ee43a1SRui Paulo In the lexical analyzer, free up any addrinfo structure we got back 103a0ee43a1SRui Paulo from getaddrinfo(). 104a0ee43a1SRui Paulo Add support for BPF and libdlpi in OpenSolaris (and SXCE) 105a0ee43a1SRui Paulo Hyphenate "link-layer" everywhere 106a0ee43a1SRui Paulo Add /sys/kernel/debug/usb/usbmon to the list of usbmon locations 107a0ee43a1SRui Paulo In pcap_read_linux_mmap(), if there are no frames available, call 108a0ee43a1SRui Paulo poll() even if we're in non-blocking mode, so we pick up 109a0ee43a1SRui Paulo errors, and check for the errors in question. 110a0ee43a1SRui Paulo Note that poll() works on BPF devices is Snow Leopard 111a0ee43a1SRui Paulo If an ENXIO or ENETDOWN is received, it may mean the device has 112a0ee43a1SRui Paulo gone away. Deal with it. 113a0ee43a1SRui Paulo For BPF, raise the default capture buffer size to from 32k to 512k 114a0ee43a1SRui Paulo Support ps_ifdrop on Linux 115a0ee43a1SRui Paulo Added a bunch of #ifdef directives to make wpcap.dll (WinPcap) compile 116a0ee43a1SRui Paulo under cygwin. 117a0ee43a1SRui Paulo Changes to Linux mmapped captures. 118a0ee43a1SRui Paulo Fix bug where create_ring would fail for particular snaplen and 119a0ee43a1SRui Paulo buffer size combinations 120a0ee43a1SRui Paulo Update pcap-config so that it handles libpcap requiring 121a0ee43a1SRui Paulo additional libraries 122a0ee43a1SRui Paulo Add workaround for threadsafeness on Windows 123a0ee43a1SRui Paulo Add missing mapping for DLT_ENC <-> LINKTYPE_ENC 124a0ee43a1SRui Paulo DLT: Add DLT_CAN_SOCKETCAN 125a0ee43a1SRui Paulo DLT: Add Solaris ipnet 126a0ee43a1SRui Paulo Don't check for DLT_IPNET if it's not defined 127a0ee43a1SRui Paulo Add link-layer types for Fibre Channel FC-2 128a0ee43a1SRui Paulo Add link-layer types for Wireless HART 129a0ee43a1SRui Paulo Add link-layer types for AOS 130a0ee43a1SRui Paulo Add link-layer types for DECT 131a0ee43a1SRui Paulo Autoconf fixes (AIX, HP-UX, OSF/1, Tru64 cleanups) 132a0ee43a1SRui Paulo Install headers unconditionally, and include vlan.h/bluetooth.h if 133a0ee43a1SRui Paulo enabled 134a0ee43a1SRui Paulo Autoconf fixes+cleanup 135a0ee43a1SRui Paulo Support enabling/disabling bluetooth (--{en,dis}able-bluetooth) 136a0ee43a1SRui Paulo Support disabling SITA support (--without-sita) 137a0ee43a1SRui Paulo Return -1 on failure to create packet ring (if supported but 138a0ee43a1SRui Paulo creation failed) 139a0ee43a1SRui Paulo Fix handling of 'any' device, so that it can be opened, and no longer 140a0ee43a1SRui Paulo attempt to open it in Monitor mode 141a0ee43a1SRui Paulo Add support for snapshot length for USB Memory-Mapped Interface 142a0ee43a1SRui Paulo Fix configure and build on recent Linux kernels 143a0ee43a1SRui Paulo Fix memory-mapped Linux capture to support pcap_next() and 144a0ee43a1SRui Paulo pcap_next_ex() 145a0ee43a1SRui Paulo Fixes for Linux USB capture 146a0ee43a1SRui Paulo DLT: Add DLT_LINUX_EVDEV 147a0ee43a1SRui Paulo DLT: Add DLT_GSMTAP_UM 148a0ee43a1SRui Paulo DLT: Add DLT_GSMTAP_ABIS 149a8e07101SRui Paulo 150a8e07101SRui PauloMon. October 27, 2008. ken@netfunctional.ca. Summary for 1.0.0 libpcap release 151a8e07101SRui Paulo Compile with IPv6 support by default 152a8e07101SRui Paulo Compile with large file support on by default 153a8e07101SRui Paulo Add pcap-config script, which deals with -I/-L flags for compiling 154a8e07101SRui Paulo DLT: Add IPMB 155a8e07101SRui Paulo DLT: Add LAPD 156a8e07101SRui Paulo DLT: Add AX25 (AX.25 w/KISS header) 157a8e07101SRui Paulo DLT: Add JUNIPER_ST 158a8e07101SRui Paulo 802.15.4 support 159a8e07101SRui Paulo Variable length 802.11 header support 160a8e07101SRui Paulo X2E data type support 161a8e07101SRui Paulo SITA ACN Interface support - see README.sita 162a0ee43a1SRui Paulo Support for memory-mapped capture on Linux 163a8e07101SRui Paulo Support for zerocopy BPF on platforms that support it 164a0ee43a1SRui Paulo Support for setting buffer size when opening devices 165a0ee43a1SRui Paulo Support for setting monitor mode when opening 802.11 devices 166a8e07101SRui Paulo Better support for dealing with VLAN tagging/stripping on Linux 167a8e07101SRui Paulo Fix dynamic library support on OSX 168a8e07101SRui Paulo Return PCAP_ERROR_IFACE_NOT_UP if the interface isn't 'UP', so applications 169a8e07101SRui Paulo can print better diagnostic information 170a8e07101SRui Paulo Return PCAP_ERROR_PERM_DENIED if we don't have permission to open a device, so 171a8e07101SRui Paulo applications can tell the user they need to go play with permissions 172a8e07101SRui Paulo On Linux, ignore ENETDOWN so we can continue to capture packets if the 173a8e07101SRui Paulo interface goes down and comes back up again. 174a8e07101SRui Paulo On Linux, support new tpacket frame headers (2.6.27+) 175a0ee43a1SRui Paulo On Mac OS X, add scripts for changing permissions on /dev/bpf* and launchd plist 176a8e07101SRui Paulo On Solaris, support 'passive mode' on systems that support it 177a8e07101SRui Paulo Fixes to autoconf and general build environment 178a8e07101SRui Paulo Man page reorganization + cleanup 179a8e07101SRui Paulo Autogenerate VERSION numbers better 180ef96d74fSMax Laier 181ef96d74fSMax LaierMon. September 10, 2007. ken@xelerance.com. Summary for 0.9.8 libpcap release 182ef96d74fSMax Laier Change build process to put public libpcap headers into pcap subir 183ef96d74fSMax Laier DLT: Add value for IPMI IPMB packets 184ef96d74fSMax Laier DLT: Add value for u10 Networks boards 185ef96d74fSMax Laier Require <net/pfvar.h> for pf definitions - allows reading of pflog formatted 186ef96d74fSMax Laier libpcap files on an OS other than where the file was generated 187ef96d74fSMax Laier 188ef96d74fSMax LaierWed. April 25, 2007. ken@xelerance.com. Summary for 0.9.6 libpcap release 189ef96d74fSMax Laier 190ef96d74fSMax Laier Put the public libpcap headers into a pcap subdirectory in both the 191ef96d74fSMax Laier source directory and the target include directory, and have include 192ef96d74fSMax Laier files at the top-level directory to include those headers, for 193ef96d74fSMax Laier backwards compatibility. 194ef96d74fSMax Laier Add Bluetooth support 195ef96d74fSMax Laier Add USB capturing support on Linux 196ef96d74fSMax Laier Add support for the binary USB sniffing interface in Linux 197ef96d74fSMax Laier Add support for new FreeBSD BIOCSDIRECTION ioctl 198ef96d74fSMax Laier Add additional filter operations for 802.11 frame types 199ef96d74fSMax Laier Add support for filtering on MTP2 frame types 200ef96d74fSMax Laier Propagate some changes from the main branch, so the x.9 branch has 201ef96d74fSMax Laier all the DLT_ and LINKTYPE_ values that the main branch does 202ef96d74fSMax Laier Reserved a DLT_ and SAVEFILE_ value for PPI (Per Packet Info) 203ef96d74fSMax Laier encapsulated packets 204ef96d74fSMax Laier Add LINKTYPE_ for IEEE 802.15.4, with address fields padded as done 205ef96d74fSMax Laier by Linux drivers 206ef96d74fSMax Laier Add LINKTYPE_ value corresponding to DLT_IEEE802_16_MAC_CPS. 207ef96d74fSMax Laier Add DLT for IEEE 802.16 (WiMAX) MAC Common Part Sublayer 208ef96d74fSMax Laier Add DLT for Bluetooth HCI UART transport layer 209ef96d74fSMax Laier When building a shared library, build with "-fPIC" on Linux to support x86_64 210ef96d74fSMax Laier Link with "$(CC) -shared" rather than "ld -shared" when building a 211ef96d74fSMax Laier ".so" shared library 212ef96d74fSMax Laier Add support for autoconf 2.60 213ef96d74fSMax Laier Fixes to discard unread packets when changing filters 214ef96d74fSMax Laier Changes to handle name changes in the DAG library resulting from 215ef96d74fSMax Laier switching to libtool. 216ef96d74fSMax Laier Add support for new DAG ERF types. 217ef96d74fSMax Laier Add an explicit "-ldag" when building the shared library, so the DAG 218ef96d74fSMax Laier library dependency is explicit. 219ef96d74fSMax Laier Mac OSX fixes for dealing with "wlt" devices 220ef96d74fSMax Laier Fixes in add_or_find_if() & pcap_findalldevs() to optimize generating 221ef96d74fSMax Laier device lists 222ef96d74fSMax Laier Fixed a bug in pcap_open_live(). The return value of PacketSetHwFilter 223ef96d74fSMax Laier was not checked. 224ef96d74fSMax Laier 225ef96d74fSMax LaierTue. September 19, 2006. ken@xelerance.com. Summary for 0.9.5 libpcap release 226ef96d74fSMax Laier 227ef96d74fSMax Laier Support for LAPD frames with vISDN 228ef96d74fSMax Laier Support for ERF on channelized T1/E1 cards via DAG API 229ef96d74fSMax Laier Fix capitalization that caused issues crossc compiling on Linux 230ef96d74fSMax Laier Better failure detection on PacketGetAdapterNames() 231ef96d74fSMax Laier Fixes for MPLS packet generation (link layer) 232ef96d74fSMax Laier OP_PACKET now matches the beginning of the packet, instead of 233ef96d74fSMax Laier beginning+link-layer 234ef96d74fSMax Laier Add DLT/LINKTYPE for carrying FRF.16 Multi-link Frame Relay 235ef96d74fSMax Laier Fix allocation of buffer for list of link-layer types 236ef96d74fSMax Laier Added a new DLT and LINKTYPE value for ARINC 653 Interpartition Communcation Messages 237ef96d74fSMax Laier Fixed a typo in a DLT value: it should start with DLT_ and not LINKTYPE_ 238ef96d74fSMax Laier Redefined DLT_CAN20B and LINKTYPE_CAN20B as #190 (as this is the right value for CAN). 239ef96d74fSMax Laier Added definition for DLT_A429 and LINKTYPE_A429 as #184. 240ef96d74fSMax Laier Added a new DLT and LINKTYPE value for CAN v2.0B frames. 241ef96d74fSMax Laier Add support for DLT_JUNIPER_VP. 242ef96d74fSMax Laier Don't double-count received packets on Linux systems that 243ef96d74fSMax Laier support the PACKET_STATISTICS getsockopt() argument on 244ef96d74fSMax Laier PF_PACKET sockets. 245ef96d74fSMax Laier Add support for DLT_IEEE802_11 and DLT_IEEE802_11_RADIO link 246ef96d74fSMax Laier layers in Windows 247ef96d74fSMax Laier Add support to build libpcap.lib and wpcap.dll under Cygnus and 248ef96d74fSMax Laier MingW32. 249ee2dd488SSam Leffler 2505d18909fSSam LefflerMon. September 5, 2005. ken@xelerance.com. Summary for 0.9.4 libpcap release 2515d18909fSSam Leffler 2525d18909fSSam Leffler Support for radiotap on Linux (Mike Kershaw) 2535d18909fSSam Leffler Fixes for HP-UX 2545d18909fSSam Leffler Support for additional Juniper link-layer types 2555d18909fSSam Leffler Fixes for filters on MPLS-encapsulated packets 2565d18909fSSam Leffler "vlan" filter fixed 2575d18909fSSam Leffler "pppoed" and "pppoes" filters added; the latter modifies later 2585d18909fSSam Leffler parts of the filter expression to look at the PPP headers and 2595d18909fSSam Leffler headers in the PPP payload 2605d18909fSSam Leffler 2615d18909fSSam LefflerTue. July 5, 2005. ken@xelerance.com. Summary for 0.9.3 libpcap release 262ee2dd488SSam Leffler 263ee2dd488SSam Leffler Fixes for compiling on nearly every platform, 264ee2dd488SSam Leffler including improved 64bit support 265ee2dd488SSam Leffler MSDOS Support 266ee2dd488SSam Leffler Add support for sending packets 267ee2dd488SSam Leffler OpenBSD pf format support 268ee2dd488SSam Leffler IrDA capture (Linux only) 269ee2dd488SSam Leffler 270feb4ecdbSBruce M SimpsonTue. March 30, 2004. mcr@sandelman.ottawa.on.ca. Summary for 3.8.3 release 271feb4ecdbSBruce M Simpson 272feb4ecdbSBruce M Simpson Fixed minor problem in gencode.c that would appear on 64-bit 273feb4ecdbSBruce M Simpson platforms. 274feb4ecdbSBruce M Simpson Version number is now sane. 275feb4ecdbSBruce M Simpson 276feb4ecdbSBruce M SimpsonMon. March 29, 2004. mcr@sandelman.ottawa.on.ca. Summary for 3.8.2 release 277feb4ecdbSBruce M Simpson 278feb4ecdbSBruce M Simpson updates for autoconf 2.5 279feb4ecdbSBruce M Simpson fixes for ppp interfaces for freebsd 4.1 280feb4ecdbSBruce M Simpson pcap gencode can generate code for 802.11, IEEE1394, and pflog. 281feb4ecdbSBruce M Simpson 282feb4ecdbSBruce M SimpsonWed. November 12, 2003. mcr@sandelman.ottawa.on.ca. Summary for 0.8 release 283feb4ecdbSBruce M Simpson 284feb4ecdbSBruce M Simpson added pcap_findalldevs() 285feb4ecdbSBruce M Simpson Win32 patches from NetGroup, Politecnico di Torino (Italy) 286feb4ecdbSBruce M Simpson OpenBSD pf, DLT_PFLOG added 287feb4ecdbSBruce M Simpson Many changes to ATM support. 288feb4ecdbSBruce M Simpson lookup pcap_lookupnet() 289feb4ecdbSBruce M Simpson Added DLT_ARCNET_LINUX, DLT_ENC, DLT_IEEE802_11_RADIO, DLT_SUNATM, 290feb4ecdbSBruce M Simpson DLT_IP_OVER_FC, DLT_FRELAY, others. 291feb4ecdbSBruce M Simpson Sigh. More AIX wonderfulness. 292feb4ecdbSBruce M Simpson Document updates. 293feb4ecdbSBruce M Simpson Changes to API: pcap_next_ex(), pcap_breakloop(), pcap_dump_flush(), 294feb4ecdbSBruce M Simpson pcap_list_datalinks(), pcap_set_datalink(), 295feb4ecdbSBruce M Simpson pcap_lib_version(), pcap_datalink_val_to_name(), 296feb4ecdbSBruce M Simpson pcap_datalink_name_to_val(), new error returns. 297feb4ecdbSBruce M Simpson 298feb4ecdbSBruce M SimpsonTuesday, February 25, 2003. fenner@research.att.com. 0.7.2 release 299feb4ecdbSBruce M Simpson 300feb4ecdbSBruce M Simpson Support link types that use 802.2 always, never, and sometimes. 301feb4ecdbSBruce M Simpson Don't decrease the size of the BPF buffer from the default. 302feb4ecdbSBruce M Simpson Support frame relay. 303feb4ecdbSBruce M Simpson Handle 32-bit timestamps in DLPI, and pass the right buffer size. 304feb4ecdbSBruce M Simpson Handle Linux systems with modern kernel but without 305feb4ecdbSBruce M Simpson SOL_PACKET in the userland headers. 306feb4ecdbSBruce M Simpson Linux support for ARPHRD_RAWHDLC. 307feb4ecdbSBruce M Simpson Handle 32-bit timestamps in snoop. 308feb4ecdbSBruce M Simpson Support eg (Octane/O2xxx/O3xxx Gigabit) devices. 309feb4ecdbSBruce M Simpson Add new reserved DLT types. 3100a94d38fSBill Fenner 3110a94d38fSBill FennerMonday October 23, 2001. mcr@sandelman.ottawa.on.ca. Summary for 0.7 release 3120a94d38fSBill Fenner 3130a94d38fSBill Fenner Added pcap_findalldevs() call to get list of interfaces in a MI way. 3140a94d38fSBill Fenner 3150a94d38fSBill Fenner pcap_stats() has been documented as to what its counters mean on 3160a94d38fSBill Fenner each platform. 3178751327cSBill Fenner 318dc2c7305SBill FennerTuesday January 9, 2001. guy@alum.mit.edu. Summary for 0.6 release 3198751327cSBill Fenner 320dc2c7305SBill Fenner New Linux libpcap implementation, which, in 2.2 and later 321dc2c7305SBill Fenner kernels, uses PF_PACKET sockets and supports kernel packet 322dc2c7305SBill Fenner filtering (if compiled into the kernel), and supports the "any" 323dc2c7305SBill Fenner device for capturing on all interfaces. Cleans up promiscuous 324dc2c7305SBill Fenner mode better on pre-2.2 kernels, and has various other fixes 325dc2c7305SBill Fenner (handles 2.4 ARPHRD_IEEE802_TR, handles ISDN devices better, 326dc2c7305SBill Fenner doesn't show duplicate packets on loopback interface, etc.). 327dc2c7305SBill Fenner 328dc2c7305SBill Fenner Fixed HP-UX libpcap implementation to correctly get the PPA for 329dc2c7305SBill Fenner an interface, to allow interfaces to be opened by interface name. 330dc2c7305SBill Fenner 331dc2c7305SBill Fenner libpcap savefiles have system-independent link-layer type values 332dc2c7305SBill Fenner in the header, rather than sometimes platform-dependent DLT_ 333dc2c7305SBill Fenner values, to make it easier to exchange capture files between 334dc2c7305SBill Fenner different OSes. 335dc2c7305SBill Fenner 336dc2c7305SBill Fenner Non-standard capture files produced by some Linux tcpdumps, e.g. 337dc2c7305SBill Fenner the one from Red Hat Linux 6.2 and later, can now be read. 338dc2c7305SBill Fenner 339dc2c7305SBill Fenner Updated autoconf stock files. 340dc2c7305SBill Fenner 341dc2c7305SBill Fenner Filter expressions can filter on VLAN IDs and various OSI 342dc2c7305SBill Fenner protocols, and work on Token Ring (with non-source-routed 343dc2c7305SBill Fenner packets). 344dc2c7305SBill Fenner 345dc2c7305SBill Fenner "pcap_open_dead()" added to allow compiling filter expressions 346dc2c7305SBill Fenner to pcap code without opening a capture device or capture file. 347dc2c7305SBill Fenner 348dc2c7305SBill Fenner Header files fixed to allow use in C++ programs. 349dc2c7305SBill Fenner 350dc2c7305SBill Fenner Removed dependancy on native headers for packet layout. 351dc2c7305SBill Fenner Removed Linux specific headers that were shipped. 352dc2c7305SBill Fenner 353dc2c7305SBill Fenner Security fixes: Strcpy replaced with strlcpy, sprintf replaced 354dc2c7305SBill Fenner with snprintf. 355dc2c7305SBill Fenner 356dc2c7305SBill Fenner Fixed bug that could cause subsequent "pcap_compile()"s to fail 357dc2c7305SBill Fenner erroneously after one compile failed. 358dc2c7305SBill Fenner 359dc2c7305SBill Fenner Assorted other bug fixes. 360dc2c7305SBill Fenner 361dc2c7305SBill Fenner README.aix and README.linux files added to describe 362dc2c7305SBill Fenner platform-specific issues. 363dc2c7305SBill Fenner 364dc2c7305SBill Fenner "getifaddrs()" rather than SIOCGIFCONF used, if available. 365dc2c7305SBill Fenner 366dc2c7305SBill Fennerv0.5 Sat Jun 10 11:09:15 PDT 2000 367dc2c7305SBill Fenner 368dc2c7305SBill Fenneritojun@iijlab.net 369dc2c7305SBill Fenner- Brought in KAME IPv6/IPsec bpf compiler. 370dc2c7305SBill Fenner- Fixes for NetBSD. 371dc2c7305SBill Fenner- Support added for OpenBSD DLT_LOOP and BSD/OS DLT_C_HDLC (Cisco HDLC), 372dc2c7305SBill Fenner and changes to work around different BSDs having different DLT_ types 373dc2c7305SBill Fenner with the same numeric value. 374dc2c7305SBill Fenner 375dc2c7305SBill FennerAssar Westerlund <assar@sics.se> 376dc2c7305SBill Fenner- Building outside the source code tree fixed. 377dc2c7305SBill Fenner- Changed to write out time stamps with 32-bit seconds and microseconds 378dc2c7305SBill Fenner fields, regardless of whether those fields are 32 bits or 64 bits in 379dc2c7305SBill Fenner the OS's native "struct timeval". 380dc2c7305SBill Fenner- Changed "pcap_lookupdev()" to dynamically grow the buffer into which 381dc2c7305SBill Fenner the list of interfaces is read as necessary in order to hold the 382dc2c7305SBill Fenner entire list. 383dc2c7305SBill Fenner 384dc2c7305SBill FennerGreg Troxel <gdt@ir.bbn.com> 385dc2c7305SBill Fenner- Added a new "pcap_compile_nopcap()", which lets you compile a filter 386dc2c7305SBill Fenner expression into a BPF program without having an open live capture or 387dc2c7305SBill Fenner capture file. 388a4b5b39fSBill Fenner 389a4b5b39fSBill Fennerv0.4 Sat Jul 25 12:40:09 PDT 1998 390a4b5b39fSBill Fenner 391a4b5b39fSBill Fenner- Fix endian problem with DLT_NULL devices. From FreeBSD via Bill 392a4b5b39fSBill Fenner Fenner (fenner@parc.xerox.com) 393a4b5b39fSBill Fenner 394a4b5b39fSBill Fenner- Fix alignment problem with FDDI under DLPI. This was causing core 395a4b5b39fSBill Fenner dumps under Solaris. 396a4b5b39fSBill Fenner 397a4b5b39fSBill Fenner- Added configure options to disable flex and bison. Resulted from a 398a4b5b39fSBill Fenner bug report by barnett@grymoire.crd.ge.com (Bruce Barnett). Also added 399a4b5b39fSBill Fenner options to disable gcc and to force a particular packet capture type. 400a4b5b39fSBill Fenner 401a4b5b39fSBill Fenner- Added support for Fore ATM interfaces (qaa and fa) under IRIX. Thanks 402a4b5b39fSBill Fenner to John Hawkinson (jhawk@mit.edu) 403a4b5b39fSBill Fenner 404a4b5b39fSBill Fenner- Change Linux PPP and SLIP to use DLT_RAW since the kernel does not 405a4b5b39fSBill Fenner supply any "link layer" data. 406a4b5b39fSBill Fenner 407a4b5b39fSBill Fenner- Change Linux to use SIOCGIFHWADDR ioctl to determine link layer type. 408a4b5b39fSBill Fenner Thanks to Thomas Sailer (sailer@ife.ee.ethz.ch) 409a4b5b39fSBill Fenner 410a4b5b39fSBill Fenner- Change IRIX PPP to use DLT_RAW since the kernel does not supply any 411a4b5b39fSBill Fenner "link layer" data. 412a4b5b39fSBill Fenner 413a4b5b39fSBill Fenner- Modified to support the new BSD/OS 2.1 PPP and SLIP link layer header 414a4b5b39fSBill Fenner formats. 415a4b5b39fSBill Fenner 416a4b5b39fSBill Fenner- Added some new SGI snoop interface types. Thanks to Steve Alexander 417a4b5b39fSBill Fenner (sca@refugee.engr.sgi.com) 418a4b5b39fSBill Fenner 419a4b5b39fSBill Fenner- Fixes for HP-UX 10.20 (which is similar to HP-UX 9). Thanks to 420a4b5b39fSBill Fenner Richard Allen (ra@hp.is) and Steinar Haug (sthaug@nethelp.no) 421a4b5b39fSBill Fenner 422a4b5b39fSBill Fenner- Fddi supports broadcast as reported by Jeff Macdonald 423a4b5b39fSBill Fenner (jeff@iacnet.com). Also correct ieee802 and arcnet. 424a4b5b39fSBill Fenner 425a4b5b39fSBill Fenner- Determine Linux pcap buffer size at run time or else it might not be 426a4b5b39fSBill Fenner big enough for some interface types (e.g. FDDI). Thanks to Jes 427a4b5b39fSBill Fenner Sorensen (Jes.Sorensen@cern.ch) 428a4b5b39fSBill Fenner 429a4b5b39fSBill Fenner- Fix some linux alignment problems. 430a4b5b39fSBill Fenner 431a4b5b39fSBill Fenner- Document promisc argument to pcap_open_live(). Reported by Ian Marsh 432a4b5b39fSBill Fenner (ianm@sics.se) 433a4b5b39fSBill Fenner 434a4b5b39fSBill Fenner- Support Metricom radio packets under Linux. Thanks to Kevin Lai 435a4b5b39fSBill Fenner (laik@gunpowder.stanford.edu) 436a4b5b39fSBill Fenner 437a4b5b39fSBill Fenner- Bind to interface name under Linux to avoid packets from multiple 438a4b5b39fSBill Fenner interfaces on multi-homed hosts. Thanks to Kevin Lai 439a4b5b39fSBill Fenner (laik@gunpowder.stanford.edu) 440a4b5b39fSBill Fenner 441a4b5b39fSBill Fenner- Change L_SET to SEEK_SET for HP-UX. Thanks to Roland Roberts 442a4b5b39fSBill Fenner (rroberts@muller.com) 443a4b5b39fSBill Fenner 444a4b5b39fSBill Fenner- Fixed an uninitialized memory reference found by Kent Vander Velden 445a4b5b39fSBill Fenner (graphix@iastate.edu) 446a4b5b39fSBill Fenner 447a4b5b39fSBill Fenner- Fixed lex pattern for IDs to allow leading digits. As reported by 448a4b5b39fSBill Fenner Theo de Raadt (deraadt@cvs.openbsd.org) 449a4b5b39fSBill Fenner 450a4b5b39fSBill Fenner- Fixed Linux include file problems when using GNU libc. 451a4b5b39fSBill Fenner 452a4b5b39fSBill Fenner- Ifdef ARPHRD_FDDI since not all versions of the Linux kernel have it. 453a4b5b39fSBill Fenner Reported reported by Eric Jacksch (jacksch@tenebris.ca) 454a4b5b39fSBill Fenner 455a4b5b39fSBill Fenner- Fixed bug in pcap_dispatch() that kept it from returning on packet 456a4b5b39fSBill Fenner timeouts. 457a4b5b39fSBill Fenner 458a4b5b39fSBill Fenner- Changed ISLOOPBACK() macro when IFF_LOOPBACK isn't available to check 459a4b5b39fSBill Fenner for "lo" followed by an eos or digit (newer versions of Linux 460a4b5b39fSBill Fenner apparently call the loopback "lo" instead of "lo0"). 461a4b5b39fSBill Fenner 462a4b5b39fSBill Fenner- Fixed Linux networking include files to use ints instead of longs to 463a4b5b39fSBill Fenner avoid problems with 64 bit longs on the alpha. Thanks to Cristian 464a4b5b39fSBill Fenner Gafton (gafton@redhat.com) 4653052b236SBill Fenner 4663052b236SBill Fennerv0.3 Sat Nov 30 20:56:27 PST 1996 4673052b236SBill Fenner 4683052b236SBill Fenner- Added Linux support. 4693052b236SBill Fenner 4703052b236SBill Fenner- Fixed savefile bugs. 4713052b236SBill Fenner 4723052b236SBill Fenner- Solaris x86 fix from Tim Rylance (t.rylance@elsevier.nl) 4733052b236SBill Fenner 4743052b236SBill Fenner- Add support for bpf kernel port filters. 4753052b236SBill Fenner 4763052b236SBill Fenner- Remove duplicate atalk protocol table entry. Thanks to Christian 4773052b236SBill Fenner Hopps (chopps@water.emich.edu) 4783052b236SBill Fenner 4793052b236SBill Fenner- Fixed pcap_lookupdev() to ignore nonexistent devices. This was 4803052b236SBill Fenner reported to happen under BSD/OS by David Vincenzetti 4813052b236SBill Fenner (vince@cryptonet.it) 4823052b236SBill Fenner 4833052b236SBill Fenner- Avoid solaris compiler warnings. Thanks to Bruce Barnett 4843052b236SBill Fenner (barnett@grymoire.crd.ge.com) 4858cf6c252SPaul Traina 4868cf6c252SPaul Trainav0.2.1 Sun Jul 14 03:02:26 PDT 1996 4878cf6c252SPaul Traina 4888cf6c252SPaul Traina- Fixes for HP-UX 10. Thanks in part to to Thomas Wolfram 4898cf6c252SPaul Traina (wolf@prz.tu-berlin.de) and Rick Jones (raj@hpisrdq.cup.hp.com) 4908cf6c252SPaul Traina 4918cf6c252SPaul Traina- Added support for SINIX. Thanks to Andrej Borsenkow 4928cf6c252SPaul Traina (borsenkow.msk@sni.de) 4938cf6c252SPaul Traina 4948cf6c252SPaul Traina- Fixes for AIX (although this system is not yet supported). Thanks to 4958cf6c252SPaul Traina John Hawkinson (jhawk@mit.edu) 4968cf6c252SPaul Traina 4978cf6c252SPaul Traina- Use autoconf's idea of the top level directory in install targets. 4988cf6c252SPaul Traina Thanks to John Hawkinson. 4998cf6c252SPaul Traina 5008cf6c252SPaul Traina- Add missing autoconf packet capture result message. Thanks to Bill 5018cf6c252SPaul Traina Fenner (fenner@parc.xerox.com) 5028cf6c252SPaul Traina 5038cf6c252SPaul Traina- Fixed padding problems in the pf module. 5048cf6c252SPaul Traina 5058cf6c252SPaul Traina- Fixed some more alignment problems on the alpha. 5068cf6c252SPaul Traina 5078cf6c252SPaul Traina- Added explicit netmask support. Thanks to Steve Nuchia 5088cf6c252SPaul Traina (steve@research.oknet.com) 5098cf6c252SPaul Traina 5108cf6c252SPaul Traina- Fixed to handle raw ip addresses such as 0.0.0.1 without "left 5118cf6c252SPaul Traina justifing" 5128cf6c252SPaul Traina 5138cf6c252SPaul Traina- Add "sca" keyword (for DEC cluster services) as suggested by Terry 5148cf6c252SPaul Traina Kennedy (terry@spcvxa.spc.edu) 5158cf6c252SPaul Traina 5168cf6c252SPaul Traina- Add "atalk" keyword as suggested by John Hawkinson. 5178cf6c252SPaul Traina 5188cf6c252SPaul Traina- Add "igrp" keyword. 5198cf6c252SPaul Traina 5208cf6c252SPaul Traina- Fixed HID definition in grammar.y to be a string, not a value. 5218cf6c252SPaul Traina 5228cf6c252SPaul Traina- Use $CC when checking gcc version. Thanks to Carl Lindberg 5238cf6c252SPaul Traina (carl_lindberg@blacksmith.com) 5248cf6c252SPaul Traina 5258cf6c252SPaul Traina- Removed obsolete reference to pcap_immediate() from the man page. 5268cf6c252SPaul Traina Michael Stolarchuk (mts@terminator.rs.itd.umich.edu) 5278cf6c252SPaul Traina 5288cf6c252SPaul Traina- DLT_NULL has a 4 byte family header. Thanks to Jeffrey Honig 5298cf6c252SPaul Traina (jch@bsdi.com) 5308cf6c252SPaul Traina 5318cf6c252SPaul Trainav0.2 Sun Jun 23 02:28:42 PDT 1996 5328cf6c252SPaul Traina 5338cf6c252SPaul Traina- Add support for HP-UX. Resulted from code contributed by Tom Murray 5348cf6c252SPaul Traina (tmurray@hpindck.cup.hp.com) and Philippe-Andri Prindeville 5358cf6c252SPaul Traina (philipp@res.enst.fr) 5368cf6c252SPaul Traina 5378cf6c252SPaul Traina- Update INSTALL with a reminder to install include files. Thanks to 5388cf6c252SPaul Traina Mark Andrews (mandrews@aw.sgi.com) 5398cf6c252SPaul Traina 5408cf6c252SPaul Traina- Fix bpf compiler alignment bug on the alpha. 5418cf6c252SPaul Traina 5428cf6c252SPaul Traina- Use autoconf to detect architectures that can't handle misaligned 5438cf6c252SPaul Traina accesses. 5448cf6c252SPaul Traina 5458cf6c252SPaul Traina- Added loopback support for snoop. Resulted from report Steve 5468cf6c252SPaul Traina Alexander (sca@engr.sgi.com) 5478cf6c252SPaul Traina 5488cf6c252SPaul Trainav0.1 Fri Apr 28 18:11:03 PDT 1995 5498cf6c252SPaul Traina 5508cf6c252SPaul Traina- Fixed compiler and optimizer bugs. The BPF filter engine uses unsigned 5518cf6c252SPaul Traina comparison operators, while the code generator and optimizer assumed 5528cf6c252SPaul Traina signed semantics in several places. Thanks to Charlie Slater 5538cf6c252SPaul Traina (cslater@imatek.com) for pointing this out. 5548cf6c252SPaul Traina 5558cf6c252SPaul Traina- Removed FDDI ifdef's, they aren't really needed. Resulted from report 5568cf6c252SPaul Traina by Gary Veum (veum@boa.gsfc.nasa.gov). 5578cf6c252SPaul Traina 5588cf6c252SPaul Traina- Add pcap-null.c which allows offline use of libpcap on systems that 5598cf6c252SPaul Traina don't support live package capture. This feature resulting from a 5608cf6c252SPaul Traina request from Jan van Oorschot (j.p.m.voorschot@et.tudelft.nl). 5618cf6c252SPaul Traina 5628cf6c252SPaul Traina- Make bpf_compile() reentrant. Fix thanks to Pascal Hennequin 5638cf6c252SPaul Traina (Pascal.Hennequin@hugo.int-evry.fr). 5648cf6c252SPaul Traina 5658cf6c252SPaul Traina- Port to GNU autoconf. 5668cf6c252SPaul Traina 5678cf6c252SPaul Traina- Fix pcap-dlpi.c to work with isdn. Resulted from report by Flemming 5688cf6c252SPaul Traina Johansen (fsj@csd.cri.dk). 5698cf6c252SPaul Traina 5708cf6c252SPaul Traina- Handle multi-digit interface unit numbers (aka ppa's) under dlpi. 5718cf6c252SPaul Traina Resulted from report by Daniel Ehrlich (ehrlich@cse.psu.edu). 5728cf6c252SPaul Traina 5738cf6c252SPaul Traina- Fix pcap-dlpi.c to work in non-promiscuous mode. Resulted from report 5748cf6c252SPaul Traina by Jeff Murphy (jcmurphy@acsu.buffalo.edu). 5758cf6c252SPaul Traina 5768cf6c252SPaul Traina- Add support for "long jumps". Thanks to Jeffrey Mogul 5778cf6c252SPaul Traina (mogul@pa.dec.com). 5788cf6c252SPaul Traina 5798cf6c252SPaul Traina- Fix minor problems when compiling with BDEBUG as noticed by Scott 5808cf6c252SPaul Traina Bertilson (scott@unet.umn.edu). 5818cf6c252SPaul Traina 5828cf6c252SPaul Traina- Declare sys_errlist "const char *const" to avoid problems under 5838cf6c252SPaul Traina FreeBSD. Resulted from report by jher@eden.com. 5848cf6c252SPaul Traina 5858cf6c252SPaul Trainav0.0.6 Fri Apr 28 04:07:13 PDT 1995 5868cf6c252SPaul Traina 5878cf6c252SPaul Traina- Add missing variable declaration missing from 0.0.6 5888cf6c252SPaul Traina 5898cf6c252SPaul Trainav0.0.5 Fri Apr 28 00:22:21 PDT 1995 5908cf6c252SPaul Traina 5918cf6c252SPaul Traina- Workaround for problems when pcap_read() returns 0 due to the timeout 5928cf6c252SPaul Traina expiring. 5938cf6c252SPaul Traina 5948cf6c252SPaul Trainav0.0.4 Thu Apr 20 20:41:48 PDT 1995 5958cf6c252SPaul Traina 5968cf6c252SPaul Traina- Change configuration to not use gcc v2 flags with gcc v1. 5978cf6c252SPaul Traina 5988cf6c252SPaul Traina- Fixed a bug in pcap_next(); if pcap_dispatch() returns 0, pcap_next() 5998cf6c252SPaul Traina should also return 0. Thanks to Richard Stevens (rstevens@noao.edu). 6008cf6c252SPaul Traina 6018cf6c252SPaul Traina- Fixed configure to test for snoop before dlpi to avoid problems under 6028cf6c252SPaul Traina IRIX 5. Thanks to J. Eric Townsend (jet@abulafia.genmagic.com). 6038cf6c252SPaul Traina 6048cf6c252SPaul Traina- Hack around deficiency in Ultrix's make. 6058cf6c252SPaul Traina 6068cf6c252SPaul Traina- Fix two bugs related to the Solaris pre-5.3.2 bufmod bug; handle 6078cf6c252SPaul Traina savefiles that have more than snapshot bytes of data in them (so we 6088cf6c252SPaul Traina can read old savefiles) and avoid writing such files. 6098cf6c252SPaul Traina 6108cf6c252SPaul Traina- Added checkioctl which is used with gcc to check that the 6118cf6c252SPaul Traina "fixincludes" script has been run. 6128cf6c252SPaul Traina 6138cf6c252SPaul Trainav0.0.3 Tue Oct 18 18:13:46 PDT 1994 6148cf6c252SPaul Traina 6158cf6c252SPaul Traina- Fixed configure to test for snoop before dlpi to avoid problems under 6168cf6c252SPaul Traina IRIX 5. Thanks to J. Eric Townsend (jet@abulafia.genmagic.com). 6178cf6c252SPaul Traina 6188cf6c252SPaul Trainav0.0.2 Wed Oct 12 20:56:37 PDT 1994 6198cf6c252SPaul Traina 6208cf6c252SPaul Traina- Implement timeout in the dlpi pcap_open_live(). Thanks to Richard 6218cf6c252SPaul Traina Stevens. 6228cf6c252SPaul Traina 6238cf6c252SPaul Traina- Determine pcap link type from dlpi media type. Resulted from report 6248cf6c252SPaul Traina by Mahesh Jethanandani (mahesh@npix.com). 6258cf6c252SPaul Traina 6268cf6c252SPaul Trainav0.0.1 Fri Jun 24 14:50:57 PDT 1994 6278cf6c252SPaul Traina 6288cf6c252SPaul Traina- Fixed bug in nit_setflags() in pcap-snit.c. The streams ioctl timeout 6298cf6c252SPaul Traina wasn't being initialized sometimes resulting in an "NIOCSFLAGS: 6308cf6c252SPaul Traina Invalid argument" error under OSF/1. Reported by Matt Day 6318cf6c252SPaul Traina (mday@artisoft.com) and Danny Mitzel (dmitzel@whitney.hitc.com). 6328cf6c252SPaul Traina 6338cf6c252SPaul Traina- Turn on FDDI support by default. 6348cf6c252SPaul Traina 6358cf6c252SPaul Trainav0.0 Mon Jun 20 19:20:16 PDT 1994 6368cf6c252SPaul Traina 6378cf6c252SPaul Traina- Initial release. 6388cf6c252SPaul Traina 6398cf6c252SPaul Traina- Fixed bug with greater/less keywords, reported by Mark Andrews 6408cf6c252SPaul Traina (mandrews@alias.com). 6418cf6c252SPaul Traina 6428cf6c252SPaul Traina- Fix bug where '|' was defined as BPF_AND instead of BPF_OR, reported 6438cf6c252SPaul Traina by Elan Amir (elan@leeb.cs.berkeley.edu). 6448cf6c252SPaul Traina 6458cf6c252SPaul Traina- Machines with little-endian byte ordering are supported thanks to 6468cf6c252SPaul Traina Jeff Mogul. 6478cf6c252SPaul Traina 6488cf6c252SPaul Traina- Add hack for version 2.3 savefiles which don't have caplen and len 6498cf6c252SPaul Traina swapped thanks to Vern Paxson. 6508cf6c252SPaul Traina 6518cf6c252SPaul Traina- Added "&&" and "||" aliases for "and" and "or" thanks to Vern Paxson. 6528cf6c252SPaul Traina 6538cf6c252SPaul Traina- Added length, inbound and outbound keywords. 654