]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/libpcap/CHANGES
Merge llvm-project release/16.x llvmorg-16.0.3-0-gda3cd333bea5
[FreeBSD/FreeBSD.git] / contrib / libpcap / CHANGES
1 Friday, April 7, 2023 / The Tcpdump Group
2   Summary for 1.10.4 libpcap release
3     Source code:
4       Fix spaces before tabs in indentation.
5     rpcap:
6       Fix name of launchd service.
7     Documentation:
8       Document use of rpcapd with systemd, launchd, inetd, and xinetd.
9     Building and testing:
10       Require at least pkg-config 0.17.0, as we use --static.
11       Get rid of the remains of gnuc.h.
12       Require at least autoconf 2.69.
13       Update config.{guess,sub}, timestamps 2023-01-01,2023-01-21.
14
15 Thursday, January 12, 2023 / The Tcpdump Group
16   Summary for 1.10.3 libpcap release
17     Source code:
18       Sort the PUBHDR variable in Makefile.in in "ls" order.
19       Fix typo in comment in pflog.h.
20       Remove two no-longer-present files from .gitignore.
21       Update code and comments for handling failure to set promiscuous
22         mode based on new information.
23     Building and testing:
24       install: Fixed not to install the non-public pcap-util.h header.
25       pcap-config: add a --version flag.
26       Makefile.in: Add some missing files in the distclean target.
27
28 Saturday, December 31, 2022 / The Tcpdump Group
29   Summary for 1.10.2 libpcap release
30     Source code:
31       Use __builtin_unreachable() in PCAP_UNREACHABLE.
32       Use AS_HELP_STRING macro instead of AC_HELP_STRING in the
33         configure scripts, to avoid deprecation warnings.
34       Change availability tags in pcap.h to make it easier to
35         arrange for it to be used in Darwin releases.
36       Use AS_HELP_STRING for --enable-remote.
37       Fix some formatting string issues found by cppcheck.
38       Various small code and comment cleanups.
39       Use PCAP_ERROR (defined as -1) rather than explicit -1 for
40         functions the documentation says return PCAP_ERROR.
41       Remove unused code from the filter compiler.
42       Use _declspec(deprecated(msg)) rather than __pragma(deprecated)
43         for Windows deprecation warnings, so the message that was
44         specified shows up.
45       diag-control.h: define PCAP_DO_PRAGMA() iff we're going to use it.
46       Use "%d" to print some signed ints.
47       Use the Wayback Machine for a removed document in a comment.
48       Add some const qualifiers.
49       RDMA: Use PRIu64 to print a uint64_t.
50     "Dead" pcap_ts from pcap_open_dead() and ..._with_tstamp_precision():
51         Don't crash if pcap_breakloop() is called.
52     Savefiles:
53       Fix pcap_dispatch() to return number of packets processed, rather
54         than 0, even at EOF.
55       If we get an error writing the packet header, don't write the
56         packet data.
57       Put PFLOG UID and PID values in the header into host byte order
58         when reading a LINKTYPE_PFLOG file.
59       Put CAN ID field in CAN pseudo-headers for LINUX_SLL2, as we do
60         for LINUX_SLL.
61       Fix inorrectly-computed "real" length for isochronous USB
62         transfers when reading savefiles.
63       Don't crash if pcap_can_set_rfmon() is called.
64       Fix pcap_offline_read() loop.
65     Capture:
66       Never process more than INT_MAX packets in a pcap_dispatch() call,
67         to avoid integer overflow (issue #1087).
68       Improve error messages for "no such device" and "permission
69         denied" errors.
70       SITA: Fix a typo in a variable name.
71     Packet filtering:
72       Get PFLOG header length from the length value in the header.
73       Support all the direction, reason, and action types supported by
74         all systems that support PFLOG.
75       Don't require PFLOG support on the target machine in order to
76         support PFLOG filtering (also fixes issue #1076).
77       Expand abbreviations into "proto X" properly.
78       gencode.c: Update a comment about the VLAN TPID test.
79       Add the minimum and maximum matching DLTs to an error message.
80     Linux:
81       Fix memory leak in capture device open (pull request #1038).
82       Fix detection of CAN/CAN FD packets in direction check (issue
83         #1051).
84       Fix double-free crashes on errors such as running on a kernel with
85         CONFIG_PACKET_MMAP not configured (issue #1054).
86       Use DLT_CAN_SOCKETCAN for CANbus interfaces (issue #1052; includes
87         changes from pull request #1035).
88       Make sure the CANFD_FDF can be relied on to indicate whether a
89         CANbus packet is a CAN frame or a CAN FD frame
90       Improve error message for "out of memory" errors for kernel
91         filters (see issue #1089).
92       Fix pcap_findalldevs() to find usbmon devices.
93       Fix handling of VLAN tagged packets if the link-layer type is
94         changed from DLT_LINUX_SLL to DLT_LINUX_SLL2 (see issue #1105).
95       Always turn on PACKET_AUXDATA (see issue #1105).
96       We require 2.6.27 or later, so PACKET_RESERVE is available.
97       Make sure there's reserved space for a DLT_LINUX_SLL2 header
98         when capturing.
99       Correctly compute the "real" length for isochronous USB transfers.
100       Don't have an eventfd descriptor open in non-blocking mode, so as
101         not to waste descriptors.
102       netfilter: Squelch a narrowing warning (To be look at before 2038).
103     BPF capture (*BSD, macOS, AIX, Solaris 11):
104       Fix case where a device open might fail, rather than falling back
105         to a smaller buffer size, when the initial buffer size is too
106         big.
107       Use an unsigned device number to iterate over BPF devices, to
108         squelch a compiler warning.
109     NetBSD:
110       Fix handling of LINKTYPE_HDLC/DLT_HDLC.
111     rpcap:
112       Fix unaligned accesses in rpcapd (pull request #1037).
113       Fix code to process port number.
114       Clean up findalldevs code in rpcapd.
115       Clean up bufferizing code.
116       Fix a file descriptor/handle leak in pcap_findalldevs_ex()
117         (Coverity CID 1507240).
118       Improve error messages for host and port resolution errors.
119       Fix connect code not to fail if both IPv4 and IPv6 addresses are
120         tried.
121       Improve connect failure error message.
122       Provide an error message for a bad authentication reply size.
123       For link-layer types with host-endian fields in the header, fix
124         those fields if capturing from a server with a different byte
125         order.
126       Suppress temporarily the warnings with "enable remote packet capture".
127     Windows:
128       Add support for NdisMediumIP (pull request #1027).
129       Don't require applications using pcap to be built with VS 2015 or
130         later.
131       Use the correct string for the DLL VersionInfo.
132       Remove unnecessary DllMain() function.
133       Correctly handle ERROR_INVALID_FUNCTION from
134         PacketGetTimestampModes() (indicate that WinPcap or an older
135         version of Npcap is probably installed).
136       Fix use-after-free in some cases when a pcap_t is closed.
137       Make sure an error is returned by pcap_create_interface() if
138         PacketOpenAdapter() fails.
139       Return an error if the driver reports 0 timestamp modes supported.
140       Close the ADAPTER handle for some errors in
141         pcap_create_interface().
142       Get rid of old umaintained VS project files.
143       Fix deprecation warning for pcap_handle().
144       Npcap is now at npcap.com, not npcap.org.
145       Make sure "no such device" and "no permission to open device"
146         errors show up in pcap_activate(), not pcap_create() (fixes,
147         among other things, tcpdump -i <interface-number>).
148       npcap: squelch deprecation warnings for kernel dump mode.
149     Haiku:
150       Implement pcap_lib_version(), as now required.
151       Handle negative or too-large snaplen values.
152       Fix various build issues and warnings.
153     Building and testing:
154       Update configure-time universal build checks for macOS.
155       Update config.guess and config.sub.
156       If we look for an SSL library with pkg-config in configure script,
157         try pkg-config first.
158       If we have pkg-config and Homebrew, try to set pkg-config up to
159         find Homebrew packages.
160       Handle some Autoconf/make errors better.
161       Use "git archive" for the "make releasetar" process.
162       Remove the release candidate rcX targets.
163       Fix compiling on Solaris 9/SPARC and 11/AMD64.
164       Address assorted compiler warnings.
165       Fix cross-building on Linux for Windows with mingw32 for Win64
166         (pull request #1031).
167       Properly set installation directory on Windows when not compiling
168         with MSVC.
169       Fix configure script checks for compiler flags.
170       Give more details if check for usable (F)Lex fails.
171       Fix compiling with GCC 4.6.4.
172       Don't use add_compile_options() with CMake, as we currently don't
173         require 2.8.12, where it first appeared.
174       Don't provide -L/usr/lib for pkg-config --libs in pkg-config.
175       Fix error message for inadequate Bison/Berkeley YACC.
176       configure: correctly do some DPDK checks.
177       Only use pkg-config when checking for DPDK.
178       Allow the path in which DPDK is installed to be specified.
179       Use pkg-config first when checking for libibverbs.
180       CMake: fix check for libibverbs with Sun's C compiler.
181       Have CMake warn if no capture mechanism can be found.
182       Don't do stuff requiring 3.19 or later on earlier CMakes.
183       Squelch some CMake warnings.
184       Fix diag-control.h to handle compiling with clang-cl (issues
185         #1101 and #1115).
186       Cleanup various leftover cruft in the configure script.
187       Fix building without protochain support. (GH #852)
188       Check for a usable YACC (or Bison) and {F}lex in CMake, as we do
189         in autotools.
190       Only check for a C++ compiler on Haiku, as that's the only
191         platform with C++ code, and make sure they generate code for
192         the same instruction set bit-width (both 32-bit or both 64-bit)
193         (issue #1112).
194       On Solaris, check the target bit-width and set PKG_CONFIG_PATH
195         appropriately, to handle the mess that is the D-Bus library
196         package (issue #1112).
197       Fix generation of pcap-config and libpcap.pc files (issue #1062).
198       pcap-config: don't assume the system library directory is /usr/lib.
199       pcap-config: add a --static-pcap-only flag.
200       Cirrus CI: Use the same configuration as for the main branch.
201       Add four libpcap test files.
202       Update Npcap SDK to 1.13.
203       Makefile.in: Use TEST_DIST, like for tcpdump.
204       Remove awk code from mkdep.
205       Cirrus CI: Add the libssl-dev package in the Linux task.
206       Cirrus CI: Add the openssl@3 brew package in the macOS task.
207       Get "make shellcheck" to pass again.
208       CMake: Build valgrindtest only if Autoconf would.
209       CMake: use ${CMAKE_INSTALL_SBINDIR} rather than just sbin.
210       CMake: use NUL: as the null device on Windows.
211       autoconf: fix typo in test of macOS version.
212       Makefile.in: Add two missing files in EXTRA_DIST.
213       autotools, cmake: provide an rpath option if necessary.
214       configure: get rid of the attempt to auto-run PKG_PROG_PKG_CONFIG.
215       configure: use PKG_CHECK_MODULES to run pkg-config.
216     Documentation:
217       Add README.solaris.md.
218       Add SCTP to pcap-filter(7).
219       Note that = and == are the same operator in filters (issue #1044).
220       Update INSTALL.md, README.md, and README.solaris.md.
221       Update and clean up CONTRIBUTING.md.
222       Trim documentation of support for now-dead UN*Xe and older
223         versions of other UN*Xes.
224       Move the "how to allocate a LINKTYPE_/DLT_ value" documentation to
225         the web site.
226       Clean up man pages.
227       Move README.capture-module to the web site.
228       Improve some protocol details in pcap-filter(7).
229       Refine "relop" notes in pcap-filter(7).
230       In pcap-filter(7) "domain" is an id.
231       Discuss backward compatibility in pcap-filter(7).
232       Other improvements to pcap-filter(7).
233       Document pcap_breakloop(3PCAP) interaction with threads better.
234       Document PCAP_ERROR_NOT_ACTIVATED for more routines.
235
236 Wednesday, June 9, 2021:
237   Summary for 1.10.1 libpcap release:
238     Packet filtering:
239       Fix "type XXX subtype YYY" giving a parse error
240     Source code:
241       Add PCAP_AVAILABLE_1_11.
242     Building and testing:
243       Rename struct bpf_aux_data to avoid NetBSD compile errors
244       Squelch some compiler warnings
245       Squelch some Bison warnings
246       Fix cross-builds with older kernels lacking BPF_MOD and BPF_XOR
247       Fix Bison detection for minor version 0.
248       Fix parallel build with FreeBSD make.
249       Get DLT_MATCHING_MAX right in gencode.c on NetBSD.
250       Define timeradd() and timersub() if necessary.
251       Fix Cygwin/MSYS target directories.
252       Fix symlinking with DESTDIR.
253       Fix generation of libpcap.pc with CMake when not building a shared
254           library.
255       Check for Arm64 as well as x86-64 when looking for packet.lib on
256           Windows.
257     Documentation:
258       Refine Markdown in README.md.
259       Improve the description of portrange in filters.
260       README.linux.md isn't Markdown, rename it just README.linux.
261     pcapng:
262       Support reading version 1.2, which some writers produce, and which
263           is the same as 1.0 (some new block types were added, but
264           that's not sufficient reason to bump the minor version number,
265           as code that understands those new block types can handle them
266           in a 1.0 file)
267     Linux:
268       Drop support for text-mode USB captures, as we require a 2.6.27
269           or later kernel (credit to Chaoyuan Peng for noting the
270           sscanf vulnerabilities in the text-mode code that got me to
271           realize that we didn't need this code any more)
272       Bluetooth: fix non-blocking mode.
273       Don't assume that all compilers used to build for Linux support
274           the __atomic builtins
275     Windows:
276       Add more information in "interface disappeared" error messages, in
277         the hopes of trying to figure out the cause.
278       Treat ERROR_DEVICE_REMOVED as "device was removed".
279       Indicate in the error message which "device was removed" error
280           occurred.
281       Report the Windows error status if PacketSendPacket() fails.
282       Use %lu for ULONGs in error message formats.
283       Don't treat the inability to find airpcap.dll as an error.
284       Ignore spurious error reports by Microsoft Surface mobile
285           telephony modem driver
286     rpcap:
287       Clean up error checking and error messages for server address
288           lookup.
289
290 Tuesday, December 29, 2020
291   Summary for 1.10.0 libpcap release
292     Add support for capturing on DPDK devices
293     Label most APIs by the first release in which they're available
294     Fix some memory leaks, including in pcap_compile()
295     Add pcap_datalink_val_to_description_or_dlt()
296     Handle the pcap private data in a fashion that makes fewer
297        assumptions about memory layouts (might fix GitHub issue #940
298        on ARM)
299     Fix some thread safety issues
300     pcap_findalldevs(): don't sort interfaces by unit number
301     Always return a list of supported time-stamp types, even if only
302         host time stamps are supported
303     Increase the maximum snaplen for LINKTYPE_USBPCAP/DLT_USBPCAP
304     Report the DLT description in error messages
305     Add pcap_init() for first-time initialization and global option
306         setting; it's not required, but may be used
307     Remove (unused) SITA support
308     Capture file reading:
309         Correctly handle pcapng captures with more than one IDB with a
310             snspshot length greater than the supported maximum
311     Capture file writing:
312         Create the file in pcap_dump_open_append() if it doesn't exist
313     Packet filtering:
314         Fix "unknown ether proto 'aarp'"
315         Add a new filter "ifindex" for DLT_LINUX_SLL2 files on all
316             platforms and live Linux captures
317         Add a hack to the optimizer to try to catch certain optimizer
318             loops (should prevent GitHub issue #112)
319         Show special Linux BPF offsets symbolically in bpf_image() and
320             bpf_dump()
321         Added support for ICMPv6 types 1-4 as tokens with names
322         Remove undocumented and rather old "ether proto" protocols
323         Catch invalid IPv4 addresses in filters
324         Don't assume ARM supports unaligned accesses
325     Security and other issues found by analysis:
326         Fix various security issues reported by Charles Smith at Tangible
327             Security
328         Fix various security issues reported by Include Security
329         Fix some issues found by cppcheck.
330         Add some overflow checks in the optimizer
331     rpcap:
332         Support rpcap-over-TLS
333         Redo protocol version negotiation to avoid problems with old
334             servers (it still works with servers using the old negotiation,
335             as well as servers not supporting negotiation)
336         Error handling cleanups
337         Add some new authentication libpcap error codes for specific
338             errors
339         Fix some inetd issues in rpcapd
340         Fix rpcapd core dumps with invalid configuration file
341         On UN*X, don't have rpcapd tell the client why authentication
342             failed, so a brute-force attacker can't distinguish between
343             "unknown user name" and "known user name, wrong password"
344         Allow rpcapd to rebind more rapidly (GitHub issue #765)
345     Documentation:
346         Improve man pages, including adding backward compatibility notes
347     Building and testing:
348         Require, and assume, some level of C99 support in the C compiler
349         Require Visual Studio 2015 or later if using Visual Studio
350         Fix configure script issues, including with libnl on Linux
351         Fix CMake issues
352         Squelch complaints from Bison about "%define api.pure" being
353             deprecated
354         Fix compilation of pcap-tc.c
355     Linux:
356         Require PF_PACKET support, and kernel 2.6.27 or later
357         Handle systems without AF_INET or AF_UNIX socket support
358         Get rid of Wireless Extensions for turning monitor mode on
359         Proper memory sync for PACKET_MMAP (may prevent GitHub issue
360             #898)
361         Drop support for libnl 1 and 2.
362         Return error on interface going away, but not if it just went
363             down but is still present
364         Set socket protocol only after packet ring configured,
365             reducing bogus packet drop reports
366         Get ifdrop stats from sysfs.
367         When adjusting BPF programs, do not subtract the
368             SLL[2]_HDR_LEN if the location is negative (special metadata
369             offset), to preserve references to metadata; see
370             https://github.com/the-tcpdump-group/tcpdump/issues/480#issuecomment-486827278
371         Report a warning for unknown ARPHRD types
372         Have pcap_breakloop() forcibly break out of a sleeping
373             capture loop
374         Add support for DSA data link types
375         For raw USB bus capture, use the snapshot length to set the
376             buffer size, and set the len field to reflect the length
377             in the URB (GitHub issue #808)
378         With a timeout of zero, wait indefinitely
379         Clean up support for some non-GNU libc C libraries
380         Add DLT_LINUX_SLL2 for cooked-mode captures
381         Probe CONFIGURATION descriptor of connected USB devices
382         Treat EPERM on ethtool ioctls as meaning "not supported", as
383             permissions checks are done before checking whether the
384             ioctl is supported at all
385     macOS:
386         Cope with getting EPWROFF from SIOCGIFMEDIA
387         Treat EPERM on SIOCGIFMEDIA as meaning "not supported", as
388             permissions checks are done before checking whether the
389             ioctl is supported at all
390         Treat ENXIO when reading packets as meaning "the interface
391             was removed"
392         Report "the interface disappeared", not "the interface went
393             down", if the interface was removed during a capture
394     FreeBSD:
395         Treat ENXIO as meaning "the interface was removed"
396         Report "the interface disappeared", not "the interface went
397             down", if the interface was removed during a capture
398     NetBSD:
399         Treat ENXIO as meaning "the interface was removed"
400         Report "the interface disappeared", not "the interface went
401             down", if the interface was removed during a capture
402     OpenBSD:
403         Treat EIO as meaning "the interface was removed"
404         Report "the interface disappeared", not "the interface went
405             down", if the interface was removed during a capture
406     DragonFly BSD:
407         Treat ENXIO as meaning "the interface was removed"
408         Report "the interface disappeared", not "the interface went
409             down", if the interface was removed during a capture
410     Solaris:
411         Treat ENXIO as meaning "the interface was removed"
412         Report "the interface disappeared", not "the interface went
413             down", if the interface was removed during a capture
414     AIX:
415         Fix loading of BPF kernel extension
416         Treat ENXIO as meaning "the interface was removed"
417         Report "the interface disappeared", not "the interface went
418             down", if the interface was removed during a capture
419     Windows:
420         Make the snapshot length work even if pcap_setfilter()
421             isn't called
422         Fix compilation on Cygwin/MSYS
423         Add pcap_handle(), and deprecate pcap_fileno()
424         Report PCAP_ERROR_NO_SUCH_DEVICE for a non-existent device
425         Return an appropriate error message for device removed or
426             device unusable due to a suspend/resume
427         Report a warning for unknown NdisMedium types
428         Have pcap_breakloop() forcibly break out of a sleeping
429             capture loop
430         Clean up building DLL
431         Handle CRT mismatch for pcap_dump_fopen()
432         Map NdisMediumWirelessWan to DLT_RAW
433         Add AirPcap support in a module, rather than using
434             WinPcap/Npcap's support for it
435         Report the system error for PacketSetHwFilter() failures
436         Add support for getting and setting packet time stamp types
437             with Npcap
438         Have pcap_init() allow selecting whether the API should use
439             local code page strings or UTF-8 strings (including error
440             messages)
441     Haiku:
442         Add capture support
443
444 Sunday, July 22, 2018
445   Summary for 1.9.1 libpcap release
446     Mention pcap_get_required_select_timeout() in the main pcap man page
447     Fix pcap-usb-linux.c build on systems with musl
448     Fix assorted man page and other documentation issues
449     Plug assorted memory leaks
450     Documentation changes to use https:
451     Changes to how time stamp calculations are done
452     Lots of tweaks to make newer compilers happier and warning-free and
453         to fix instances of C undefined behavior
454     Warn if AC_PROG_CC_C99 can't enable C99 support
455     Rename pcap_set_protocol() to  pcap_set_protocol_linux().
456     Align pcap_t private data on an 8-byte boundary.
457     Fix various error messages
458     Use 64-bit clean API in dag_findalldevs()
459     Fix cleaning up after some errors
460     Work around some ethtool ioctl bugs in newer Linux kernels (GitHub
461         issue #689)
462     Add backwards compatibility sections to some man pages (GitHub issue
463         #745)
464     Fix autotool configuration on AIX and macOS
465     Don't export bpf_filter_with_aux_data() or struct bpf_aux_data;
466         they're internal-only and subject to change
467     Fix pcapng block size checking
468     On macOS, don't build rpcapd or test programs any fatter than they
469         need to be
470     Fix reading of capture statistics for Linux USB
471     Fix packet size values for Linux USB packets (GitHub issue #808)
472     Check only VID in VLAN test in filters (GitHub issue #461)
473     Fix pcap_list_datalinks on 802.11 devices on macOS
474     Fix overflows with very large snapshot length in pcap file
475     Improve parsing of rpcapd configuration file (GitHub issue #767)
476     Handle systems without strlcpy() or strlcat() better
477     Fix crashes and other errors with invalid filter expressions
478     Fix use of uninitialized file descriptor in remote capture
479     Fix some CMake issues
480     Fix some divide-by-zero issues with the filter compiler
481     Work around a GNU libc bug in pcap_nametonetaddr()
482     Add support for DLT_LINUX_SLL2
483     Fix handling of the packet-count argument for Myricom SNF devices
484     Fix --disable-rdma in configure script (GitHub issue #782)
485     Fix compilation of TurboCap support (GitHub issue #764)
486     Constify first argument to pcap_findalldevs_ex()
487     Fix a number of issues when running rpcapd as an inetd-style daemon
488     Fix CMake issues with D-Bus libraries
489     In rpcapd, clean up termination of a capture session
490     Redo remote capture protocol negotiation
491     In rpcapd, report the same error for "invalid user name" and
492         "invalid password", to make brute-forcing harder
493     For remote captures, add an error code for "the server requires TLS"
494     Fix pcap_dump_fopen() on Windows to avoid clashes between
495         {Win,N}Pcap and application C runtimes
496     Fix exporting of functions from Windows DLLs (GitHub issue #810)
497     Fix building as part of Npcap
498     Allow rpcapd to rebind more rapidly
499     Fix building shared libpcap library on midipix (midipix.org)
500     Fix hack to detect UTF-16LE adapter names on Windows not to go past
501         the end of the string
502     Fix handling of "wireless WAN" (mobile phone network modems) on
503         Windows with WinPcap/Npcap (GitHub issue #824)
504     Have pcap_dump_open_append() create the dump file if it doesn't
505         exists (GitHub issue #247)
506     Fix the maxmum snapshot length for DLT_USBPCAP
507     Use -fPIC when building for 64-bit SPARC on Linux (GitHub issue #837)
508     Fix CMake 64-bit library installation directory on some Linux
509         distributions
510     Boost the TPACKET_V3 timeout to the maximum if a timeout of 0 was
511         specified
512     Five CVE-2019-15161, CVE-2019-15162, CVE-2019-15163, CVE-2019-15164, CVE-2019-15165
513     PCAPNG reader applies some sanity checks before doing malloc().
514
515 Sunday, June 24, 2018, by mcr@sandelman.ca
516   Summary for 1.9.0 libpcap release
517     Added testing system to libpcap, independent of tcpdump
518     Changes to how pcap_t is activated
519     Adding support for Large stream buffers on Endace DAG cards
520     Changes to BSD 3-clause license to 2-clause license
521     Additions to TCP header parsing, per RFC3168
522     Add CMake build process (extensive number of changes)
523     Assign a value for OpenBSD DLT_OPENFLOW.
524     Support setting non-blocking mode before activating.
525     Extensive build support for Windows VS2010 and MINGW (many many changes, over many months)
526     Added RPCAPD support when --enable-remote (default no)
527     Add the rpcap daemon source and build instructions.
528     Put back the greasy "save the capture filter string so we can tweak it"
529         hack, that keeps libpcap from capturing rpcap traffic.
530     Fixes for captures on MacOS, utun0
531     fixes so that non-AF_INET addresses, are not ==AF_INET6 addresses.
532     Add a linktype for IBM SDLC frames containing SNA PDUs.
533     pcap_compile() in 1.8.0 and later is newly thread-safe.
534     bound snaplen for linux tpacket_v2 to ~64k
535     Make VLAN filter handle both metadata and inline tags
536     D-Bus captures can now be up to 128MB in size
537     Added LORATAP DLT value
538     Added DLT_VSOCK for https://qemu-project.org/Features/VirtioVsock
539     probe_devices() fixes not to overrun buffer for name of device
540     Add linux-specific pcap_set_protocol_linux() to allow specifying a specific capture protocol.
541     RDMA sniffing support for pcap
542     Add Nordic Semiconductor Bluetooth LE sniffer link-layer header type.
543     fixes for reading /etc/ethers
544     Make it possible to build on Windows without packet.dll.
545     Add tests for large file support on UN*X.
546     Solaris fixes to work with 2.8.6
547     configuration test now looks for header files, not capture devices present
548     Fix to work with Berkeley YACC.
549     fixes for DragonBSD compilation of pcap-netmap.c
550     Clean up the ether_hostton() stuff.
551     Add an option to disable Linux memory-mapped capture support.
552     Add DAG API support checks.
553     Add Septel, Myricom SNF, and Riverbed TurboCap checks.
554     Add checks for Linux USB, Linux Bluetooth, D-Bus, and RDMA sniffing support.
555     Add a check for hardware time stamping on Linux.
556     Don't bother supporting pre-2005 Visual Studio.
557     Increased minimum autoconf version requirement to 2.64
558     Add DLT value 273 for XRA-31 sniffer
559     Clean up handing of signal interrupts in pcap_read_nocb_remote().
560     Use the XPG 4.2 versions of the networking APIs in Solaris.
561     Fix, and better explain, the "IPv6 means IPv6, not IPv4" option setting.
562     Explicitly warn that negative packet buffer timeouts should not be used.
563     rpcapd: Add support inetd-likes, including xinetd.conf, and systemd units
564     Rename DLT_IEEE802_15_4 to DLT_IEEE802_15_4_WITHFCS.
565     Add DISPLAYPORT AUX link type
566     Remove the sunos4 kernel modules and all references to them.
567     Add more interface flags to pcap_findalldevs().
568   Summary for 1.9.0 libpcap release (to 2017-01-25 by guy@alum.mit.edu)
569     Man page improvements
570     Fix Linux cooked mode userspace filtering (GitHub pull request #429)
571     Fix compilation if IPv6 support not enabled
572     Fix some Linux memory-mapped capture buffer size issues
573     Don't fail if kernel filter can't be set on Linux (GitHub issue
574       #549)
575     Improve sorting of interfaces for pcap_findalldevs()
576     Don't list Linux usbmon devices if usbmon module isn't loaded
577     Report PCAP_ERROR_PERM_DENIED if no permission to open Linux usbmon
578       devices
579     Fix DLT_ type for Solaris IPNET devices
580     Always return an error message for errors finding DAG or Myricom
581       devices
582     If possible, don't require that a device be openable when
583       enumerating them for pcap_findalldevs()
584     Don't put incompletely-initialized addresses in the address list for
585     When finding Myricom devices, update description for regular
586       interfaces that are Myricom devices and handle SNF_FLAGS=0x2(port
587       aggregation enabled)
588     Fix compilation error in DAG support
589     Fix issues with CMake configuration
590     Add support for stream buffers larger than 2GB on newer DAG cards
591     Remove support for building against DAG versions without STREAMS
592       support (before dag-3.0.0 2007)
593
594 Tuesday, Oct. 25, 2016 mcr@sandelman.ca
595   Summary for 1.8.1 libpcap release
596     Add a target in Makefile.in for Exuberant Ctags use: 'extags'.
597     Rename configure.in to configure.ac: autoconf 2.59
598     Clean up the name-to-DLT mapping table.
599     Add some newer DLT_ values: IPMI_HPM_2,ZWAVE_R1_R2,ZWAVE_R3,WATTSTOPPER_DLM,ISO_14443,RDS
600     Clarify what the return values are for both success and failure.
601     Many changes to build on windows
602     Check for the "break the loop" condition in the inner loop for TPACKET_V3.
603     Fix handling of packet count in the TPACKET_V3 inner loop: GitHub issue #493.
604     Filter out duplicate looped back CAN frames.
605     Fix the handling of loopback filters for IPv6 packets.
606     Add a link-layer header type for RDS (IEC 62106) groups.
607     Use different intermediate folders for x86 and x64 builds on Windows.
608     On Linux, handle all CAN captures with pcap-linux.c, in cooked mode.
609     Removes the need for the "host-endian" link-layer header type.
610     Compile with '-Wused-but-marked-unused' in devel mode if supported
611     Have separate DLTs for big-endian and host-endian SocketCAN headers.
612     Reflect version.h being renamed to pcap_version.h.
613     Require that version.h be generated: all build procedures we support generate version.h (autoconf, CMake, MSVC)!
614     Properly check for sock_recv() errors.
615     Re-impose some of Winsock's limitations on sock_recv().
616     Replace sprintf() with pcap_snprintf().
617     Fix signature of pcap_stats_ex_remote().
618     Initial cmake support for remote packet capture.
619     Have rpcap_remoteact_getsock() return a SOCKET and supply an "is active" flag.
620     Clean up {DAG, Septel, Myricom SNF}-only builds.
621     Do UTF-16-to-ASCII conversion into the right place.
622     pcap_create_interface() needs the interface name on Linux.
623     Clean up hardware time stamp support: the "any" device does not support any time stamp types.
624     Add support for capturing on FreeBSD usbusN interfaces.
625     Add a LINKTYPE/DLT_ value for FreeBSD USB.
626     Go back to using PCAP_API on Windows.
627     CMake support
628     Add TurboCap support from WinPcap.
629     Recognize 802.1ad nested VLAN tag in vlan filter.
630
631 Thursday Sep. 3, 2015 guy@alum.mit.edu
632   Summary for 1.7.5 libpcap release
633         Man page cleanups.
634         Add some allocation failure checks.
635         Fix a number of Linux/ucLinux configure/build issues.
636         Fix some memory leaks.
637         Recognize 802.1ad nested VLAN tag in vlan filter.
638         Fix building Bluetooth Linux Monitor support with BlueZ 5.1+
639
640 Saturday Jun. 27, 2015 mcr@sandelman.ca
641   Summary for 1.7.4 libpcap release
642         Include fix for GitHub issue #424 -- out of tree builds.
643
644 Friday Apr. 10, 2015 guy@alum.mit.edu
645   Summary for 1.7.3 libpcap release
646         Work around a Linux bonding driver bug.
647
648 Thursday Feb. 12, 2015 guy@alum.mit.edu/mcr@sandelman.ca
649   Summary for 1.7.2 libpcap release
650         Support for filtering Geneve encapsulated packets.
651         Generalize encapsulation handling, fixing some bugs.
652         Don't add null addresses to address lists.
653         Add pcap_dump_open_append() to open for appending.
654         Fix the swapping of isochronous descriptors in Linux USB.
655         Attempt to handle TPACKET_V1 with 32-bit userland and 64-bit kernel.
656
657 Wednesday Nov. 12, 2014 guy@alum.mit.edu/mcr@sandelman.ca
658   Summary for 1.7.0 libpcap release
659         Fix handling of zones for BPF on Solaris
660         new DLT for ZWAVE
661         clarifications for read timeouts.
662         Use BPF extensions in compiled filters, fixing VLAN filters
663         some fixes to compilation without stdint.h
664         EBUSY can now be returned by SNFv3 code.
665         Fix the range checks in BPF loads
666         Various DAG fixes.
667         Various Linux fixes.
668
669 Monday Aug. 12, 2014 guy@alum.mit.edu
670   Summary for 1.6.2 libpcap release
671         Don't crash on filters testing a non-existent link-layer type
672             field.
673         Fix sending in non-blocking mode on Linux with memory-mapped
674             capture.
675         Fix timestamps when reading pcap-ng files on big-endian
676             machines.
677
678 Saturday  Jul. 19, 2014 mcr@sandelman.ca
679   Summary for 1.6.1 libpcap release
680         some fixes for the any device
681         changes for how --enable-XXX (--enable-sniffing, --enable-can) works
682
683 Wednesday Jul. 2, 2014 mcr@sandelman.ca
684   Summary for 1.6.0 libpcap release
685         Don't support D-Bus sniffing on OS X
686         fixes for byte order issues with NFLOG captures
687         Handle using cooked mode for DLT_NETLINK in activate_new().
688         on platforms where you can not capture on down interfaces, do not list them
689         but: do list interfaces which are down, if you can capture on them!
690
691 Wednesday December 18, 2013 guy@alum.mit.edu
692 Summary for 1.5.3 libpcap release
693         Don't let packets that don't match the current filter get to the
694             application when TPACKET_V3 is used. (GitHub issue #331)
695         Fix handling of pcap_loop()/pcap_dispatch() with a packet count
696             of 0 on some platforms (including Linux with TPACKET_V3).
697             (GitHub issue #333)
698         Work around TPACKET_V3 deficiency that causes packets to be lost
699             when a timeout of 0 is specified. (GitHub issue #335)
700         Man page formatting fixes.
701
702 Wednesday December 4, 2013 guy@alum.mit.edu
703 Summary for 1.5.2 libpcap release
704         Fix libpcap to work when compiled with TPACKET_V3 support and
705             running on a kernel without TPACKET_V3 support. (GitHub
706             issue #329)
707
708 Wednesday November 20, 2013 guy@alum.mit.edu
709 Summary for 1.5.1 libpcap release
710         Report an error, rather than crashing, if an IPv6 address is
711             used for link-layer filtering.  (Wireshark bug 9376)
712
713 Wednesday October 30, 2013 guy@alum.mit.edu
714 Summary for 1.5.0 libpcap release
715         TPACKET_V3 support added for Linux
716         Point users to the the-tcpdump-group repository on GitHub rather
717             than the mcr repository
718         Checks added for malloc()/realloc()/etc. failures
719         Fixed build on Solaris 11
720         Support filtering E1 SS7 traffic on MTP2 layer Annex A
721         Use "ln -s" to link man pages by default
722         Add support for getting nanosecond-resolution time stamps when
723             capturing and reading capture files
724         Many changes to autoconf to deal better with non-GCC compilers
725         added many new DLT types
726
727 Saturday April 6, 2013 guy@alum.mit.edu
728 Summary for 1.4.0 libpcap release
729         Add netfilter/nfqueue interface.
730         If we don't have support for IPv6 address resolution, support,
731             in filter expressions, what IPv6 stuff we can.
732         Fix pcap-config to include -lpthread if canusb support is
733             present
734         Try to fix "pcap_parse not defined" problems when --without-flex
735             and --without-bison are used when you have Flex and Bison
736         Fix some issues with the pcap_loop man page.
737         Fix pcap_getnonblock() and pcap_setnonblock() to fill in the
738             supplied error message buffer
739         Fix typo that, it appeared, would cause pcap-libdlpi.c not to
740             compile (perhaps systems with libdlpi also have BPF and use
741             that instead)
742         Catch attempts to call pcap_compile() on a non-activated pcap_t
743         Fix crash on Linux with CAN-USB support without usbfs
744         Fix addition of VLAN tags for Linux cooked captures
745         Check for both EOPNOTSUPP and EINVAL after SIOCETHTOOL ioctl, so
746             that the driver can report either one if it doesn't support
747             SIOCETHTOOL
748         Add DLT_INFINIBAND and DLT_SCTP
749         Describe "proto XXX" and "protochain XXX" in the pcap-filter man
750             page
751         Handle either directories, or symlinks to directories, that
752             correspond to interfaces in /sys/class/net
753         Fix handling of VLAN tag insertion to check, on Linux 3.x
754             kernels, for VLAN tag valid flag
755         Clean up some man pages
756         Support libnl3 as well as libnl1 and libnl2 on Linux
757         Fix handling of Bluetooth devices on 3.x Linux kernels
758
759 Friday  March 30, 2012.  mcr@sandelman.ca
760 Summary for 1.3.0 libpcap release
761         Handle DLT_PFSYNC in {FreeBSD, other *BSD+Mac OS X, other}.
762         Linux: Don't fail if netfilter isn't enabled in the kernel.
763         Add new link-layer type for NFC Forum LLCP.
764         Put the CANUSB stuff into EXTRA_DIST, so it shows up in the release tarball.
765         Add LINKTYPE_NG40/DLT_NG40.
766         Add DLT_MPEG_2_TS/LINKTYPE_MPEG_2_TS for MPEG-2 transport streams.
767         [PATCH] Fix AIX-3.5 crash with read failure during stress
768         AIX fixes.
769         Introduce --disable-shared configure option.
770         Added initial support for canusb devices.
771         Include the pcap(3PCAP) additions as 1.2.1 changes.
772         many updates to documentation: pcap.3pcap.in
773         Improve 'inbound'/'outbound' capture filters under Linux.
774         Note the cleanup of handling of new DLT_/LINKTYPE_ values.
775         On Lion, don't build for PPC.
776         For mac80211 devices we need to clean up monitor mode on exit.
777
778 Friday  December 9, 2011.  guy@alum.mit.edu.
779 Summary for 1.2.1 libpcap release
780         Update README file.
781         Fix typos in README.linux file.
782         Clean up some compiler warnings.
783         Fix Linux compile problems and tests for ethtool.h.
784         Treat Debian/kFreeBSD and GNU/Hurd as systems with GNU
785          toolchains.
786         Support 802.1 QinQ as a form of VLAN in filters.
787         Treat "carp" as equivalent to "vrrp" in filters.
788         Fix code generated for "ip6 protochain".
789         Add some new link-layer header types.
790         Support capturing NetFilter log messages on Linux.
791         Clean up some error messages.
792         Turn off monitor mode on exit for mac80211 interfaces on Linux.
793         Fix problems turning monitor mode on for non-mac80211 interfaces
794          on Linux.
795         Properly fail if /sys/class/net or /proc/net/dev exist but can't
796          be opened.
797         Fail if pcap_activate() is called on an already-activated
798          pcap_t, and add a test program for that.
799         Fix filtering in pcap-ng files.
800         Don't build for PowerPC on Mac OS X Lion.
801         Simplify handling of new DLT_/LINKTYPE_ values.
802         Expand pcap(3PCAP) man page.
803
804 Sunday  July 24, 2011.  mcr@sandelman.ca.
805 Summary for 1.2 libpcap release
806         All of the changes listed below for 1.1.1 and 1.1.2.
807         Changes to error handling for pcap_findalldevs().
808         Fix the calculation of the frame size in memory-mapped captures.
809         Add a link-layer header type for STANAG 5066 D_PDUs.
810         Add a link-layer type for a variant of 3GPP TS 27.010.
811         Noted real nature of LINKTYPE_ARCNET.
812         Add a link-layer type for DVB-CI.
813         Fix configure-script discovery of VLAN acceleration support.
814          see https://netoptimizer.blogspot.com/2010/09/tcpdump-vs-vlan-tags.html
815         Linux, HP-UX, AIX, NetBSD and OpenBSD compilation/conflict fixes.
816         Protect against including AIX 5.x's <net/bpf.h> having been included.
817         Add DLT_DBUS, for raw D-Bus messages.
818         Treat either EPERM or EACCES as "no soup for you".
819         Changes to permissions on DLPI systems.
820         Add DLT_IEEE802_15_4_NOFCS for 802.15.4 interfaces.
821
822 Fri.    August 6, 2010.  guy@alum.mit.edu.
823 Summary for 1.1.2 libpcap release
824         Return DLT_ values, not raw LINKTYPE_ values from
825           pcap_datalink() when reading pcap-ng files
826         Add support for "wlan ra" and "wlan ta", to check the RA and TA
827           of WLAN frames that have them
828         Don't crash if "wlan addr{1,2,3,4}" are used without 802.11
829           headers
830         Do filtering on USB and Bluetooth capturing
831         On FreeBSD/SPARC64, use -fPIC - it's apparently necessary
832         Check for valid port numbers (fit in a 16-bit unsigned field) in
833           "port" filters
834         Reject attempts to put savefiles into non-blocking mode
835         Check for "no such device" for the "get the media types" ioctl
836           in *BSD
837         Improve error messages from bpf_open(), and let it do the error
838           handling
839         Return more specific errors from pcap_can_set_rfmon(); fix
840           documentation
841         Update description fetching code for FreeBSD, fix code for
842           OpenBSD
843         Ignore /sys/net/dev files if we get ENODEV for them, not just
844           ENXIO; fixes handling of bonding devices on Linux
845         Fix check for a constant 0 argument to BPF_DIV
846         Use the right version of ar when cross-building
847         Free any filter set on a savefile when the savefile is closed
848         Include the CFLAGS setting when configure was run in the
849           compiler flags
850         Add support for 802.15.4 interfaces on Linux
851
852 Thu.    April 1, 2010.  guy@alum.mit.edu.
853 Summary for 1.1.1 libpcap release
854         Update CHANGES to reflect more of the changes in 1.1.0.
855         Fix build on RHEL5.
856         Fix shared library build on AIX.
857
858 Thu.    March 11, 2010.  ken@netfunctional.ca/guy@alum.mit.edu.
859 Summary for 1.1.0 libpcap release
860         Add SocketCAN capture support
861         Add Myricom SNF API support
862         Update Endace DAG and ERF support
863         Add support for shared libraries on Solaris, HP-UX, and AIX
864         Build, install, and un-install shared libraries by default;
865           don't build/install shared libraries on platforms we don't support
866         Fix building from a directory other than the source directory
867         Fix compiler warnings and builds on some platforms
868         Update config.guess and config.sub
869         Support monitor mode on mac80211 devices on Linux
870         Fix USB memory-mapped capturing on Linux; it requires a new DLT_
871           value
872         On Linux, scan /sys/class/net for devices if we have it; scan
873           it, or /proc/net/dev if we don't have /sys/class/net, even if
874           we have getifaddrs(), as it'll find interfaces with no
875           addresses
876         Add limited support for reading pcap-ng files
877         Fix BPF driver-loading error handling on AIX
878         Support getting the full-length interface description on FreeBSD
879         In the lexical analyzer, free up any addrinfo structure we got back
880           from getaddrinfo().
881         Add support for BPF and libdlpi in OpenSolaris (and SXCE)
882         Hyphenate "link-layer" everywhere
883         Add /sys/kernel/debug/usb/usbmon to the list of usbmon locations
884         In pcap_read_linux_mmap(), if there are no frames available, call
885           poll() even if we're in non-blocking mode, so we pick up
886           errors, and check for the errors in question.
887         Note that poll() works on BPF devices is Snow Leopard
888         If an ENXIO or ENETDOWN is received, it may mean the device has
889           gone away.  Deal with it.
890         For BPF, raise the default capture buffer size to from 32k to 512k
891         Support ps_ifdrop on Linux
892         Added a bunch of #ifdef directives to make wpcap.dll (WinPcap) compile
893          under cygwin.
894         Changes to Linux mmapped captures.
895         Fix bug where create_ring would fail for particular snaplen and
896           buffer size combinations
897         Update pcap-config so that it handles libpcap requiring
898           additional libraries
899         Add workaround for threadsafeness on Windows
900         Add missing mapping for DLT_ENC <-> LINKTYPE_ENC
901         DLT: Add DLT_CAN_SOCKETCAN
902         DLT: Add Solaris ipnet
903         Don't check for DLT_IPNET if it's not defined
904         Add link-layer types for Fibre Channel FC-2
905         Add link-layer types for Wireless HART
906         Add link-layer types for AOS
907         Add link-layer types for DECT
908         Autoconf fixes (AIX, HP-UX, OSF/1, Tru64 cleanups)
909         Install headers unconditionally, and include vlan.h/bluetooth.h if
910           enabled
911         Autoconf fixes+cleanup
912         Support enabling/disabling bluetooth (--{en,dis}able-bluetooth)
913         Support disabling SITA support (--without-sita)
914         Return -1 on failure to create packet ring (if supported but
915           creation failed)
916         Fix handling of 'any' device, so that it can be opened, and no longer
917           attempt to open it in Monitor mode
918         Add support for snapshot length for USB Memory-Mapped Interface
919         Fix configure and build on recent Linux kernels
920         Fix memory-mapped Linux capture to support pcap_next() and
921           pcap_next_ex()
922         Fixes for Linux USB capture
923         DLT: Add DLT_LINUX_EVDEV
924         DLT: Add DLT_GSMTAP_UM
925         DLT: Add DLT_GSMTAP_ABIS
926
927 Mon.    October 27, 2008.  ken@netfunctional.ca.  Summary for 1.0.0 libpcap release
928         Compile with IPv6 support by default
929         Compile with large file support on by default
930         Add pcap-config script, which deals with -I/-L flags for compiling
931         DLT: Add IPMB
932         DLT: Add LAPD
933         DLT: Add AX25 (AX.25 w/KISS header)
934         DLT: Add JUNIPER_ST
935         802.15.4 support
936         Variable length 802.11 header support
937         X2E data type support
938         SITA ACN Interface support - see README.sita
939         Support for memory-mapped capture on Linux
940         Support for zerocopy BPF on platforms that support it
941         Support for setting buffer size when opening devices
942         Support for setting monitor mode when opening 802.11 devices
943         Better support for dealing with VLAN tagging/stripping on Linux
944         Fix dynamic library support on OSX
945         Return PCAP_ERROR_IFACE_NOT_UP if the interface isn't 'UP', so applications
946          can print better diagnostic information
947         Return PCAP_ERROR_PERM_DENIED if we don't have permission to open a device, so
948          applications can tell the user they need to go play with permissions
949         On Linux, ignore ENETDOWN so we can continue to capture packets if the
950          interface goes down and comes back up again.
951         On Linux, support new tpacket frame headers (2.6.27+)
952         On Mac OS X, add scripts for changing permissions on /dev/bpf* and launchd plist
953         On Solaris, support 'passive mode' on systems that support it
954         Fixes to autoconf and general build environment
955         Man page reorganization + cleanup
956         Autogenerate VERSION numbers better
957
958 Mon.    September 10, 2007.  ken@xelerance.com.  Summary for 0.9.8 libpcap release
959         Change build process to put public libpcap headers into pcap subir
960         DLT: Add value for IPMI IPMB packets
961         DLT: Add value for u10 Networks boards
962         Require <net/pfvar.h> for pf definitions - allows reading of pflog formatted
963          libpcap files on an OS other than where the file was generated
964
965 Wed.    April 25, 2007.  ken@xelerance.com.  Summary for 0.9.6 libpcap release
966
967         Put the public libpcap headers into a pcap subdirectory in both the
968          source directory and the target include directory, and have include
969          files at the top-level directory to include those headers, for
970          backwards compatibility.
971         Add Bluetooth support
972         Add USB capturing support on Linux
973         Add support for the binary USB sniffing interface in Linux
974         Add support for new FreeBSD BIOCSDIRECTION ioctl
975         Add additional filter operations for 802.11 frame types
976         Add support for filtering on MTP2 frame types
977         Propagate some changes from the main branch, so the x.9 branch has
978          all the DLT_ and LINKTYPE_ values that the main branch does
979         Reserved a DLT_ and SAVEFILE_ value for PPI (Per Packet Info)
980          encapsulated packets
981         Add LINKTYPE_ for IEEE 802.15.4, with address fields padded as done
982          by Linux drivers
983         Add LINKTYPE_ value corresponding to DLT_IEEE802_16_MAC_CPS.
984         Add DLT for IEEE 802.16 (WiMAX) MAC Common Part Sublayer
985         Add DLT for Bluetooth HCI UART transport layer
986         When building a shared library, build with "-fPIC" on Linux to support x86_64
987         Link with "$(CC) -shared" rather than "ld -shared" when building a
988          ".so" shared library
989         Add support for autoconf 2.60
990         Fixes to discard unread packets when changing filters
991         Changes to handle name changes in the DAG library resulting from
992          switching to libtool.
993         Add support for new DAG ERF types.
994         Add an explicit "-ldag" when building the shared library, so the DAG
995          library dependency is explicit.
996         Mac OSX fixes for dealing with "wlt" devices
997         Fixes in add_or_find_if() & pcap_findalldevs() to optimize generating
998          device lists
999         Fixed a bug in pcap_open_live(). The return value of PacketSetHwFilter
1000          was not checked.
1001
1002 Tue.    September 19, 2006. ken@xelerance.com. Summary for 0.9.5 libpcap release
1003
1004         Support for LAPD frames with vISDN
1005         Support for ERF on channelized T1/E1 cards via DAG API
1006         Fix capitalization that caused issues crossc compiling on Linux
1007         Better failure detection on PacketGetAdapterNames()
1008         Fixes for MPLS packet generation (link layer)
1009         OP_PACKET now matches the beginning of the packet, instead of
1010          beginning+link-layer
1011         Add DLT/LINKTYPE for carrying FRF.16 Multi-link Frame Relay
1012         Fix allocation of buffer for list of link-layer types
1013         Added a new DLT and LINKTYPE value for ARINC 653 Interpartition Communication Messages
1014         Fixed a typo in a DLT value: it should start with DLT_ and not LINKTYPE_
1015         Redefined DLT_CAN20B and LINKTYPE_CAN20B as #190 (as this is the right value for CAN).
1016         Added definition for DLT_A429 and LINKTYPE_A429 as #184.
1017         Added a new DLT and LINKTYPE value for CAN v2.0B frames.
1018         Add support for DLT_JUNIPER_VP.
1019         Don't double-count received packets on Linux systems that
1020          support the PACKET_STATISTICS getsockopt() argument on
1021          PF_PACKET sockets.
1022         Add support for DLT_IEEE802_11 and DLT_IEEE802_11_RADIO link
1023          layers in Windows
1024         Add support to build libpcap.lib and wpcap.dll under Cygnus and
1025          MingW32.
1026
1027 Mon.    September 5, 2005.  ken@xelerance.com. Summary for 0.9.4 libpcap release
1028
1029         Support for radiotap on Linux (Mike Kershaw)
1030         Fixes for HP-UX
1031         Support for additional Juniper link-layer types
1032         Fixes for filters on MPLS-encapsulated packets
1033         "vlan" filter fixed
1034         "pppoed" and "pppoes" filters added; the latter modifies later
1035         parts of the filter expression to look at the PPP headers and
1036         headers in the PPP payload
1037
1038 Tue.    July 5, 2005.  ken@xelerance.com. Summary for 0.9.3 libpcap release
1039
1040         Fixes for compiling on nearly every platform,
1041                 including improved 64bit support
1042         MSDOS Support
1043         Add support for sending packets
1044         OpenBSD pf format support
1045         IrDA capture (Linux only)
1046
1047 Tue.   March 30, 2004. mcr@sandelman.ottawa.on.ca. Summary for 3.8.3 release
1048
1049         Fixed minor problem in gencode.c that would appear on 64-bit
1050         platforms.
1051         Version number is now sane.
1052
1053 Mon.   March 29, 2004. mcr@sandelman.ottawa.on.ca. Summary for 3.8.2 release
1054
1055         updates for autoconf 2.5
1056         fixes for ppp interfaces for freebsd 4.1
1057         pcap gencode can generate code for 802.11, IEEE1394, and pflog.
1058
1059 Wed.   November 12, 2003. mcr@sandelman.ottawa.on.ca. Summary for 0.8 release
1060
1061         added pcap_findalldevs()
1062         Win32 patches from NetGroup, Politecnico di Torino (Italy)
1063         OpenBSD pf, DLT_PFLOG added
1064         Many changes to ATM support.
1065         lookup pcap_lookupnet()
1066         Added DLT_ARCNET_LINUX, DLT_ENC, DLT_IEEE802_11_RADIO, DLT_SUNATM,
1067                 DLT_IP_OVER_FC, DLT_FRELAY, others.
1068         Sigh.  More AIX wonderfulness.
1069         Document updates.
1070         Changes to API: pcap_next_ex(), pcap_breakloop(), pcap_dump_flush(),
1071                         pcap_list_datalinks(), pcap_set_datalink(),
1072                         pcap_lib_version(), pcap_datalink_val_to_name(),
1073                         pcap_datalink_name_to_val(), new error returns.
1074
1075 Tuesday, February 25, 2003. fenner@research.att.com.  0.7.2 release
1076
1077         Support link types that use 802.2 always, never, and sometimes.
1078         Don't decrease the size of the BPF buffer from the default.
1079         Support frame relay.
1080         Handle 32-bit timestamps in DLPI, and pass the right buffer size.
1081         Handle Linux systems with modern kernel but without
1082          SOL_PACKET in the userland headers.
1083         Linux support for ARPHRD_RAWHDLC.
1084         Handle 32-bit timestamps in snoop.
1085         Support eg (Octane/O2xxx/O3xxx Gigabit) devices.
1086         Add new reserved DLT types.
1087
1088 Monday October 23, 2001. mcr@sandelman.ottawa.on.ca. Summary for 0.7 release
1089
1090         Added pcap_findalldevs() call to get list of interfaces in a MI way.
1091
1092         pcap_stats() has been documented as to what its counters mean on
1093         each platform.
1094
1095 Tuesday January 9, 2001. guy@alum.mit.edu. Summary for 0.6 release
1096
1097         New Linux libpcap implementation, which, in 2.2 and later
1098         kernels, uses PF_PACKET sockets and supports kernel packet
1099         filtering (if compiled into the kernel), and supports the "any"
1100         device for capturing on all interfaces.  Cleans up promiscuous
1101         mode better on pre-2.2 kernels, and has various other fixes
1102         (handles 2.4 ARPHRD_IEEE802_TR, handles ISDN devices better,
1103         doesn't show duplicate packets on loopback interface, etc.).
1104
1105         Fixed HP-UX libpcap implementation to correctly get the PPA for
1106         an interface, to allow interfaces to be opened by interface name.
1107
1108         libpcap savefiles have system-independent link-layer type values
1109         in the header, rather than sometimes platform-dependent DLT_
1110         values, to make it easier to exchange capture files between
1111         different OSes.
1112
1113         Non-standard capture files produced by some Linux tcpdumps, e.g.
1114         the one from Red Hat Linux 6.2 and later, can now be read.
1115
1116         Updated autoconf stock files.
1117
1118         Filter expressions can filter on VLAN IDs and various OSI
1119         protocols, and work on Token Ring (with non-source-routed
1120         packets).
1121
1122         "pcap_open_dead()" added to allow compiling filter expressions
1123         to pcap code without opening a capture device or capture file.
1124
1125         Header files fixed to allow use in C++ programs.
1126
1127         Removed dependency on native headers for packet layout.
1128         Removed Linux specific headers that were shipped.
1129
1130         Security fixes: Strcpy replaced with strlcpy, sprintf replaced
1131         with snprintf.
1132
1133         Fixed bug that could cause subsequent "pcap_compile()"s to fail
1134         erroneously after one compile failed.
1135
1136         Assorted other bug fixes.
1137
1138         README.aix and README.linux files added to describe
1139         platform-specific issues.
1140
1141         "getifaddrs()" rather than SIOCGIFCONF used, if available.
1142
1143 v0.5 Sat Jun 10 11:09:15 PDT 2000
1144
1145 itojun@iijlab.net
1146 - Brought in KAME IPv6/IPsec bpf compiler.
1147 - Fixes for NetBSD.
1148 - Support added for OpenBSD DLT_LOOP and BSD/OS DLT_C_HDLC (Cisco HDLC),
1149   and changes to work around different BSDs having different DLT_ types
1150   with the same numeric value.
1151
1152 Assar Westerlund  <assar@sics.se>
1153 - Building outside the source code tree fixed.
1154 - Changed to write out time stamps with 32-bit seconds and microseconds
1155   fields, regardless of whether those fields are 32 bits or 64 bits in
1156   the OS's native "struct timeval".
1157 - Changed "pcap_lookupdev()" to dynamically grow the buffer into which
1158   the list of interfaces is read as necessary in order to hold the
1159   entire list.
1160
1161 Greg Troxel <gdt@ir.bbn.com>
1162 - Added a new "pcap_compile_nopcap()", which lets you compile a filter
1163   expression into a BPF program without having an open live capture or
1164   capture file.
1165
1166 v0.4 Sat Jul 25 12:40:09 PDT 1998
1167
1168 - Fix endian problem with DLT_NULL devices. From FreeBSD via Bill
1169   Fenner (fenner@parc.xerox.com)
1170
1171 - Fix alignment problem with FDDI under DLPI. This was causing core
1172   dumps under Solaris.
1173
1174 - Added configure options to disable flex and bison. Resulted from a
1175   bug report by barnett@grymoire.crd.ge.com (Bruce Barnett). Also added
1176   options to disable gcc and to force a particular packet capture type.
1177
1178 - Added support for Fore ATM interfaces (qaa and fa) under IRIX. Thanks
1179   to John Hawkinson (jhawk@mit.edu)
1180
1181 - Change Linux PPP and SLIP to use DLT_RAW since the kernel does not
1182   supply any "link layer" data.
1183
1184 - Change Linux to use SIOCGIFHWADDR ioctl to determine link layer type.
1185   Thanks to Thomas Sailer (sailer@ife.ee.ethz.ch)
1186
1187 - Change IRIX PPP to use DLT_RAW since the kernel does not supply any
1188   "link layer" data.
1189
1190 - Modified to support the new BSD/OS 2.1 PPP and SLIP link layer header
1191   formats.
1192
1193 - Added some new SGI snoop interface types. Thanks to Steve Alexander
1194   (sca@refugee.engr.sgi.com)
1195
1196 - Fixes for HP-UX 10.20 (which is similar to HP-UX 9). Thanks to
1197   Richard Allen (ra@hp.is) and Steinar Haug (sthaug@nethelp.no)
1198
1199 - Fddi supports broadcast as reported by Jeff Macdonald
1200   (jeff@iacnet.com). Also correct ieee802 and arcnet.
1201
1202 - Determine Linux pcap buffer size at run time or else it might not be
1203   big enough for some interface types (e.g. FDDI). Thanks to Jes
1204   Sorensen (Jes.Sorensen@cern.ch)
1205
1206 - Fix some linux alignment problems.
1207
1208 - Document promisc argument to pcap_open_live(). Reported by Ian Marsh
1209   (ianm@sics.se)
1210
1211 - Support Metricom radio packets under Linux. Thanks to Kevin Lai
1212   (laik@gunpowder.stanford.edu)
1213
1214 - Bind to interface name under Linux to avoid packets from multiple
1215   interfaces on multi-homed hosts. Thanks to Kevin Lai
1216   (laik@gunpowder.stanford.edu)
1217
1218 - Change L_SET to SEEK_SET for HP-UX. Thanks to Roland Roberts
1219   (rroberts@muller.com)
1220
1221 - Fixed an uninitialized memory reference found by Kent Vander Velden
1222   (graphix@iastate.edu)
1223
1224 - Fixed lex pattern for IDs to allow leading digits. As reported by
1225   Theo de Raadt (deraadt@cvs.openbsd.org)
1226
1227 - Fixed Linux include file problems when using GNU libc.
1228
1229 - Ifdef ARPHRD_FDDI since not all versions of the Linux kernel have it.
1230   Reported reported by Eric Jacksch (jacksch@tenebris.ca)
1231
1232 - Fixed bug in pcap_dispatch() that kept it from returning on packet
1233   timeouts.
1234
1235 - Changed ISLOOPBACK() macro when IFF_LOOPBACK isn't available to check
1236   for "lo" followed by an eos or digit (newer versions of Linux
1237   apparently call the loopback "lo" instead of "lo0").
1238
1239 - Fixed Linux networking include files to use ints instead of longs to
1240   avoid problems with 64 bit longs on the alpha. Thanks to Cristian
1241   Gafton (gafton@redhat.com)
1242
1243 v0.3 Sat Nov 30 20:56:27 PST 1996
1244
1245 - Added Linux support.
1246
1247 - Fixed savefile bugs.
1248
1249 - Solaris x86 fix from Tim Rylance (t.rylance@elsevier.nl)
1250
1251 - Add support for bpf kernel port filters.
1252
1253 - Remove duplicate atalk protocol table entry. Thanks to Christian
1254   Hopps (chopps@water.emich.edu)
1255
1256 - Fixed pcap_lookupdev() to ignore nonexistent devices. This was
1257   reported to happen under BSD/OS by David Vincenzetti
1258   (vince@cryptonet.it)
1259
1260 - Avoid solaris compiler warnings. Thanks to Bruce Barnett
1261   (barnett@grymoire.crd.ge.com)
1262
1263 v0.2.1 Sun Jul 14 03:02:26 PDT 1996
1264
1265 - Fixes for HP-UX 10. Thanks in part to Thomas Wolfram
1266   (wolf@prz.tu-berlin.de) and Rick Jones (raj@hpisrdq.cup.hp.com)
1267
1268 - Added support for SINIX. Thanks to Andrej Borsenkow
1269   (borsenkow.msk@sni.de)
1270
1271 - Fixes for AIX (although this system is not yet supported). Thanks to
1272   John Hawkinson (jhawk@mit.edu)
1273
1274 - Use autoconf's idea of the top level directory in install targets.
1275   Thanks to John Hawkinson.
1276
1277 - Add missing autoconf packet capture result message. Thanks to Bill
1278   Fenner (fenner@parc.xerox.com)
1279
1280 - Fixed padding problems in the pf module.
1281
1282 - Fixed some more alignment problems on the alpha.
1283
1284 - Added explicit netmask support. Thanks to Steve Nuchia
1285   (steve@research.oknet.com)
1286
1287 - Fixed to handle raw ip addresses such as 0.0.0.1 without "left
1288   justifing"
1289
1290 - Add "sca" keyword (for DEC cluster services) as suggested by Terry
1291   Kennedy (terry@spcvxa.spc.edu)
1292
1293 - Add "atalk" keyword as suggested by John Hawkinson.
1294
1295 - Add "igrp" keyword.
1296
1297 - Fixed HID definition in grammar.y to be a string, not a value.
1298
1299 - Use $CC when checking gcc version. Thanks to Carl Lindberg
1300   (carl_lindberg@blacksmith.com)
1301
1302 - Removed obsolete reference to pcap_immediate() from the man page.
1303   Michael Stolarchuk (mts@terminator.rs.itd.umich.edu)
1304
1305 - DLT_NULL has a 4 byte family header. Thanks to Jeffrey Honig
1306   (jch@bsdi.com)
1307
1308 v0.2 Sun Jun 23 02:28:42 PDT 1996
1309
1310 - Add support for HP-UX. Resulted from code contributed by Tom Murray
1311   (tmurray@hpindck.cup.hp.com) and Philippe-Andri Prindeville
1312   (philipp@res.enst.fr)
1313
1314 - Update INSTALL with a reminder to install include files. Thanks to
1315   Mark Andrews (mandrews@aw.sgi.com)
1316
1317 - Fix bpf compiler alignment bug on the alpha.
1318
1319 - Use autoconf to detect architectures that can't handle misaligned
1320   accesses.
1321
1322 - Added loopback support for snoop. Resulted from report Steve
1323   Alexander (sca@engr.sgi.com)
1324
1325 v0.1 Fri Apr 28 18:11:03 PDT 1995
1326
1327 - Fixed compiler and optimizer bugs.  The BPF filter engine uses unsigned
1328   comparison operators, while the code generator and optimizer assumed
1329   signed semantics in several places.  Thanks to Charlie Slater
1330   (cslater@imatek.com) for pointing this out.
1331
1332 - Removed FDDI ifdef's, they aren't really needed. Resulted from report
1333   by Gary Veum (veum@boa.gsfc.nasa.gov).
1334
1335 - Add pcap-null.c which allows offline use of libpcap on systems that
1336   don't support live package capture. This feature resulting from a
1337   request from Jan van Oorschot (j.p.m.voorschot@et.tudelft.nl).
1338
1339 - Make bpf_compile() reentrant. Fix thanks to Pascal Hennequin
1340   (Pascal.Hennequin@hugo.int-evry.fr).
1341
1342 - Port to GNU autoconf.
1343
1344 - Fix pcap-dlpi.c to work with isdn. Resulted from report by Flemming
1345   Johansen (fsj@csd.cri.dk).
1346
1347 - Handle multi-digit interface unit numbers (aka ppa's) under dlpi.
1348   Resulted from report by Daniel Ehrlich (ehrlich@cse.psu.edu).
1349
1350 - Fix pcap-dlpi.c to work in non-promiscuous mode. Resulted from report
1351   by Jeff Murphy (jcmurphy@acsu.buffalo.edu).
1352
1353 - Add support for "long jumps". Thanks to Jeffrey Mogul
1354   (mogul@pa.dec.com).
1355
1356 - Fix minor problems when compiling with BDEBUG as noticed by Scott
1357   Bertilson (scott@unet.umn.edu).
1358
1359 - Declare sys_errlist "const char *const" to avoid problems under
1360   FreeBSD. Resulted from report by jher@eden.com.
1361
1362 v0.0.6 Fri Apr 28 04:07:13 PDT 1995
1363
1364 - Add missing variable declaration missing from 0.0.6
1365
1366 v0.0.5 Fri Apr 28 00:22:21 PDT 1995
1367
1368 - Workaround for problems when pcap_read() returns 0 due to the timeout
1369   expiring.
1370
1371 v0.0.4 Thu Apr 20 20:41:48 PDT 1995
1372
1373 - Change configuration to not use gcc v2 flags with gcc v1.
1374
1375 - Fixed a bug in pcap_next(); if pcap_dispatch() returns 0, pcap_next()
1376   should also return 0. Thanks to Richard Stevens (rstevens@noao.edu).
1377
1378 - Fixed configure to test for snoop before dlpi to avoid problems under
1379   IRIX 5. Thanks to J. Eric Townsend (jet@abulafia.genmagic.com).
1380
1381 - Hack around deficiency in Ultrix's make.
1382
1383 - Fix two bugs related to the Solaris pre-5.3.2 bufmod bug; handle
1384   savefiles that have more than snapshot bytes of data in them (so we
1385   can read old savefiles) and avoid writing such files.
1386
1387 - Added checkioctl which is used with gcc to check that the
1388   "fixincludes" script has been run.
1389
1390 v0.0.3 Tue Oct 18 18:13:46 PDT 1994
1391
1392 - Fixed configure to test for snoop before dlpi to avoid problems under
1393   IRIX 5. Thanks to J. Eric Townsend (jet@abulafia.genmagic.com).
1394
1395 v0.0.2 Wed Oct 12 20:56:37 PDT 1994
1396
1397 - Implement timeout in the dlpi pcap_open_live(). Thanks to Richard
1398   Stevens.
1399
1400 - Determine pcap link type from dlpi media type. Resulted from report
1401   by Mahesh Jethanandani (mahesh@npix.com).
1402
1403 v0.0.1 Fri Jun 24 14:50:57 PDT 1994
1404
1405 - Fixed bug in nit_setflags() in pcap-snit.c. The streams ioctl timeout
1406   wasn't being initialized sometimes resulting in an "NIOCSFLAGS:
1407   Invalid argument" error under OSF/1. Reported by Matt Day
1408   (mday@artisoft.com) and Danny Mitzel (dmitzel@whitney.hitc.com).
1409
1410 - Turn on FDDI support by default.
1411
1412 v0.0 Mon Jun 20 19:20:16 PDT 1994
1413
1414 - Initial release.
1415
1416 - Fixed bug with greater/less keywords, reported by Mark Andrews
1417   (mandrews@alias.com).
1418
1419 - Fix bug where '|' was defined as BPF_AND instead of BPF_OR, reported
1420   by Elan Amir (elan@leeb.cs.berkeley.edu).
1421
1422 - Machines with little-endian byte ordering are supported thanks to
1423   Jeff Mogul.
1424
1425 - Add hack for version 2.3 savefiles which don't have caplen and len
1426   swapped thanks to Vern Paxson.
1427
1428 - Added "&&" and "||" aliases for "and" and "or" thanks to Vern Paxson.
1429
1430 - Added length, inbound and outbound keywords.