]> The Tcpdump Group git mirrors - libpcap/blob - CHANGES
On Linux, return error on interface going away, not just going down.
[libpcap] / CHANGES
1 Sunday, July 22, 2018
2 Summary for 1.9.1 libpcap release
3 Mention pcap_get_required_select_timeout() in the main pcap man page
4 Fix pcap-usb-linux.c build on systems with musl
5 Fix assorted man page and other documentation issues
6 Plug assorted memory leaks
7 Documentation changes to use https:
8 Changes to how time stamp calculations are done
9 Lots of tweaks to make newer compilers happier and warning-free and
10 to fix instances of C undefined behavior
11 Warn if AC_PROG_CC_C99 can't enable C99 support
12 Rename pcap_set_protocol() to pcap_set_protocol_linux().
13 Align pcap_t private data on an 8-byte boundary.
14 Fix various error messages
15 Use 64-bit clean API in dag_findalldevs()
16 Fix cleaning up after some errors
17 Work around some ethtool ioctl bugs in newer Linux kernels (GitHub
18 issue #689)
19 Add backwards compatibility sections to some man pages (GitHub issue
20 #745)
21 Fix autotool configuration on AIX and macOS
22 Don't export bpf_filter_with_aux_data() or struct bpf_aux_data;
23 they're internal-only and subject to change
24 Fix pcapng block size checking
25 On macOS, don't build rpcapd or test programs any fatter than they
26 need to be
27 Fix reading of capture statistics for Linux USB
28 Fix packet size values for Linux USB packets (GitHub issue #808)
29 Check only VID in VLAN test in filterss (GitHub issue #461)
30 Fix pcap_list_datalinks on 802.11 devices on macOS
31 Fix overflows with very large snapshot length in pcap file
32 Improve parsing of rpcapd configuration file (GitHub issue #767)
33 Handle systems without strlcpy() or strlcat() better
34 Fix crashes and other errors with invalid filter expressions
35 Fix use of uninitialized file descriptor in remote capture
36 Fix some CMake issues
37 Fix some divide-by-zero issues with the filter compiler
38 Work around a GNU libc bug in pcap_nametonetaddr()
39 Add support for DLT_LINUX_SLL2
40 Fix handling of the packet-count argument for Myricom SNF devices
41 Fix --disable-rdma in configure script (GitHub issue #782)
42 Fix compilation of TurboCap support (GitHub issue #764)
43 Constify first argument to pcap_findalldevs_ex()
44 Fix a number of issues when running rpcapd as an inetd-style daemon
45 Fix CMake issues with D-Bus libraries
46 In rpcapd, clean up termination of a capture session
47 Redo remote capture protocol negotiation
48 In rpcapd, report the same error for "invalid user name" and
49 "invalid password", to make brute-forcing harder
50 For remote captures, add an error code for "the server requires TLS"
51 Fix pcap_dump_fopen() on Windows to avoid clashes between
52 {Win,N}Pcap and application C runtimes
53 Fix exporting of functions from Windows DLLs (GitHub issue #810)
54 Fix building as part of Npcap
55 Allow rpcapd to rebind more rapidly
56 Fix building shared libpcap library on midipix (midipix.org)
57 Fix hack to detect UTF-16LE adapter names on Windows not to go past
58 the end of the string
59 Fix handling of "wireless WAN" (mobile phone network modems) on
60 Windows with WinPcap/Npcap (GitHub issue #824)
61 Have pcap_dump_open_append() create the dump file if it doesn't
62 exists (GitHub issue #247)
63 Fix the maxmum snapshot length for DLT_USBPCAP
64 Use -fPIC when building for 64-bit SPARC on Linux (GitHub issue #837)
65 Fix CMake 64-bit library installation directory on some Linux
66 distributions
67 Boost the TPACKET_V3 timeout to the maximum if a timeout of 0 was
68 specified
69 Five CVE-2019-15161, CVE-2019-15162, CVE-2019-15163, CVE-2019-15164, CVE-2019-15165
70 Fixes for CVE-2018-16301, errors in pcapng reading.
71 PCAPNG reader applies some sanity checks before doing malloc().
72
73 Sunday, June 24, 2018, by mcr@sandelman.ca
74 Summary for 1.9.0 libpcap release
75 Added testing system to libpcap, independent of tcpdump
76 Changes to how pcap_t is activated
77 Adding support for Large stream buffers on Endace DAG cards
78 Changes to BSD 3-clause license to 2-clause licence
79 Additions to TCP header parsing, per RFC3168
80 Add CMake build process (extensive number of changes)
81 Assign a value for OpenBSD DLT_OPENFLOW.
82 Support setting non-blocking mode before activating.
83 Extensive build support for Windows VS2010 and MINGW (many many changes, over many months)
84 Added RPCAPD support when --enable-remote (default no)
85 Add the rpcap daemon source and build instructions.
86 Put back the greasy "save the capture filter string so we can tweak it"
87 hack, that keeps libpcap from capturing rpcap traffic.
88 Fixes for captures on MacOS, utun0
89 fixes so that non-AF_INET addresses, are not ==AF_INET6 addresses.
90 Add a linktype for IBM SDLC frames containing SNA PDUs.
91 pcap_compile() in 1.8.0 and later is newly thread-safe.
92 bound snaplen for linux tpacket_v2 to ~64k
93 Make VLAN filter handle both metadata and inline tags
94 D-Bus captures can now be up to 128MB in size
95 Added LORATAP DLT value
96 Added DLT_VSOCK for https://qemu-project.org/Features/VirtioVsock
97 probe_devices() fixes not to overrun buffer for name of device
98 Add linux-specific pcap_set_protocol_linux() to allow specifying a specific capture protocol.
99 RDMA sniffing support for pcap
100 Add Nordic Semiconductor Bluetooth LE sniffer link-layer header type.
101 fixes for reading /etc/ethers
102 Make it possible to build on Windows without packet.dll.
103 Add tests for large file support on UN*X.
104 Solaris fixes to work with 2.8.6
105 configuration test now looks for header files, not capture devices present
106 Fix to work with Berkeley YACC.
107 fixes for DragonBSD compilation of pcap-netmap.c
108 Clean up the ether_hostton() stuff.
109 Add an option to disable Linux memory-mapped capture support.
110 Add DAG API support checks.
111 Add Septel, Myricom SNF, and Riverbed TurboCap checks.
112 Add checks for Linux USB, Linux Bluetooth, D-Bus, and RDMA sniffing support.
113 Add a check for hardware time stamping on Linux.
114 Don't bother supporting pre-2005 Visual Studio.
115 Increased minimum autoconf version requirement to 2.64
116 Add DLT value 273 for XRA-31 sniffer
117 Clean up handing of signal interrupts in pcap_read_nocb_remote().
118 Use the XPG 4.2 versions of the networking APIs in Solaris.
119 Fix, and better explain, the "IPv6 means IPv6, not IPv4" option setting.
120 Explicitly warn that negative packet buffer timeouts should not be used.
121 rpcapd: Add support inetd-likes, including xinetd.conf, and systemd units
122 Rename DLT_IEEE802_15_4 to DLT_IEEE802_15_4_WITHFCS.
123 Add DISPLAYPORT AUX link type
124 Remove the sunos4 kernel modules and all references to them.
125 Add more interface flags to pcap_findalldevs().
126 Summary for 1.9.0 libpcap release (to 2017-01-25 by guy@alum.mit.edu)
127 Man page improvements
128 Fix Linux cooked mode userspace filtering (GitHub pull request #429)
129 Fix compilation if IPv6 support not enabled
130 Fix some Linux memory-mapped capture buffer size issues
131 Don't fail if kernel filter can't be set on Linux (GitHub issue
132 #549)
133 Improve sorting of interfaces for pcap_findalldevs()
134 Don't list Linux usbmon devices if usbmon module isn't loaded
135 Report PCAP_ERROR_PERM_DENIED if no permission to open Linux usbmon
136 devices
137 Fix DLT_ type for Solaris IPNET devices
138 Always return an error message for errors finding DAG or Myricom
139 devices
140 If possible, don't require that a device be openable when
141 enumerating them for pcap_findalldevs()
142 Don't put incompletely-initialized addresses in the address list for
143 When finding Myricom devices, update description for regular
144 interfaces that are Myricom devices and handle SNF_FLAGS=0x2(port
145 aggregation enabled)
146 Fix compilation error in DAG support
147 Fix issues with CMake configuration
148 Add support for stream buffers larger than 2GB on newer DAG cards
149 Remove support for building against DAG versions without STREAMS
150 support (before dag-3.0.0 2007)
151
152 Tuesday, Oct. 25, 2016 mcr@sandelman.ca
153 Summary for 1.8.1 libpcap release
154 Add a target in Makefile.in for Exuberant Ctags use: 'extags'.
155 Rename configure.in to configure.ac: autoconf 2.59
156 Clean up the name-to-DLT mapping table.
157 Add some newer DLT_ values: IPMI_HPM_2,ZWAVE_R1_R2,ZWAVE_R3,WATTSTOPPER_DLM,ISO_14443,RDS
158 Clarify what the return values are for both success and failure.
159 Many changes to build on windows
160 Check for the "break the loop" condition in the inner loop for TPACKET_V3.
161 Fix handling of packet count in the TPACKET_V3 inner loop: GitHub issue #493.
162 Filter out duplicate looped back CAN frames.
163 Fix the handling of loopback filters for IPv6 packets.
164 Add a link-layer header type for RDS (IEC 62106) groups.
165 Use different intermediate folders for x86 and x64 builds on Windows.
166 On Linux, handle all CAN captures with pcap-linux.c, in cooked mode.
167 Removes the need for the "host-endian" link-layer header type.
168 Compile with '-Wused-but-marked-unused' in devel mode if supported
169 Have separate DLTs for big-endian and host-endian SocketCAN headers.
170 Reflect version.h being renamed to pcap_version.h.
171 Require that version.h be generated: all build procedures we support generate version.h (autoconf, CMake, MSVC)!
172 Properly check for sock_recv() errors.
173 Re-impose some of Winsock's limitations on sock_recv().
174 Replace sprintf() with pcap_snprintf().
175 Fix signature of pcap_stats_ex_remote().
176 Initial cmake support for remote packet capture.
177 Have rpcap_remoteact_getsock() return a SOCKET and supply an "is active" flag.
178 Clean up {DAG, Septel, Myricom SNF}-only builds.
179 Do UTF-16-to-ASCII conversion into the right place.
180 pcap_create_interface() needs the interface name on Linux.
181 Clean up hardware time stamp support: the "any" device does not support any time stamp types.
182 Add support for capturing on FreeBSD usbusN interfaces.
183 Add a LINKTYPE/DLT_ value for FreeBSD USB.
184 Go back to using PCAP_API on Windows.
185 CMake support
186 Add TurboCap support from WinPcap.
187 Recognize 802.1ad nested VLAN tag in vlan filter.
188
189 Thursday Sep. 3, 2015 guy@alum.mit.edu
190 Summary for 1.7.5 libpcap release
191 Man page cleanups.
192 Add some allocation failure checks.
193 Fix a number of Linux/ucLinux configure/build issues.
194 Fix some memory leaks.
195 Recognize 802.1ad nested VLAN tag in vlan filter.
196 Fix building Bluetooth Linux Monitor support with BlueZ 5.1+
197
198 Saturday Jun. 27, 2015 mcr@sandelman.ca
199 Summary for 1.7.4 libpcap release
200 Include fix for GitHub issue #424 -- out of tree builds.
201
202 Friday Apr. 10, 2015 guy@alum.mit.edu
203 Summary for 1.7.3 libpcap release
204 Work around a Linux bonding driver bug.
205
206 Thursday Feb. 12, 2015 guy@alum.mit.edu/mcr@sandelman.ca
207 Summary for 1.7.2 libpcap release
208 Support for filtering Geneve encapsulated packets.
209 Generalize encapsulation handling, fixing some bugs.
210 Don't add null addresses to address lists.
211 Add pcap_dump_open_append() to open for appending.
212 Fix the swapping of isochronous descriptors in Linux USB.
213 Attempt to handle TPACKET_V1 with 32-bit userland and 64-bit kernel.
214
215 Wednesday Nov. 12, 2014 guy@alum.mit.edu/mcr@sandelman.ca
216 Summary for 1.7.0 libpcap release
217 Fix handling of zones for BPF on Solaris
218 new DLT for ZWAVE
219 clarifications for read timeouts.
220 Use BPF extensions in compiled filters, fixing VLAN filters
221 some fixes to compilation without stdint.h
222 EBUSY can now be returned by SNFv3 code.
223 Fix the range checks in BPF loads
224 Various DAG fixes.
225 Various Linux fixes.
226
227 Monday Aug. 12, 2014 guy@alum.mit.edu
228 Summary for 1.6.2 libpcap release
229 Don't crash on filters testing a non-existent link-layer type
230 field.
231 Fix sending in non-blocking mode on Linux with memory-mapped
232 capture.
233 Fix timestamps when reading pcap-ng files on big-endian
234 machines.
235
236 Saturday Jul. 19, 2014 mcr@sandelman.ca
237 Summary for 1.6.1 libpcap release
238 some fixes for the any device
239 changes for how --enable-XXX (--enable-sniffing, --enable-can) works
240
241 Wednesday Jul. 2, 2014 mcr@sandelman.ca
242 Summary for 1.6.0 libpcap release
243 Don't support D-Bus sniffing on OS X
244 fixes for byte order issues with NFLOG captures
245 Handle using cooked mode for DLT_NETLINK in activate_new().
246 on platforms where you can not capture on down interfaces, do not list them
247 but: do list interfaces which are down, if you can capture on them!
248
249 Wednesday December 18, 2013 guy@alum.mit.edu
250 Summary for 1.5.3 libpcap release
251 Don't let packets that don't match the current filter get to the
252 application when TPACKET_V3 is used. (GitHub issue #331)
253 Fix handling of pcap_loop()/pcap_dispatch() with a packet count
254 of 0 on some platforms (including Linux with TPACKET_V3).
255 (GitHub issue #333)
256 Work around TPACKET_V3 deficiency that causes packets to be lost
257 when a timeout of 0 is specified. (GitHub issue #335)
258 Man page formatting fixes.
259
260 Wednesday December 4, 2013 guy@alum.mit.edu
261 Summary for 1.5.2 libpcap release
262 Fix libpcap to work when compiled with TPACKET_V3 support and
263 running on a kernel without TPACKET_V3 support. (GitHub
264 issue #329)
265
266 Wednesday November 20, 2013 guy@alum.mit.edu
267 Summary for 1.5.1 libpcap release
268 Report an error, rather than crashing, if an IPv6 address is
269 used for link-layer filtering. (Wireshark bug 9376)
270
271 Wednesday October 30, 2013 guy@alum.mit.edu
272 Summary for 1.5.0 libpcap release
273 TPACKET_V3 support added for Linux
274 Point users to the the-tcpdump-group repository on GitHub rather
275 than the mcr repository
276 Checks added for malloc()/realloc()/etc. failures
277 Fixed build on Solaris 11
278 Support filtering filtering E1 SS7 traffic on MTP2 layer Annex A
279 Use "ln -s" to link man pages by default
280 Add support for getting nanosecond-resolution time stamps when
281 capturing and reading capture files
282 Many changes to autoconf to deal better with non-GCC compilers
283 added many new DLT types
284
285 Saturday April 6, 2013 guy@alum.mit.edu
286 Summary for 1.4.0 libpcap release
287 Add netfilter/nfqueue interface.
288 If we don't have support for IPv6 address resolution, support,
289 in filter expressions, what IPv6 stuff we can.
290 Fix pcap-config to include -lpthread if canusb support is
291 present
292 Try to fix "pcap_parse not defined" problems when --without-flex
293 and --without-bison are used when you have Flex and Bison
294 Fix some issues with the pcap_loop man page.
295 Fix pcap_getnonblock() and pcap_setnonblock() to fill in the
296 supplied error message buffer
297 Fix typo that, it appeared, would cause pcap-libdlpi.c not to
298 compile (perhaps systems with libdlpi also have BPF and use
299 that instead)
300 Catch attempts to call pcap_compile() on a non-activated pcap_t
301 Fix crash on Linux with CAN-USB support without usbfs
302 Fix addition of VLAN tags for Linux cooked captures
303 Check for both EOPNOTSUPP and EINVAL after SIOCETHTOOL ioctl, so
304 that the driver can report either one if it doesn't support
305 SIOCETHTOOL
306 Add DLT_INFINIBAND and DLT_SCTP
307 Describe "proto XXX" and "protochain XXX" in the pcap-filter man
308 page
309 Handle either directories, or symlinks to directories, that
310 correspond to interfaces in /sys/class/net
311 Fix handling of VLAN tag insertion to check, on Linux 3.x
312 kernels, for VLAN tag valid flag
313 Clean up some man pages
314 Support libnl3 as well as libnl1 and libnl2 on Linux
315 Fix handling of Bluetooth devices on 3.x Linux kernels
316
317 Friday March 30, 2012. mcr@sandelman.ca
318 Summary for 1.3.0 libpcap release
319 Handle DLT_PFSYNC in {FreeBSD, other *BSD+Mac OS X, other}.
320 Linux: Don't fail if netfilter isn't enabled in the kernel.
321 Add new link-layer type for NFC Forum LLCP.
322 Put the CANUSB stuff into EXTRA_DIST, so it shows up in the release tarball.
323 Add LINKTYPE_NG40/DLT_NG40.
324 Add DLT_MPEG_2_TS/LINKTYPE_MPEG_2_TS for MPEG-2 transport streams.
325 [PATCH] Fix AIX-3.5 crash with read failure during stress
326 AIX fixes.
327 Introduce --disable-shared configure option.
328 Added initial support for canusb devices.
329 Include the pcap(3PCAP) additions as 1.2.1 changes.
330 many updates to documentation: pcap.3pcap.in
331 Improve 'inbound'/'outbound' capture filters under Linux.
332 Note the cleanup of handling of new DLT_/LINKTYPE_ values.
333 On Lion, don't build for PPC.
334 For mac80211 devices we need to clean up monitor mode on exit.
335
336 Friday December 9, 2011. guy@alum.mit.edu.
337 Summary for 1.2.1 libpcap release
338 Update README file.
339 Fix typoes in README.linux file.
340 Clean up some compiler warnings.
341 Fix Linux compile problems and tests for ethtool.h.
342 Treat Debian/kFreeBSD and GNU/Hurd as systems with GNU
343 toolchains.
344 Support 802.1 QinQ as a form of VLAN in filters.
345 Treat "carp" as equivalent to "vrrp" in filters.
346 Fix code generated for "ip6 protochain".
347 Add some new link-layer header types.
348 Support capturing NetFilter log messages on Linux.
349 Clean up some error messages.
350 Turn off monitor mode on exit for mac80211 interfaces on Linux.
351 Fix problems turning monitor mode on for non-mac80211 interfaces
352 on Linux.
353 Properly fail if /sys/class/net or /proc/net/dev exist but can't
354 be opened.
355 Fail if pcap_activate() is called on an already-activated
356 pcap_t, and add a test program for that.
357 Fix filtering in pcap-ng files.
358 Don't build for PowerPC on Mac OS X Lion.
359 Simplify handling of new DLT_/LINKTYPE_ values.
360 Expand pcap(3PCAP) man page.
361
362 Sunday July 24, 2011. mcr@sandelman.ca.
363 Summary for 1.2 libpcap release
364 All of the changes listed below for 1.1.1 and 1.1.2.
365 Changes to error handling for pcap_findalldevs().
366 Fix the calculation of the frame size in memory-mapped captures.
367 Add a link-layer header type for STANAG 5066 D_PDUs.
368 Add a link-layer type for a variant of 3GPP TS 27.010.
369 Noted real nature of LINKTYPE_ARCNET.
370 Add a link-layer type for DVB-CI.
371 Fix configure-script discovery of VLAN acceleration support.
372 see https://netoptimizer.blogspot.com/2010/09/tcpdump-vs-vlan-tags.html
373 Linux, HP-UX, AIX, NetBSD and OpenBSD compilation/conflict fixes.
374 Protect against including AIX 5.x's <net/bpf.h> having been included.
375 Add DLT_DBUS, for raw D-Bus messages.
376 Treat either EPERM or EACCES as "no soup for you".
377 Changes to permissions on DLPI systems.
378 Add DLT_IEEE802_15_4_NOFCS for 802.15.4 interfaces.
379
380 Fri. August 6, 2010. guy@alum.mit.edu.
381 Summary for 1.1.2 libpcap release
382 Return DLT_ values, not raw LINKTYPE_ values from
383 pcap_datalink() when reading pcap-ng files
384 Add support for "wlan ra" and "wlan ta", to check the RA and TA
385 of WLAN frames that have them
386 Don't crash if "wlan addr{1,2,3,4}" are used without 802.11
387 headers
388 Do filtering on USB and Bluetooth capturing
389 On FreeBSD/SPARC64, use -fPIC - it's apparently necessary
390 Check for valid port numbers (fit in a 16-bit unsigned field) in
391 "port" filters
392 Reject attempts to put savefiles into non-blocking mode
393 Check for "no such device" for the "get the media types" ioctl
394 in *BSD
395 Improve error messages from bpf_open(), and let it do the error
396 handling
397 Return more specific errors from pcap_can_set_rfmon(); fix
398 documentation
399 Update description fetching code for FreeBSD, fix code for
400 OpenBSD
401 Ignore /sys/net/dev files if we get ENODEV for them, not just
402 ENXIO; fixes handling of bonding devices on Linux
403 Fix check for a constant 0 argument to BPF_DIV
404 Use the right version of ar when cross-building
405 Free any filter set on a savefile when the savefile is closed
406 Include the CFLAGS setting when configure was run in the
407 compiler flags
408 Add support for 802.15.4 interfaces on Linux
409
410 Thu. April 1, 2010. guy@alum.mit.edu.
411 Summary for 1.1.1 libpcap release
412 Update CHANGES to reflect more of the changes in 1.1.0.
413 Fix build on RHEL5.
414 Fix shared library build on AIX.
415
416 Thu. March 11, 2010. ken@netfunctional.ca/guy@alum.mit.edu.
417 Summary for 1.1.0 libpcap release
418 Add SocketCAN capture support
419 Add Myricom SNF API support
420 Update Endace DAG and ERF support
421 Add support for shared libraries on Solaris, HP-UX, and AIX
422 Build, install, and un-install shared libraries by default;
423 don't build/install shared libraries on platforms we don't support
424 Fix building from a directory other than the source directory
425 Fix compiler warnings and builds on some platforms
426 Update config.guess and config.sub
427 Support monitor mode on mac80211 devices on Linux
428 Fix USB memory-mapped capturing on Linux; it requires a new DLT_
429 value
430 On Linux, scan /sys/class/net for devices if we have it; scan
431 it, or /proc/net/dev if we don't have /sys/class/net, even if
432 we have getifaddrs(), as it'll find interfaces with no
433 addresses
434 Add limited support for reading pcap-ng files
435 Fix BPF driver-loading error handling on AIX
436 Support getting the full-length interface description on FreeBSD
437 In the lexical analyzer, free up any addrinfo structure we got back
438 from getaddrinfo().
439 Add support for BPF and libdlpi in OpenSolaris (and SXCE)
440 Hyphenate "link-layer" everywhere
441 Add /sys/kernel/debug/usb/usbmon to the list of usbmon locations
442 In pcap_read_linux_mmap(), if there are no frames available, call
443 poll() even if we're in non-blocking mode, so we pick up
444 errors, and check for the errors in question.
445 Note that poll() works on BPF devices is Snow Leopard
446 If an ENXIO or ENETDOWN is received, it may mean the device has
447 gone away. Deal with it.
448 For BPF, raise the default capture buffer size to from 32k to 512k
449 Support ps_ifdrop on Linux
450 Added a bunch of #ifdef directives to make wpcap.dll (WinPcap) compile
451 under cygwin.
452 Changes to Linux mmapped captures.
453 Fix bug where create_ring would fail for particular snaplen and
454 buffer size combinations
455 Update pcap-config so that it handles libpcap requiring
456 additional libraries
457 Add workaround for threadsafeness on Windows
458 Add missing mapping for DLT_ENC <-> LINKTYPE_ENC
459 DLT: Add DLT_CAN_SOCKETCAN
460 DLT: Add Solaris ipnet
461 Don't check for DLT_IPNET if it's not defined
462 Add link-layer types for Fibre Channel FC-2
463 Add link-layer types for Wireless HART
464 Add link-layer types for AOS
465 Add link-layer types for DECT
466 Autoconf fixes (AIX, HP-UX, OSF/1, Tru64 cleanups)
467 Install headers unconditionally, and include vlan.h/bluetooth.h if
468 enabled
469 Autoconf fixes+cleanup
470 Support enabling/disabling bluetooth (--{en,dis}able-bluetooth)
471 Support disabling SITA support (--without-sita)
472 Return -1 on failure to create packet ring (if supported but
473 creation failed)
474 Fix handling of 'any' device, so that it can be opened, and no longer
475 attempt to open it in Monitor mode
476 Add support for snapshot length for USB Memory-Mapped Interface
477 Fix configure and build on recent Linux kernels
478 Fix memory-mapped Linux capture to support pcap_next() and
479 pcap_next_ex()
480 Fixes for Linux USB capture
481 DLT: Add DLT_LINUX_EVDEV
482 DLT: Add DLT_GSMTAP_UM
483 DLT: Add DLT_GSMTAP_ABIS
484
485 Mon. October 27, 2008. ken@netfunctional.ca. Summary for 1.0.0 libpcap release
486 Compile with IPv6 support by default
487 Compile with large file support on by default
488 Add pcap-config script, which deals with -I/-L flags for compiling
489 DLT: Add IPMB
490 DLT: Add LAPD
491 DLT: Add AX25 (AX.25 w/KISS header)
492 DLT: Add JUNIPER_ST
493 802.15.4 support
494 Variable length 802.11 header support
495 X2E data type support
496 SITA ACN Interface support - see README.sita
497 Support for memory-mapped capture on Linux
498 Support for zerocopy BPF on platforms that support it
499 Support for setting buffer size when opening devices
500 Support for setting monitor mode when opening 802.11 devices
501 Better support for dealing with VLAN tagging/stripping on Linux
502 Fix dynamic library support on OSX
503 Return PCAP_ERROR_IFACE_NOT_UP if the interface isn't 'UP', so applications
504 can print better diagnostic information
505 Return PCAP_ERROR_PERM_DENIED if we don't have permission to open a device, so
506 applications can tell the user they need to go play with permissions
507 On Linux, ignore ENETDOWN so we can continue to capture packets if the
508 interface goes down and comes back up again.
509 On Linux, support new tpacket frame headers (2.6.27+)
510 On Mac OS X, add scripts for changing permissions on /dev/bpf* and launchd plist
511 On Solaris, support 'passive mode' on systems that support it
512 Fixes to autoconf and general build environment
513 Man page reorganization + cleanup
514 Autogenerate VERSION numbers better
515
516 Mon. September 10, 2007. ken@xelerance.com. Summary for 0.9.8 libpcap release
517 Change build process to put public libpcap headers into pcap subir
518 DLT: Add value for IPMI IPMB packets
519 DLT: Add value for u10 Networks boards
520 Require <net/pfvar.h> for pf definitions - allows reading of pflog formatted
521 libpcap files on an OS other than where the file was generated
522
523 Wed. April 25, 2007. ken@xelerance.com. Summary for 0.9.6 libpcap release
524
525 Put the public libpcap headers into a pcap subdirectory in both the
526 source directory and the target include directory, and have include
527 files at the top-level directory to include those headers, for
528 backwards compatibility.
529 Add Bluetooth support
530 Add USB capturing support on Linux
531 Add support for the binary USB sniffing interface in Linux
532 Add support for new FreeBSD BIOCSDIRECTION ioctl
533 Add additional filter operations for 802.11 frame types
534 Add support for filtering on MTP2 frame types
535 Propagate some changes from the main branch, so the x.9 branch has
536 all the DLT_ and LINKTYPE_ values that the main branch does
537 Reserved a DLT_ and SAVEFILE_ value for PPI (Per Packet Info)
538 encapsulated packets
539 Add LINKTYPE_ for IEEE 802.15.4, with address fields padded as done
540 by Linux drivers
541 Add LINKTYPE_ value corresponding to DLT_IEEE802_16_MAC_CPS.
542 Add DLT for IEEE 802.16 (WiMAX) MAC Common Part Sublayer
543 Add DLT for Bluetooth HCI UART transport layer
544 When building a shared library, build with "-fPIC" on Linux to support x86_64
545 Link with "$(CC) -shared" rather than "ld -shared" when building a
546 ".so" shared library
547 Add support for autoconf 2.60
548 Fixes to discard unread packets when changing filters
549 Changes to handle name changes in the DAG library resulting from
550 switching to libtool.
551 Add support for new DAG ERF types.
552 Add an explicit "-ldag" when building the shared library, so the DAG
553 library dependency is explicit.
554 Mac OSX fixes for dealing with "wlt" devices
555 Fixes in add_or_find_if() & pcap_findalldevs() to optimize generating
556 device lists
557 Fixed a bug in pcap_open_live(). The return value of PacketSetHwFilter
558 was not checked.
559
560 Tue. September 19, 2006. ken@xelerance.com. Summary for 0.9.5 libpcap release
561
562 Support for LAPD frames with vISDN
563 Support for ERF on channelized T1/E1 cards via DAG API
564 Fix capitalization that caused issues crossc compiling on Linux
565 Better failure detection on PacketGetAdapterNames()
566 Fixes for MPLS packet generation (link layer)
567 OP_PACKET now matches the beginning of the packet, instead of
568 beginning+link-layer
569 Add DLT/LINKTYPE for carrying FRF.16 Multi-link Frame Relay
570 Fix allocation of buffer for list of link-layer types
571 Added a new DLT and LINKTYPE value for ARINC 653 Interpartition Communcation Messages
572 Fixed a typo in a DLT value: it should start with DLT_ and not LINKTYPE_
573 Redefined DLT_CAN20B and LINKTYPE_CAN20B as #190 (as this is the right value for CAN).
574 Added definition for DLT_A429 and LINKTYPE_A429 as #184.
575 Added a new DLT and LINKTYPE value for CAN v2.0B frames.
576 Add support for DLT_JUNIPER_VP.
577 Don't double-count received packets on Linux systems that
578 support the PACKET_STATISTICS getsockopt() argument on
579 PF_PACKET sockets.
580 Add support for DLT_IEEE802_11 and DLT_IEEE802_11_RADIO link
581 layers in Windows
582 Add support to build libpcap.lib and wpcap.dll under Cygnus and
583 MingW32.
584
585 Mon. September 5, 2005. ken@xelerance.com. Summary for 0.9.4 libpcap release
586
587 Support for radiotap on Linux (Mike Kershaw)
588 Fixes for HP-UX
589 Support for additional Juniper link-layer types
590 Fixes for filters on MPLS-encapsulated packets
591 "vlan" filter fixed
592 "pppoed" and "pppoes" filters added; the latter modifies later
593 parts of the filter expression to look at the PPP headers and
594 headers in the PPP payload
595
596 Tue. July 5, 2005. ken@xelerance.com. Summary for 0.9.3 libpcap release
597
598 Fixes for compiling on nearly every platform,
599 including improved 64bit support
600 MSDOS Support
601 Add support for sending packets
602 OpenBSD pf format support
603 IrDA capture (Linux only)
604
605 Tue. March 30, 2004. mcr@sandelman.ottawa.on.ca. Summary for 3.8.3 release
606
607 Fixed minor problem in gencode.c that would appear on 64-bit
608 platforms.
609 Version number is now sane.
610
611 Mon. March 29, 2004. mcr@sandelman.ottawa.on.ca. Summary for 3.8.2 release
612
613 updates for autoconf 2.5
614 fixes for ppp interfaces for freebsd 4.1
615 pcap gencode can generate code for 802.11, IEEE1394, and pflog.
616
617 Wed. November 12, 2003. mcr@sandelman.ottawa.on.ca. Summary for 0.8 release
618
619 added pcap_findalldevs()
620 Win32 patches from NetGroup, Politecnico di Torino (Italy)
621 OpenBSD pf, DLT_PFLOG added
622 Many changes to ATM support.
623 lookup pcap_lookupnet()
624 Added DLT_ARCNET_LINUX, DLT_ENC, DLT_IEEE802_11_RADIO, DLT_SUNATM,
625 DLT_IP_OVER_FC, DLT_FRELAY, others.
626 Sigh. More AIX wonderfulness.
627 Document updates.
628 Changes to API: pcap_next_ex(), pcap_breakloop(), pcap_dump_flush(),
629 pcap_list_datalinks(), pcap_set_datalink(),
630 pcap_lib_version(), pcap_datalink_val_to_name(),
631 pcap_datalink_name_to_val(), new error returns.
632
633 Tuesday, February 25, 2003. fenner@research.att.com. 0.7.2 release
634
635 Support link types that use 802.2 always, never, and sometimes.
636 Don't decrease the size of the BPF buffer from the default.
637 Support frame relay.
638 Handle 32-bit timestamps in DLPI, and pass the right buffer size.
639 Handle Linux systems with modern kernel but without
640 SOL_PACKET in the userland headers.
641 Linux support for ARPHRD_RAWHDLC.
642 Handle 32-bit timestamps in snoop.
643 Support eg (Octane/O2xxx/O3xxx Gigabit) devices.
644 Add new reserved DLT types.
645
646 Monday October 23, 2001. mcr@sandelman.ottawa.on.ca. Summary for 0.7 release
647
648 Added pcap_findalldevs() call to get list of interfaces in a MI way.
649
650 pcap_stats() has been documented as to what its counters mean on
651 each platform.
652
653 Tuesday January 9, 2001. guy@alum.mit.edu. Summary for 0.6 release
654
655 New Linux libpcap implementation, which, in 2.2 and later
656 kernels, uses PF_PACKET sockets and supports kernel packet
657 filtering (if compiled into the kernel), and supports the "any"
658 device for capturing on all interfaces. Cleans up promiscuous
659 mode better on pre-2.2 kernels, and has various other fixes
660 (handles 2.4 ARPHRD_IEEE802_TR, handles ISDN devices better,
661 doesn't show duplicate packets on loopback interface, etc.).
662
663 Fixed HP-UX libpcap implementation to correctly get the PPA for
664 an interface, to allow interfaces to be opened by interface name.
665
666 libpcap savefiles have system-independent link-layer type values
667 in the header, rather than sometimes platform-dependent DLT_
668 values, to make it easier to exchange capture files between
669 different OSes.
670
671 Non-standard capture files produced by some Linux tcpdumps, e.g.
672 the one from Red Hat Linux 6.2 and later, can now be read.
673
674 Updated autoconf stock files.
675
676 Filter expressions can filter on VLAN IDs and various OSI
677 protocols, and work on Token Ring (with non-source-routed
678 packets).
679
680 "pcap_open_dead()" added to allow compiling filter expressions
681 to pcap code without opening a capture device or capture file.
682
683 Header files fixed to allow use in C++ programs.
684
685 Removed dependancy on native headers for packet layout.
686 Removed Linux specific headers that were shipped.
687
688 Security fixes: Strcpy replaced with strlcpy, sprintf replaced
689 with snprintf.
690
691 Fixed bug that could cause subsequent "pcap_compile()"s to fail
692 erroneously after one compile failed.
693
694 Assorted other bug fixes.
695
696 README.aix and README.linux files added to describe
697 platform-specific issues.
698
699 "getifaddrs()" rather than SIOCGIFCONF used, if available.
700
701 v0.5 Sat Jun 10 11:09:15 PDT 2000
702
703 itojun@iijlab.net
704 - Brought in KAME IPv6/IPsec bpf compiler.
705 - Fixes for NetBSD.
706 - Support added for OpenBSD DLT_LOOP and BSD/OS DLT_C_HDLC (Cisco HDLC),
707 and changes to work around different BSDs having different DLT_ types
708 with the same numeric value.
709
710 Assar Westerlund <assar@sics.se>
711 - Building outside the source code tree fixed.
712 - Changed to write out time stamps with 32-bit seconds and microseconds
713 fields, regardless of whether those fields are 32 bits or 64 bits in
714 the OS's native "struct timeval".
715 - Changed "pcap_lookupdev()" to dynamically grow the buffer into which
716 the list of interfaces is read as necessary in order to hold the
717 entire list.
718
719 Greg Troxel <gdt@ir.bbn.com>
720 - Added a new "pcap_compile_nopcap()", which lets you compile a filter
721 expression into a BPF program without having an open live capture or
722 capture file.
723
724 v0.4 Sat Jul 25 12:40:09 PDT 1998
725
726 - Fix endian problem with DLT_NULL devices. From FreeBSD via Bill
727 Fenner (fenner@parc.xerox.com)
728
729 - Fix alignment problem with FDDI under DLPI. This was causing core
730 dumps under Solaris.
731
732 - Added configure options to disable flex and bison. Resulted from a
733 bug report by barnett@grymoire.crd.ge.com (Bruce Barnett). Also added
734 options to disable gcc and to force a particular packet capture type.
735
736 - Added support for Fore ATM interfaces (qaa and fa) under IRIX. Thanks
737 to John Hawkinson (jhawk@mit.edu)
738
739 - Change Linux PPP and SLIP to use DLT_RAW since the kernel does not
740 supply any "link layer" data.
741
742 - Change Linux to use SIOCGIFHWADDR ioctl to determine link layer type.
743 Thanks to Thomas Sailer (sailer@ife.ee.ethz.ch)
744
745 - Change IRIX PPP to use DLT_RAW since the kernel does not supply any
746 "link layer" data.
747
748 - Modified to support the new BSD/OS 2.1 PPP and SLIP link layer header
749 formats.
750
751 - Added some new SGI snoop interface types. Thanks to Steve Alexander
752 (sca@refugee.engr.sgi.com)
753
754 - Fixes for HP-UX 10.20 (which is similar to HP-UX 9). Thanks to
755 Richard Allen (ra@hp.is) and Steinar Haug (sthaug@nethelp.no)
756
757 - Fddi supports broadcast as reported by Jeff Macdonald
758 (jeff@iacnet.com). Also correct ieee802 and arcnet.
759
760 - Determine Linux pcap buffer size at run time or else it might not be
761 big enough for some interface types (e.g. FDDI). Thanks to Jes
762 Sorensen (Jes.Sorensen@cern.ch)
763
764 - Fix some linux alignment problems.
765
766 - Document promisc argument to pcap_open_live(). Reported by Ian Marsh
767 (ianm@sics.se)
768
769 - Support Metricom radio packets under Linux. Thanks to Kevin Lai
770 (laik@gunpowder.stanford.edu)
771
772 - Bind to interface name under Linux to avoid packets from multiple
773 interfaces on multi-homed hosts. Thanks to Kevin Lai
774 (laik@gunpowder.stanford.edu)
775
776 - Change L_SET to SEEK_SET for HP-UX. Thanks to Roland Roberts
777 (rroberts@muller.com)
778
779 - Fixed an uninitialized memory reference found by Kent Vander Velden
780 (graphix@iastate.edu)
781
782 - Fixed lex pattern for IDs to allow leading digits. As reported by
783 Theo de Raadt (deraadt@cvs.openbsd.org)
784
785 - Fixed Linux include file problems when using GNU libc.
786
787 - Ifdef ARPHRD_FDDI since not all versions of the Linux kernel have it.
788 Reported reported by Eric Jacksch (jacksch@tenebris.ca)
789
790 - Fixed bug in pcap_dispatch() that kept it from returning on packet
791 timeouts.
792
793 - Changed ISLOOPBACK() macro when IFF_LOOPBACK isn't available to check
794 for "lo" followed by an eos or digit (newer versions of Linux
795 apparently call the loopback "lo" instead of "lo0").
796
797 - Fixed Linux networking include files to use ints instead of longs to
798 avoid problems with 64 bit longs on the alpha. Thanks to Cristian
799 Gafton (gafton@redhat.com)
800
801 v0.3 Sat Nov 30 20:56:27 PST 1996
802
803 - Added Linux support.
804
805 - Fixed savefile bugs.
806
807 - Solaris x86 fix from Tim Rylance (t.rylance@elsevier.nl)
808
809 - Add support for bpf kernel port filters.
810
811 - Remove duplicate atalk protocol table entry. Thanks to Christian
812 Hopps (chopps@water.emich.edu)
813
814 - Fixed pcap_lookupdev() to ignore nonexistent devices. This was
815 reported to happen under BSD/OS by David Vincenzetti
816 (vince@cryptonet.it)
817
818 - Avoid solaris compiler warnings. Thanks to Bruce Barnett
819 (barnett@grymoire.crd.ge.com)
820
821 v0.2.1 Sun Jul 14 03:02:26 PDT 1996
822
823 - Fixes for HP-UX 10. Thanks in part to to Thomas Wolfram
824 (wolf@prz.tu-berlin.de) and Rick Jones (raj@hpisrdq.cup.hp.com)
825
826 - Added support for SINIX. Thanks to Andrej Borsenkow
827 (borsenkow.msk@sni.de)
828
829 - Fixes for AIX (although this system is not yet supported). Thanks to
830 John Hawkinson (jhawk@mit.edu)
831
832 - Use autoconf's idea of the top level directory in install targets.
833 Thanks to John Hawkinson.
834
835 - Add missing autoconf packet capture result message. Thanks to Bill
836 Fenner (fenner@parc.xerox.com)
837
838 - Fixed padding problems in the pf module.
839
840 - Fixed some more alignment problems on the alpha.
841
842 - Added explicit netmask support. Thanks to Steve Nuchia
843 (steve@research.oknet.com)
844
845 - Fixed to handle raw ip addresses such as 0.0.0.1 without "left
846 justifing"
847
848 - Add "sca" keyword (for DEC cluster services) as suggested by Terry
849 Kennedy (terry@spcvxa.spc.edu)
850
851 - Add "atalk" keyword as suggested by John Hawkinson.
852
853 - Add "igrp" keyword.
854
855 - Fixed HID definition in grammar.y to be a string, not a value.
856
857 - Use $CC when checking gcc version. Thanks to Carl Lindberg
858 (carl_lindberg@blacksmith.com)
859
860 - Removed obsolete reference to pcap_immediate() from the man page.
861 Michael Stolarchuk (mts@terminator.rs.itd.umich.edu)
862
863 - DLT_NULL has a 4 byte family header. Thanks to Jeffrey Honig
864 (jch@bsdi.com)
865
866 v0.2 Sun Jun 23 02:28:42 PDT 1996
867
868 - Add support for HP-UX. Resulted from code contributed by Tom Murray
869 (tmurray@hpindck.cup.hp.com) and Philippe-Andri Prindeville
870 (philipp@res.enst.fr)
871
872 - Update INSTALL with a reminder to install include files. Thanks to
873 Mark Andrews (mandrews@aw.sgi.com)
874
875 - Fix bpf compiler alignment bug on the alpha.
876
877 - Use autoconf to detect architectures that can't handle misaligned
878 accesses.
879
880 - Added loopback support for snoop. Resulted from report Steve
881 Alexander (sca@engr.sgi.com)
882
883 v0.1 Fri Apr 28 18:11:03 PDT 1995
884
885 - Fixed compiler and optimizer bugs. The BPF filter engine uses unsigned
886 comparison operators, while the code generator and optimizer assumed
887 signed semantics in several places. Thanks to Charlie Slater
888 (cslater@imatek.com) for pointing this out.
889
890 - Removed FDDI ifdef's, they aren't really needed. Resulted from report
891 by Gary Veum (veum@boa.gsfc.nasa.gov).
892
893 - Add pcap-null.c which allows offline use of libpcap on systems that
894 don't support live package capture. This feature resulting from a
895 request from Jan van Oorschot (j.p.m.voorschot@et.tudelft.nl).
896
897 - Make bpf_compile() reentrant. Fix thanks to Pascal Hennequin
898 (Pascal.Hennequin@hugo.int-evry.fr).
899
900 - Port to GNU autoconf.
901
902 - Fix pcap-dlpi.c to work with isdn. Resulted from report by Flemming
903 Johansen (fsj@csd.cri.dk).
904
905 - Handle multi-digit interface unit numbers (aka ppa's) under dlpi.
906 Resulted from report by Daniel Ehrlich (ehrlich@cse.psu.edu).
907
908 - Fix pcap-dlpi.c to work in non-promiscuous mode. Resulted from report
909 by Jeff Murphy (jcmurphy@acsu.buffalo.edu).
910
911 - Add support for "long jumps". Thanks to Jeffrey Mogul
912 (mogul@pa.dec.com).
913
914 - Fix minor problems when compiling with BDEBUG as noticed by Scott
915 Bertilson (scott@unet.umn.edu).
916
917 - Declare sys_errlist "const char *const" to avoid problems under
918 FreeBSD. Resulted from report by jher@eden.com.
919
920 v0.0.6 Fri Apr 28 04:07:13 PDT 1995
921
922 - Add missing variable declaration missing from 0.0.6
923
924 v0.0.5 Fri Apr 28 00:22:21 PDT 1995
925
926 - Workaround for problems when pcap_read() returns 0 due to the timeout
927 expiring.
928
929 v0.0.4 Thu Apr 20 20:41:48 PDT 1995
930
931 - Change configuration to not use gcc v2 flags with gcc v1.
932
933 - Fixed a bug in pcap_next(); if pcap_dispatch() returns 0, pcap_next()
934 should also return 0. Thanks to Richard Stevens (rstevens@noao.edu).
935
936 - Fixed configure to test for snoop before dlpi to avoid problems under
937 IRIX 5. Thanks to J. Eric Townsend (jet@abulafia.genmagic.com).
938
939 - Hack around deficiency in Ultrix's make.
940
941 - Fix two bugs related to the Solaris pre-5.3.2 bufmod bug; handle
942 savefiles that have more than snapshot bytes of data in them (so we
943 can read old savefiles) and avoid writing such files.
944
945 - Added checkioctl which is used with gcc to check that the
946 "fixincludes" script has been run.
947
948 v0.0.3 Tue Oct 18 18:13:46 PDT 1994
949
950 - Fixed configure to test for snoop before dlpi to avoid problems under
951 IRIX 5. Thanks to J. Eric Townsend (jet@abulafia.genmagic.com).
952
953 v0.0.2 Wed Oct 12 20:56:37 PDT 1994
954
955 - Implement timeout in the dlpi pcap_open_live(). Thanks to Richard
956 Stevens.
957
958 - Determine pcap link type from dlpi media type. Resulted from report
959 by Mahesh Jethanandani (mahesh@npix.com).
960
961 v0.0.1 Fri Jun 24 14:50:57 PDT 1994
962
963 - Fixed bug in nit_setflags() in pcap-snit.c. The streams ioctl timeout
964 wasn't being initialized sometimes resulting in an "NIOCSFLAGS:
965 Invalid argument" error under OSF/1. Reported by Matt Day
966 (mday@artisoft.com) and Danny Mitzel (dmitzel@whitney.hitc.com).
967
968 - Turn on FDDI support by default.
969
970 v0.0 Mon Jun 20 19:20:16 PDT 1994
971
972 - Initial release.
973
974 - Fixed bug with greater/less keywords, reported by Mark Andrews
975 (mandrews@alias.com).
976
977 - Fix bug where '|' was defined as BPF_AND instead of BPF_OR, reported
978 by Elan Amir (elan@leeb.cs.berkeley.edu).
979
980 - Machines with little-endian byte ordering are supported thanks to
981 Jeff Mogul.
982
983 - Add hack for version 2.3 savefiles which don't have caplen and len
984 swapped thanks to Vern Paxson.
985
986 - Added "&&" and "||" aliases for "and" and "or" thanks to Vern Paxson.
987
988 - Added length, inbound and outbound keywords.