Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Feb 2017 07:04:44 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org
Subject:   svn commit: r313676 - in vendor/libpcap/dist: . Win32/Include Win32/Include/arpa Win32/Include/net Win32/Prj Win32/Src bpf/net cmake config lbl missing msdos packaging pcap tests
Message-ID:  <201702120704.v1C74ipo012990@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Sun Feb 12 07:04:44 2017
New Revision: 313676
URL: https://svnweb.freebsd.org/changeset/base/313676

Log:
  Vendor import of libpcap 1.8.1.

Added:
  vendor/libpcap/dist/CMakeLists.txt   (contents, props changed)
  vendor/libpcap/dist/GenVersion.bat
  vendor/libpcap/dist/Win32/Prj/wpcap.sln
  vendor/libpcap/dist/Win32/Prj/wpcap.vcxproj
  vendor/libpcap/dist/Win32/Prj/wpcap.vcxproj.filters
  vendor/libpcap/dist/cmake/
  vendor/libpcap/dist/cmake/preconfigure.cmake
  vendor/libpcap/dist/cmakeconfig.h.in   (contents, props changed)
  vendor/libpcap/dist/config/
  vendor/libpcap/dist/config/have_siocglifconf.c   (contents, props changed)
  vendor/libpcap/dist/configure.ac
  vendor/libpcap/dist/extract.h   (contents, props changed)
  vendor/libpcap/dist/fad-helpers.c   (contents, props changed)
  vendor/libpcap/dist/gen_version_c.sh   (contents, props changed)
  vendor/libpcap/dist/gen_version_header.sh   (contents, props changed)
  vendor/libpcap/dist/lbl/os-aix7.h   (contents, props changed)
  vendor/libpcap/dist/missing/getopt.c   (contents, props changed)
  vendor/libpcap/dist/missing/getopt.h   (contents, props changed)
  vendor/libpcap/dist/missing/strtok_r.c   (contents, props changed)
  vendor/libpcap/dist/missing/win_snprintf.c   (contents, props changed)
  vendor/libpcap/dist/nametoaddr.h   (contents, props changed)
  vendor/libpcap/dist/pcap-new.c   (contents, props changed)
  vendor/libpcap/dist/pcap-rpcap.c   (contents, props changed)
  vendor/libpcap/dist/pcap-rpcap.h   (contents, props changed)
  vendor/libpcap/dist/pcap-tc.c   (contents, props changed)
  vendor/libpcap/dist/pcap-tc.h   (contents, props changed)
  vendor/libpcap/dist/pcap/can_socketcan.h   (contents, props changed)
  vendor/libpcap/dist/pcap/dlt.h   (contents, props changed)
  vendor/libpcap/dist/pcap/export-defs.h   (contents, props changed)
  vendor/libpcap/dist/pcap_version.h.in   (contents, props changed)
  vendor/libpcap/dist/portability.h   (contents, props changed)
  vendor/libpcap/dist/remote-ext.h   (contents, props changed)
  vendor/libpcap/dist/sockutils.c   (contents, props changed)
  vendor/libpcap/dist/sockutils.h   (contents, props changed)
  vendor/libpcap/dist/tests/CMakeLists.txt   (contents, props changed)
  vendor/libpcap/dist/tests/can_set_rfmon_test.c   (contents, props changed)
Deleted:
  vendor/libpcap/dist/Win32/Include/addrinfo.h
  vendor/libpcap/dist/Win32/Include/arpa/
  vendor/libpcap/dist/Win32/Include/bittypes.h
  vendor/libpcap/dist/Win32/Include/cdecl_ext.h
  vendor/libpcap/dist/Win32/Include/inetprivate.h
  vendor/libpcap/dist/Win32/Include/ip6_misc.h
  vendor/libpcap/dist/Win32/Include/net/netdb.h
  vendor/libpcap/dist/Win32/Include/net/paths.h
  vendor/libpcap/dist/Win32/Include/sockstorage.h
  vendor/libpcap/dist/Win32/Prj/libpcap.dsp
  vendor/libpcap/dist/Win32/Prj/libpcap.dsw
  vendor/libpcap/dist/Win32/Src/
  vendor/libpcap/dist/configure.in
  vendor/libpcap/dist/fad-null.c
  vendor/libpcap/dist/fad-sita.c
  vendor/libpcap/dist/fad-win32.c
  vendor/libpcap/dist/packaging/
  vendor/libpcap/dist/pcap-can-linux.c
  vendor/libpcap/dist/pcap-can-linux.h
  vendor/libpcap/dist/pcap-canusb-linux.c
  vendor/libpcap/dist/pcap-canusb-linux.h
  vendor/libpcap/dist/runlex.sh
Modified:
  vendor/libpcap/dist/CHANGES
  vendor/libpcap/dist/CREDITS
  vendor/libpcap/dist/INSTALL.txt
  vendor/libpcap/dist/LICENSE
  vendor/libpcap/dist/Makefile-devel-adds
  vendor/libpcap/dist/Makefile.in
  vendor/libpcap/dist/README
  vendor/libpcap/dist/README.Win32
  vendor/libpcap/dist/README.aix
  vendor/libpcap/dist/README.hpux
  vendor/libpcap/dist/README.linux
  vendor/libpcap/dist/README.septel
  vendor/libpcap/dist/README.sita
  vendor/libpcap/dist/README.tru64
  vendor/libpcap/dist/TODO
  vendor/libpcap/dist/VERSION
  vendor/libpcap/dist/Win32/Include/Gnuc.h
  vendor/libpcap/dist/Win32/Include/net/if.h
  vendor/libpcap/dist/aclocal.m4
  vendor/libpcap/dist/bpf/net/bpf_filter.c
  vendor/libpcap/dist/bpf_dump.c
  vendor/libpcap/dist/bpf_image.c
  vendor/libpcap/dist/config.guess
  vendor/libpcap/dist/config.h.in
  vendor/libpcap/dist/config.sub
  vendor/libpcap/dist/configure
  vendor/libpcap/dist/dlpisubs.c
  vendor/libpcap/dist/etherent.c
  vendor/libpcap/dist/ethertype.h
  vendor/libpcap/dist/fad-getad.c
  vendor/libpcap/dist/fad-gifc.c
  vendor/libpcap/dist/fad-glifc.c
  vendor/libpcap/dist/gencode.c
  vendor/libpcap/dist/gencode.h
  vendor/libpcap/dist/grammar.y
  vendor/libpcap/dist/inet.c
  vendor/libpcap/dist/install-sh
  vendor/libpcap/dist/lbl/os-osf4.h
  vendor/libpcap/dist/lbl/os-osf5.h
  vendor/libpcap/dist/lbl/os-solaris2.h
  vendor/libpcap/dist/lbl/os-sunos4.h
  vendor/libpcap/dist/lbl/os-ultrix4.h
  vendor/libpcap/dist/missing/snprintf.c
  vendor/libpcap/dist/mkdep
  vendor/libpcap/dist/msdos/bin2c.c
  vendor/libpcap/dist/msdos/common.dj
  vendor/libpcap/dist/msdos/makefile
  vendor/libpcap/dist/msdos/makefile.dj
  vendor/libpcap/dist/msdos/makefile.wc
  vendor/libpcap/dist/msdos/ndis2.c
  vendor/libpcap/dist/msdos/ndis2.h
  vendor/libpcap/dist/msdos/ndis_0.asm
  vendor/libpcap/dist/msdos/pkt_rx0.asm
  vendor/libpcap/dist/msdos/pkt_rx1.s
  vendor/libpcap/dist/msdos/pktdrvr.c
  vendor/libpcap/dist/msdos/pktdrvr.h
  vendor/libpcap/dist/msdos/readme.dos
  vendor/libpcap/dist/nametoaddr.c
  vendor/libpcap/dist/optimize.c
  vendor/libpcap/dist/pcap-bpf.c
  vendor/libpcap/dist/pcap-bpf.h
  vendor/libpcap/dist/pcap-bt-linux.c
  vendor/libpcap/dist/pcap-bt-linux.h
  vendor/libpcap/dist/pcap-bt-monitor-linux.c
  vendor/libpcap/dist/pcap-common.c
  vendor/libpcap/dist/pcap-config.1
  vendor/libpcap/dist/pcap-dag.c
  vendor/libpcap/dist/pcap-dag.h
  vendor/libpcap/dist/pcap-dbus.c
  vendor/libpcap/dist/pcap-dlpi.c
  vendor/libpcap/dist/pcap-dos.c
  vendor/libpcap/dist/pcap-dos.h
  vendor/libpcap/dist/pcap-filter.manmisc.in
  vendor/libpcap/dist/pcap-int.h
  vendor/libpcap/dist/pcap-libdlpi.c
  vendor/libpcap/dist/pcap-linktype.manmisc.in
  vendor/libpcap/dist/pcap-linux.c
  vendor/libpcap/dist/pcap-netfilter-linux.c
  vendor/libpcap/dist/pcap-netfilter-linux.h
  vendor/libpcap/dist/pcap-nit.c
  vendor/libpcap/dist/pcap-null.c
  vendor/libpcap/dist/pcap-pf.c
  vendor/libpcap/dist/pcap-savefile.manfile.in
  vendor/libpcap/dist/pcap-septel.c
  vendor/libpcap/dist/pcap-sita.c
  vendor/libpcap/dist/pcap-snf.c
  vendor/libpcap/dist/pcap-snit.c
  vendor/libpcap/dist/pcap-snoop.c
  vendor/libpcap/dist/pcap-stdinc.h
  vendor/libpcap/dist/pcap-tstamp.manmisc.in
  vendor/libpcap/dist/pcap-usb-linux.c
  vendor/libpcap/dist/pcap-usb-linux.h
  vendor/libpcap/dist/pcap-win32.c
  vendor/libpcap/dist/pcap.3pcap.in
  vendor/libpcap/dist/pcap.c
  vendor/libpcap/dist/pcap/bluetooth.h
  vendor/libpcap/dist/pcap/bpf.h
  vendor/libpcap/dist/pcap/namedb.h
  vendor/libpcap/dist/pcap/nflog.h
  vendor/libpcap/dist/pcap/pcap.h
  vendor/libpcap/dist/pcap/sll.h
  vendor/libpcap/dist/pcap/usb.h
  vendor/libpcap/dist/pcap_activate.3pcap
  vendor/libpcap/dist/pcap_breakloop.3pcap
  vendor/libpcap/dist/pcap_can_set_rfmon.3pcap
  vendor/libpcap/dist/pcap_close.3pcap
  vendor/libpcap/dist/pcap_compile.3pcap.in
  vendor/libpcap/dist/pcap_create.3pcap
  vendor/libpcap/dist/pcap_datalink.3pcap.in
  vendor/libpcap/dist/pcap_datalink_name_to_val.3pcap
  vendor/libpcap/dist/pcap_datalink_val_to_name.3pcap
  vendor/libpcap/dist/pcap_dump.3pcap
  vendor/libpcap/dist/pcap_dump_close.3pcap
  vendor/libpcap/dist/pcap_dump_file.3pcap
  vendor/libpcap/dist/pcap_dump_flush.3pcap
  vendor/libpcap/dist/pcap_dump_ftell.3pcap
  vendor/libpcap/dist/pcap_dump_open.3pcap.in
  vendor/libpcap/dist/pcap_file.3pcap
  vendor/libpcap/dist/pcap_fileno.3pcap
  vendor/libpcap/dist/pcap_findalldevs.3pcap
  vendor/libpcap/dist/pcap_freecode.3pcap
  vendor/libpcap/dist/pcap_get_selectable_fd.3pcap
  vendor/libpcap/dist/pcap_get_tstamp_precision.3pcap.in
  vendor/libpcap/dist/pcap_geterr.3pcap
  vendor/libpcap/dist/pcap_inject.3pcap
  vendor/libpcap/dist/pcap_is_swapped.3pcap
  vendor/libpcap/dist/pcap_lib_version.3pcap
  vendor/libpcap/dist/pcap_list_datalinks.3pcap.in
  vendor/libpcap/dist/pcap_list_tstamp_types.3pcap.in
  vendor/libpcap/dist/pcap_lookupdev.3pcap
  vendor/libpcap/dist/pcap_lookupnet.3pcap
  vendor/libpcap/dist/pcap_loop.3pcap
  vendor/libpcap/dist/pcap_major_version.3pcap
  vendor/libpcap/dist/pcap_next_ex.3pcap
  vendor/libpcap/dist/pcap_offline_filter.3pcap
  vendor/libpcap/dist/pcap_open_dead.3pcap.in
  vendor/libpcap/dist/pcap_open_live.3pcap
  vendor/libpcap/dist/pcap_open_offline.3pcap.in
  vendor/libpcap/dist/pcap_set_buffer_size.3pcap
  vendor/libpcap/dist/pcap_set_datalink.3pcap
  vendor/libpcap/dist/pcap_set_immediate_mode.3pcap
  vendor/libpcap/dist/pcap_set_promisc.3pcap
  vendor/libpcap/dist/pcap_set_rfmon.3pcap
  vendor/libpcap/dist/pcap_set_snaplen.3pcap
  vendor/libpcap/dist/pcap_set_timeout.3pcap
  vendor/libpcap/dist/pcap_set_tstamp_precision.3pcap.in
  vendor/libpcap/dist/pcap_set_tstamp_type.3pcap.in
  vendor/libpcap/dist/pcap_setdirection.3pcap
  vendor/libpcap/dist/pcap_setfilter.3pcap
  vendor/libpcap/dist/pcap_setnonblock.3pcap
  vendor/libpcap/dist/pcap_snapshot.3pcap
  vendor/libpcap/dist/pcap_stats.3pcap
  vendor/libpcap/dist/pcap_statustostr.3pcap
  vendor/libpcap/dist/pcap_strerror.3pcap
  vendor/libpcap/dist/pcap_tstamp_type_name_to_val.3pcap
  vendor/libpcap/dist/pcap_tstamp_type_val_to_name.3pcap
  vendor/libpcap/dist/savefile.c
  vendor/libpcap/dist/scanner.l
  vendor/libpcap/dist/sf-pcap-ng.c
  vendor/libpcap/dist/sf-pcap.c
  vendor/libpcap/dist/tests/capturetest.c
  vendor/libpcap/dist/tests/filtertest.c
  vendor/libpcap/dist/tests/findalldevstest.c
  vendor/libpcap/dist/tests/opentest.c
  vendor/libpcap/dist/tests/reactivatetest.c
  vendor/libpcap/dist/tests/selpolltest.c
  vendor/libpcap/dist/tests/valgrindtest.c

Modified: vendor/libpcap/dist/CHANGES
==============================================================================
--- vendor/libpcap/dist/CHANGES	Sun Feb 12 06:56:33 2017	(r313675)
+++ vendor/libpcap/dist/CHANGES	Sun Feb 12 07:04:44 2017	(r313676)
@@ -1,5 +1,80 @@
+Tuesday, Oct. 25, 2016 mcr@sandelman.ca
+  Summary for 1.8.1 libpcap release
+    Add a target in Makefile.in for Exuberant Ctags use: 'extags'.
+    Rename configure.in to configure.ac: autoconf 2.59
+    Clean up the name-to-DLT mapping table.
+    Add some newer DLT_ values: IPMI_HPM_2,ZWAVE_R1_R2,ZWAVE_R3,WATTSTOPPER_DLM,ISO_14443,RDS
+    Clarify what the return values are for both success and failure.
+    Many changes to build on windows
+    Check for the "break the loop" condition in the inner loop for TPACKET_V3.
+    Fix handling of packet count in the TPACKET_V3 inner loop: GitHub issue #493.
+    Filter out duplicate looped back CAN frames.
+    Fix the handling of loopback filters for IPv6 packets.
+    Add a link-layer header type for RDS (IEC 62106) groups.
+    Use different intermediate folders for x86 and x64 builds on Windows.
+    On Linux, handle all CAN captures with pcap-linux.c, in cooked mode.
+    Removes the need for the "host-endian" link-layer header type.
+    Compile with '-Wused-but-marked-unused' in devel mode if supported
+    Have separate DLTs for big-endian and host-endian SocketCAN headers.
+    Reflect version.h being renamed to pcap_version.h.
+    Require that version.h be generated: all build procedures we support generate version.h (autoconf, CMake, MSVC)!
+    Properly check for sock_recv() errors.
+    Re-impose some of Winsock's limitations on sock_recv().
+    Replace sprintf() with pcap_snprintf().
+    Fix signature of pcap_stats_ex_remote().
+    Initial cmake support for remote packet capture.
+    Have rpcap_remoteact_getsock() return a SOCKET and supply an "is active" flag.
+    Clean up {DAG, Septel, Myricom SNF}-only builds.
+    Do UTF-16-to-ASCII conversion into the right place.
+    pcap_create_interface() needs the interface name on Linux.
+    Clean up hardware time stamp support: the "any" device does not support any time stamp types.
+    Add support for capturing on FreeBSD usbusN interfaces.
+    Add a LINKTYPE/DLT_ value for FreeBSD USB.
+    Go back to using PCAP_API on Windows.
+    CMake support
+    Add TurboCap support from WinPcap.
+    Recognize 802.1ad nested VLAN tag in vlan filter.
+
+Thursday Sep. 3, 2015 guy@alum.mit.edu
+  Summary for 1.7.5 libpcap release
+	Man page cleanups.
+	Add some allocation failure checks.
+	Fix a number of Linux/ucLinux configure/build issues.
+	Fix some memory leaks.
+	Recognize 802.1ad nested VLAN tag in vlan filter.
+	Fix building Bluetooth Linux Monitor support with BlueZ 5.1+
+
+Saturday Jun. 27, 2015 mcr@sandelman.ca
+  Summary for 1.7.4 libpcap release
+	Include fix for GitHub issue #424 -- out of tree builds.
+
+Friday Apr. 10, 2015 guy@alum.mit.edu
+  Summary for 1.7.3 libpcap release
+	Work around a Linux bonding driver bug.
+
+Thursday Feb. 12, 2015 guy@alum.mit.edu/mcr@sandelman.ca
+  Summary for 1.7.2 libpcap release
+	Support for filtering Geneve encapsulated packets.
+	Generalize encapsulation handling, fixing some bugs.
+	Don't add null addresses to address lists.
+	Add pcap_dump_open_append() to open for appending.
+	Fix the swapping of isochronous descriptors in Linux USB.
+	Attempt to handle TPACKET_V1 with 32-bit userland and 64-bit kernel.
+
+Wednesday Nov. 12, 2014 guy@alum.mit.edu/mcr@sandelman.ca
+  Summary for 1.7.0 libpcap release
+	Fix handling of zones for BPF on Solaris
+	new DLT for ZWAVE
+	clarifications for read timeouts.
+	Use BPF extensions in compiled filters, fixing VLAN filters
+	some fixes to compilation without stdint.h
+	EBUSY can now be returned by SNFv3 code.
+	Fix the range checks in BPF loads
+	Various DAG fixes.
+	Various Linux fixes.
+
 Monday Aug. 12, 2014 guy@alum.mit.edu
-  Summary for 1.6.2 tcpdump release
+  Summary for 1.6.2 libpcap release
 	Don't crash on filters testing a non-existent link-layer type
 	    field.
 	Fix sending in non-blocking mode on Linux with memory-mapped
@@ -8,12 +83,12 @@ Monday Aug. 12, 2014 guy@alum.mit.edu
 	    machines.
 
 Saturday  Jul. 19, 2014 mcr@sandelman.ca
-  Summary for 1.6.1 tcpdump release
+  Summary for 1.6.1 libpcap release
 	some fixes for the any device
-	changes for how --enable-XXX works
+	changes for how --enable-XXX (--enable-sniffing, --enable-can) works
 
 Wednesday Jul. 2, 2014 mcr@sandelman.ca
-  Summary for 1.6.0 tcpdump release
+  Summary for 1.6.0 libpcap release
         Don't support D-Bus sniffing on OS X
         fixes for byte order issues with NFLOG captures
         Handle using cooked mode for DLT_NETLINK in activate_new().

Added: vendor/libpcap/dist/CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ vendor/libpcap/dist/CMakeLists.txt	Sun Feb 12 07:04:44 2017	(r313676)
@@ -0,0 +1,520 @@
+cmake_minimum_required( VERSION 2.8.8 )
+
+project( pcap )
+#
+# Call the library "wpcap" on Windows, for backwards compatibility.
+#
+if( WIN32 )
+    set( LIBRARY_NAME wpcap )
+else()
+    set( LIBRARY_NAME pcap )
+endif()
+
+###################################################################
+#   Parameters
+###################################################################
+
+option (INET6 "Enable IPv6" ON)
+if( MSVC )
+    option (USE_STATIC_RT "Use static Runtime" ON)
+endif( MSVC )
+option (BUILD_SHARED_LIBS "Build shared libraries" ON)
+if( WIN32 )
+    set(PACKET_DLL_DIR "" CACHE PATH "Path to directory with include and lib subdirectories for packet.dll")
+endif( WIN32 )
+
+#
+# XXX - this should be an option, defaulting to "yes" for Windows and to
+# "no", for now, on UN*X.
+#
+if( WIN32 )
+    set( HAVE_REMOTE 1 )
+endif( WIN32 )
+
+######################################
+# Project settings
+######################################
+
+add_definitions( -DHAVE_CONFIG_H )
+
+include_directories(
+    ${CMAKE_CURRENT_BINARY_DIR}
+    ${pcap_SOURCE_DIR}
+)
+
+if( WIN32 )
+    if( NOT "${PACKET_DLL_DIR}" STREQUAL "" )
+        include_directories("${PACKET_DLL_DIR}/Include")
+        if( CMAKE_CL_64 )
+            link_directories("${PACKET_DLL_DIR}/Lib/x64")
+        else( CMAKE_CL_64 )
+            link_directories("${PACKET_DLL_DIR}/Lib")
+        endif( CMAKE_CL_64 )
+    endif()
+    include_directories(
+        ../Common/
+        Win32/Include
+    )
+endif( WIN32)
+
+add_definitions( -DBUILDING_PCAP )
+
+if( MSVC )
+    add_definitions( -D__STDC__ )
+    add_definitions( -D_CRT_SECURE_NO_WARNINGS )
+    add_definitions( "-D_U_=" )
+elseif( CMAKE_COMPILER_IS_GNUCXX )
+    add_definitions( "-D_U_=__attribute__((unused))" )
+else(MSVC)
+    add_definitions( "-D_U_=" )
+endif( MSVC )
+
+if( MSVC )
+    if (USE_STATIC_RT)
+        MESSAGE( STATUS "Use STATIC runtime" )
+        set(NAME_RT MT)
+        set (CMAKE_CXX_FLAGS_MINSIZEREL     "${CMAKE_CXX_FLAGS_MINSIZEREL} /MT")
+        set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /MT")
+        set (CMAKE_CXX_FLAGS_RELEASE        "${CMAKE_CXX_FLAGS_RELEASE} /MT")
+        set (CMAKE_CXX_FLAGS_DEBUG          "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
+
+        set (CMAKE_C_FLAGS_MINSIZEREL       "${CMAKE_C_FLAGS_MINSIZEREL} /MT")
+        set (CMAKE_C_FLAGS_RELWITHDEBINFO   "${CMAKE_C_FLAGS_RELWITHDEBINFO} /MT")
+        set (CMAKE_C_FLAGS_RELEASE          "${CMAKE_C_FLAGS_RELEASE} /MT")
+        set (CMAKE_C_FLAGS_DEBUG            "${CMAKE_C_FLAGS_DEBUG} /MTd")
+    else (USE_STATIC_RT)
+        MESSAGE( STATUS "Use DYNAMIC runtime" )
+        set(NAME_RT MD)
+        set (CMAKE_CXX_FLAGS_MINSIZEREL     "${CMAKE_CXX_FLAGS_MINSIZEREL} /MD")
+        set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /MD")
+        set (CMAKE_CXX_FLAGS_RELEASE        "${CMAKE_CXX_FLAGS_RELEASE} /MD")
+        set (CMAKE_CXX_FLAGS_DEBUG          "${CMAKE_CXX_FLAGS_DEBUG} /MDd")
+
+        set (CMAKE_C_FLAGS_MINSIZEREL       "${CMAKE_C_FLAGS_MINSIZEREL} /MD")
+        set (CMAKE_C_FLAGS_RELWITHDEBINFO   "${CMAKE_C_FLAGS_RELWITHDEBINFO} /MD")
+        set (CMAKE_C_FLAGS_RELEASE          "${CMAKE_C_FLAGS_RELEASE} /MD")
+        set (CMAKE_C_FLAGS_DEBUG            "${CMAKE_C_FLAGS_DEBUG} /MDd")
+   endif (USE_STATIC_RT)
+endif( MSVC )
+
+###################################################################
+#   Detect available platform features
+###################################################################
+
+include(CheckIncludeFile)
+include(CheckFunctionExists)
+include(CheckStructHasMember)
+include(CheckTypeSize)
+
+#
+# Header files.
+#
+check_include_file( inttypes.h HAVE_INTTYPES_H )
+check_include_file( stdint.h HAVE_STDINT_H )
+check_include_file( unistd.h HAVE_UNISTD_H )
+if( NOT HAVE_UNISTD_H )
+    add_definitions( -DYY_NO_UNISTD_H )
+endif( NOT HAVE_UNISTD_H )
+check_include_file( bitypes.h HAVE_SYS_BITYPES_H )
+check_include_file( limits.h HAVE_LIMITS_H )
+
+#
+# Functions.
+#
+check_function_exists( strerror HAVE_STRERROR )
+check_function_exists( strlcpy HAVE_STRLCPY )
+check_function_exists( snprintf HAVE_SNPRINTF )
+check_function_exists( vsnprintf HAVE_VSNPRINTF )
+check_function_exists( strtok_r HAVE_STRTOK_R )
+
+if (WIN32)
+    #
+    # Check for Windows-only functions, such as packet.dll functions.
+    #
+    check_function_exists( PacketIsLoopbackAdapter HAVE_PACKET_IS_LOOPBACK_ADAPTER )
+endif()
+
+#
+# Data types.
+#
+# XXX - there's no check_struct() macro that's like check_struct_has_member()
+# except that it only checks for the existence of the structure type,
+# so we use check_struct_has_member() and look for ss_family.
+#
+check_struct_has_member("struct sockaddr_storage" ss_family sys/socket.h  HAVE_SOCKADDR_STORAGE)
+set(CMAKE_EXTRA_INCLUDE_FILES unistd.h sys/socket.h)
+check_type_size("socklen_t" SOCKLEN_T)
+set(CMAKE_EXTRA_INCLUDE_FILES unistd.h)
+
+#
+# Structure fields.
+#
+check_struct_has_member("struct sockaddr" sa_len sys/socket.h HAVE_SOCKADDR_SA_LEN )
+
+if( INET6 )
+    MESSAGE( STATUS "Use IPv6" )
+endif( INET6 )
+
+if( WIN32 )
+    add_definitions( -DHAVE_ADDRINFO )
+endif( WIN32 )
+
+######################################
+# External dependencies
+######################################
+
+######################################
+# Input files
+######################################
+
+set(PROJECT_SOURCE_LIST_C
+    bpf_dump.c
+    bpf_image.c
+    etherent.c
+    fad-helpers.c
+    gencode.c
+    inet.c
+    nametoaddr.c
+    optimize.c
+    pcap-common.c
+    pcap.c
+    savefile.c
+    sf-pcap-ng.c
+    sf-pcap.c
+    bpf/net/bpf_filter.c
+)
+
+if( WIN32 )
+    set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} missing/win_snprintf.c )
+else()
+    if( NOT HAVE_SNPRINTF )
+        set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} missing/snprintf.c )
+    endif( NOT HAVE_SNPRINTF )
+    if( NOT HAVE_STRTOK_R )
+        set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} missing/strtok_r.c )
+    endif( NOT HAVE_STRTOK_R )
+endif( WIN32 )
+
+if( HAVE_REMOTE )
+    set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C}
+        pcap-new.c pcap-rpcap.c sockutils.c)
+endif( HAVE_REMOTE )
+
+#
+# Determine the main pcap-XXX.c file to use.
+#
+if( WIN32 )
+    #
+    # WinPcap.
+    #
+    set( PCAP_TYPE win32 )
+else()
+    #
+    # UN*X - figure out what type of packet capture mechanism we
+    # have.
+    #
+    if( EXISTS /dev/bpf )
+	#
+	# Cloning BPF device.
+	#
+	set( PCAP_TYPE bpf )
+	AC_DEFINE(HAVE_CLONING_BPF,1,[define if you have a cloning BPF device])
+    elseif( EXISTS /dev/bpf0 )
+	set( PCAP_TYPE bpf )
+
+        #
+        # XXX - many more BPF checks.
+        #
+    elseif( EXISTS /usr/include/net/pfilt.h )
+        #
+        # DEC OSF/1, Digital UNIX, Tru64 UNIX
+        #
+	set( PCAP_TYPE pf )
+    elseif( EXISTS /dev/enet )
+        set( PCAP_TYPE enet )
+    elseif( EXISTS /dev/nit )
+        set( PCAP_TYPE snit )
+    elseif( EXISTS /usr/include/sys/net/nit.h )
+        set( PCAP_TYPE nit )
+    elseif( EXISTS /usr/include/linux/socket.h )
+        set( PCAP_TYPE linux )
+
+	#
+	# Do we have the wireless extensions?
+	#
+        check_include_file( linux/wireless.h HAVE_LINUX_WIRELESS_H )
+
+        #
+        # XXX - many more Linux checks.
+	#
+    elseif( EXISTS /usr/include/net/raw.h )
+        set( PCAP_TYPE snoop )
+    elseif( EXISTS /usr/include/odmi.h )
+        #
+        # On AIX, the BPF devices might not yet be present - they're
+        # created the first time libpcap runs after booting.
+        # We check for odmi.h instead.
+        #
+        set( PCAP_TYPE bpf )
+    elseif( /usr/include/sys/dlpi.h )
+        set( PCAP_TYPE dlpi )
+
+        #
+        # XXX - many more DLPI checks.
+        #
+    else()
+	set( PCAP_TYPE null )
+    endif()
+endif( WIN32 )
+message(STATUS "Packet capture mechanism type: ${PCAP_TYPE}")
+set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} pcap-${PCAP_TYPE}.c)
+
+#
+# Now figure out how we get a list of interfaces and addresses,
+# if we support capturing.  Don't bother if we don't support
+# capturing.
+#
+if( NOT WIN32 )
+    #
+    # UN*X - figure out what type of interface list mechanism we
+    # have.
+    #
+    if( ${PCAP_TYPE} STREQUAL "null" )
+        #
+        # We can't capture, so we can't open any capture
+        # devices, so we won't return any interfaces.
+        #
+        set( FINDALLDEVS_TYPE null )
+    else()
+        check_function_exists( getifaddrs HAVE_GETIFADDRS )
+        if( ${HAVE_GETIFADDRS} )
+            #
+            # We have "getifaddrs()"; make sure we have <ifaddrs.h>
+            # as well, just in case some platform is really weird.
+            #
+            check_include_file( ifaddrs.h HAVE_IFADDRS_H )
+            if( ${HAVE_IFADDRS_H} )
+                #
+                # We have the header, so we use "getifaddrs()" to
+                # get the list of interfaces.
+                #
+                set( FINDALLDEVS_TYPE getad )
+            else()
+                #
+                # We don't have the header - give up.
+                # XXX - we could also fall back on some other
+                # mechanism, but, for now, this'll catch this
+                # problem so that we can at least try to figure
+                # out something to do on systems with "getifaddrs()"
+                # but without "ifaddrs.h", if there is something
+                # we can do on those systems.
+                #
+                message(FATAL_ERROR "Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." )
+            endif()
+        else()
+            #
+            # Well, we don't have "getifaddrs()", so we have to use
+            # some other mechanism; determine what that mechanism is.
+            #
+            # The first thing we use is the type of capture mechanism,
+            # which is somewhat of a proxy for the OS we're using.
+            #
+            if( ${PCAP_TYPE} STREQUAL "dlpi" OR ${PCAP_TYPE} STREQUAL "libdlpi" )
+                #
+                # This might be Solaris 8 or later, with
+                # SIOCGLIFCONF, or it might be some other OS
+                # or some older version of Solaris, with
+                # just SIOCGIFCONF.
+                #
+                try_compile( HAVE_SIOCGLIFCONF ${CMAKE_CURRENT_BINARY_DIR} "${pcap_SOURCE_DIR}/config/have_siocglifconf.c"  )
+                message( STATUS "HAVE_SIOCGLIFCONF = ${HAVE_SIOCGLIFCONF}" )
+                if( HAVE_SIOCGLIFCONF )
+                    set( FINDALLDEVS_TYPE glifc )
+                else()
+                    set( FINDALLDEVS_TYPE gifc )
+                endif()
+            else()
+                #
+                # Assume we just have SIOCGIFCONF.
+                # (XXX - on at least later Linux kernels, there's
+                # another mechanism, and we should be using that
+                # instead.)
+                #
+                set( FINDALLDEVS_TYPE gifc )
+            endif()
+        endif()
+    endif()
+    message(STATUS "Find-interfaces mechanism type: ${FINDALLDEVS_TYPE}")
+    set( PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} fad-${FINDALLDEVS_TYPE}.c )
+endif()
+
+file(GLOB PROJECT_SOURCE_LIST_CORE_H
+    *.h
+    pcap/*.h
+)
+set( PROJECT_SOURCE_LIST_H ${PROJECT_SOURCE_LIST_H} ${PROJECT_SOURCE_LIST_CORE_H} )
+
+if( WIN32 )
+    file(GLOB PROJECT_SOURCE_LIST_WIN32_H
+        Win32/Include/*.h
+    )
+    set( PROJECT_SOURCE_LIST_H ${PROJECT_SOURCE_LIST_H} ${PROJECT_SOURCE_LIST_WIN32_H} )
+endif( WIN32 )
+
+#
+# {Flex} and YACC/Berkeley YACC/Bison.
+# From a mail message to the CMake mailing list by Andy Cedilnik of
+# Kitware.
+#
+
+#
+# Try to find Flex, a Windows version of Flex, or Lex.
+#
+find_program(LEX_EXECUTABLE NAMES flex win_flex lex)
+if( ${LEX_EXECUTABLE} STREQUAL "LEX_EXECUTABLE-NOTFOUND" )
+    message(FATAL_ERROR "Neither flex nor win_flex nor lex was found." )
+endif()
+message(STATUS "Lexical analyzer generator: ${LEX_EXECUTABLE}")
+
+add_custom_command(
+    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/scanner.c ${CMAKE_CURRENT_BINARY_DIR}/scanner.h
+    SOURCE ${pcap_SOURCE_DIR}/scanner.l
+    COMMAND ${LEX_EXECUTABLE} -P pcap_ --header-file=scanner.h --nounput -o${CMAKE_CURRENT_BINARY_DIR}/scanner.c ${pcap_SOURCE_DIR}/scanner.l
+    DEPENDS ${pcap_SOURCE_DIR}/scanner.l
+)
+
+#
+# Since scanner.c does not exist yet when cmake is run, mark
+# it as generated.
+#
+# Since scanner.c includes grammar.h, mark that as a dependency.
+#
+set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/scanner.c PROPERTIES
+    GENERATED TRUE
+    OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/scanner.h
+)
+
+#
+# Add scanner.c to the list of sources.
+#
+#set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} ${CMAKE_CURRENT_BINARY_DIR}/scanner.c)
+
+#
+# Try to find YACC or Bison.
+#
+find_program(YACC_EXECUTABLE NAMES bison win_bison byacc yacc)
+if( ${YACC_EXECUTABLE} STREQUAL "YACC_EXECUTABLE-NOTFOUND" )
+    message(FATAL_ERROR "Neither bison nor win_bison nor byacc nor yacc was found." )
+endif()
+message(STATUS "Parser generator: ${YACC_EXECUTABLE}")
+
+#
+# Create custom command for the scanner.
+# Find out whether it's Bison or notby looking at the last component
+# of the path (without a .exe extension, if this is Windows).
+#
+get_filename_component(YACC_NAME ${YACC_EXECUTABLE} NAME_WE)
+if( "${YACC_NAME}" STREQUAL "bison" OR "${YACC_NAME}" STREQUAL "win_bison" )
+    set( YACC_COMPATIBILITY_FLAG "-y" )
+endif()
+add_custom_command(
+    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/grammar.c ${CMAKE_CURRENT_BINARY_DIR}/grammar.h
+    SOURCE ${pcap_SOURCE_DIR}/grammar.y
+    COMMAND ${YACC_EXECUTABLE} ${YACC_COMPATIBILITY_FLAG} -p pcap_ -o ${CMAKE_CURRENT_BINARY_DIR}/grammar.c -d ${pcap_SOURCE_DIR}/grammar.y
+    DEPENDS ${pcap_SOURCE_DIR}/grammar.y
+)
+
+#
+# Since grammar.c does not exists yet when cmake is run, mark
+# it as generated.
+#
+set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/grammar.c PROPERTIES
+    GENERATED TRUE
+)
+
+#
+# Add grammar.c to the list of sources.
+#
+#set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} ${CMAKE_CURRENT_BINARY_DIR}/grammar.c)
+
+if( WIN32 )
+    #
+    # CMake does not love Windows.
+    #
+    file(TO_NATIVE_PATH "${pcap_SOURCE_DIR}/GenVersion.bat" GenVersion_path)
+    file(TO_NATIVE_PATH "${pcap_SOURCE_DIR}/VERSION" VERSION_path)
+    file(TO_NATIVE_PATH "${pcap_SOURCE_DIR}/pcap_version.h.in" version_h_in_path)
+    file(TO_NATIVE_PATH "${CMAKE_CURRENT_BINARY_DIR}/pcap_version.h" version_h_path)
+    add_custom_command(
+        OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/pcap_version.h
+        SOURCE ${pcap_SOURCE_DIR}/VERSION ${pcap_SOURCE_DIR}/pcap_version.h.in
+        COMMAND ${GenVersion_path} ${VERSION_path} ${version_h_in_path} ${version_h_path}
+        DEPENDS ${pcap_SOURCE_DIR}/VERSION ${pcap_SOURCE_DIR}/pcap_version.h.in
+    )
+else( WIN32 )
+    add_custom_command(
+        OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/version.c
+        SOURCE ${pcap_SOURCE_DIR}/VERSION
+        COMMAND ${pcap_SOURCE_DIR}/gen_version_c.sh ${pcap_SOURCE_DIR}/VERSION ${CMAKE_CURRENT_BINARY_DIR}/version.c
+        DEPENDS ${pcap_SOURCE_DIR}/VERSION
+    )
+    add_custom_command(
+        OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/pcap_version.h
+        SOURCE ${pcap_SOURCE_DIR}/VERSION
+        COMMAND ${pcap_SOURCE_DIR}/gen_version_header.sh ${pcap_SOURCE_DIR}/VERSION ${pcap_SOURCE_DIR}/pcap_version.h.in ${CMAKE_CURRENT_BINARY_DIR}/pcap_version.h
+        DEPENDS ${pcap_SOURCE_DIR}/VERSION
+    )
+
+    #
+    # Since version.c does not exists yet when cmake is run, mark
+    # it as generated.
+    #
+    set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/version.c PROPERTIES
+        GENERATED TRUE
+    )
+
+    #
+    # Add version.c to the list of sources.
+    #
+    set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} ${CMAKE_CURRENT_BINARY_DIR}/version.c)
+endif( WIN32 )
+
+#
+# Since pcap_version.h does not exists yet when cmake is run, mark
+# it as generated.
+#
+set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/pcap_version.h PROPERTIES
+    GENERATED TRUE
+)
+
+#
+# Add pcap_version.h to the list of headers.
+#
+set(PROJECT_SOURCE_LIST_H ${PROJECT_SOURCE_LIST_H} ${CMAKE_CURRENT_BINARY_DIR}/pcap_version.h)
+
+source_group("Source Files" FILES ${PROJECT_SOURCE_LIST_C})
+source_group("Header Files" FILES ${PROJECT_SOURCE_LIST_H})
+
+######################################
+# Register targets
+######################################
+
+add_library(${LIBRARY_NAME}
+    ${PROJECT_SOURCE_LIST_C}
+    ${CMAKE_CURRENT_BINARY_DIR}/grammar.c
+    ${CMAKE_CURRENT_BINARY_DIR}/scanner.c
+    ${PROJECT_SOURCE_LIST_H}
+)
+
+if( WIN32 )
+    target_link_libraries ( ${LIBRARY_NAME}
+        packet
+        ws2_32
+    )
+endif( WIN32 )
+
+######################################
+# Write out the config.h file
+######################################
+
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmakeconfig.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)

Modified: vendor/libpcap/dist/CREDITS
==============================================================================
--- vendor/libpcap/dist/CREDITS	Sun Feb 12 06:56:33 2017	(r313675)
+++ vendor/libpcap/dist/CREDITS	Sun Feb 12 07:04:44 2017	(r313676)
@@ -2,11 +2,12 @@ This file lists people who have contribu
 
 The current maintainers:
     Bill Fenner                   <fenner at research dot att dot com>
-    Denis Ovsienko                <infrastation at yandex dot ru>
+    Denis Ovsienko                <denis at ovsienko dot info>
     Fulvio Risso                  <risso at polito dot it>
     Guy Harris                    <guy at alum dot mit dot edu>
     Hannes Gredler                <hannes at juniper dot net>
     Michael Richardson            <mcr at sandelman dot ottawa dot on dot ca>
+    Francois-Xavier Le Bail       <fx dot lebail at yahoo dot com>
 
 Additional people who have contributed patches:
 
@@ -45,7 +46,7 @@ Additional people who have contributed p
     David Young                   <dyoung at ojctech dot com>
     Dean Gaudet                   <dean at arctic dot org>
     dhruv                         <rsrivat at sourceforge dot net>
-    Don Ebright                   <Don dot Ebright at compuware dot com> 
+    Don Ebright                   <Don dot Ebright at compuware dot com>
     Dug Song                      <dugsong at monkey dot org>
     Dustin Spicuzza               <dustin at virtualroadside dot com>
     dzejarczech                   <dzejarczech at sourceforge dot net>
@@ -83,6 +84,7 @@ Additional people who have contributed p
     Jefferson Ogata               <jogata at nodc dot noaa dot gov>
     Jesper Dangaard Brouer        <hawk at comx dot dk>
     Jesper Peterson               <jesper at endace dot com>
+    Jesse Gross                   <jesse at nicira dot com>
     Jiri Slaby                    <jirislaby at gmail dot com>
     Joerg Mayer                   <jmayer at loplof dot de>
     John Bankier                  <jbankier at rainfinity dot com>
@@ -105,6 +107,7 @@ Additional people who have contributed p
     Mansour Behabadi              <mansour at oxplot dot com>
     Marcus Felipe Pereira         <marcus at task dot com dot br>
     Mark C. Brown                 <mbrown at hp dot com>
+    Mark Johnston                 <markjdb at gmail dot com>
     Mark Pizzolato                <List-tcpdump-workers at subscriptions dot pizzolato dot net>
     Markus Mayer                  <markus_mayer at sourceforge dot net>
     Martin Husemann               <martin at netbsd dot org>

Added: vendor/libpcap/dist/GenVersion.bat
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ vendor/libpcap/dist/GenVersion.bat	Sun Feb 12 07:04:44 2017	(r313676)
@@ -0,0 +1,23 @@
+REM
+REM Automatically generate pcap_version.h based on pcap_version.h.in
+REM for Windows
+REM The version string comes from VERSION
+REM @echo off
+REM
+
+setlocal enableextensions disabledelayedexpansion
+
+set "search=%%%%LIBPCAP_VERSION%%%%"
+set /p replace=<%1
+
+if exist %3 del %3 2>nul
+
+for /f "delims=" %%i in ('type %2' ) do (
+	set "line=%%i"
+	setlocal enabledelayedexpansion
+	set "line=!line:%search%=%replace%!"
+	>>%3 echo(!line!
+	endlocal
+)
+
+echo pcap_version.h generated

Modified: vendor/libpcap/dist/INSTALL.txt
==============================================================================
--- vendor/libpcap/dist/INSTALL.txt	Sun Feb 12 06:56:33 2017	(r313675)
+++ vendor/libpcap/dist/INSTALL.txt	Sun Feb 12 07:04:44 2017	(r313676)
@@ -16,7 +16,7 @@ does support packet capture but libpcap 
 particular type. (If you have HP-UX, see below.) If your system uses a
 packet capture not supported by libpcap, please send us patches; don't
 forget to include an autoconf fragment suitable for use in
-configure.in.
+configure.ac.
 
 It is possible to override the default packet capture type, although
 the circumstance where this works are limited. For example if you have
@@ -31,40 +31,22 @@ You will need an ANSI C compiler to buil
 will abort if your compiler is not ANSI compliant. If this happens, use
 the generally available GNU C compiler (GCC).
 
-If you use flex, you must use version 2.4.6 or higher. The configure
-script automatically detects the version of flex and will not use it
-unless it is new enough. You can use "flex -V" to see what version you
-have (unless it's really old). The current version of flex is available
-at flex.sourceforge.net and often comes packaged by means of the OS.
-As of this writing, the current version is 2.5.37.
-
-If you use bison, you must use flex (and visa versa). The configure
-script automatically falls back to lex and yacc if both flex and bison
-are not found.
-
-Sometimes the stock C compiler does not interact well with flex and
-bison. The list of problems includes undefined references for alloca.
-You can get around this by installing gcc or manually disabling flex
-and bison with:
-
-    ./configure --without-flex --without-bison
-
-If your system only has AT&T lex, this is okay unless your libpcap
-program uses other lex/yacc generated code. (Although it's possible to
-map the yy* identifiers with a script, we use flex and bison so we
-don't feel this is necessary.)
-
-Some systems support the Berkeley Packet Filter natively; for example
-out of the box OSF and BSD/OS have bpf. If your system does not support
-bpf, you will need to pick up:
-
-	ftp://ftp.ee.lbl.gov/bpf-*.tar.Z
-
-Note well: you MUST have kernel source for your operating system in
-order to install bpf. An exception is SunOS 4; the bpf distribution
-includes replacement kernel objects for some of the standard SunOS 4
-network device drivers. See the bpf INSTALL document for more
-information.
+You will need either Flex 2.5.31 or later, or a version of Lex
+compatible with it (if any exist), to build libpcap.  The configure
+script will abort if there isn't any such program.  If you have an older
+version of Flex, or don't have a compatible version of Lex, the current
+version of flex is available at flex.sourceforge.net.
+
+You will need either Bison, Berkeley YACC, or a version of YACC
+compatible with them (if any exist), to build libpcap.  The configure
+script will abort if there isn't any such program.  If you don't have
+any such program, the current version of Bison can be found at
+http://ftp.gnu.org/gnu/bison/ and the current version of Berkeley YACC
+can be found at http://invisible-island.net/byacc/.
+
+Sometimes the stock C compiler does not interact well with Flex and
+Bison. The list of problems includes undefined references for alloca.
+You can get around this by installing GCC.
 
 If you use Solaris, there is a bug with bufmod(7) that is fixed in
 Solaris 2.3.2 (aka SunOS 5.3.2). Setting a snapshot length with the
@@ -178,14 +160,14 @@ packet timestamps aren't very good.  Thi
 handling of the timestamp in the kernel.
 
 Note well: there is rumoured to be a version of tcpdump floating around
-called 3.0.3 that includes libpcap and is supposed to support Linux. 
+called 3.0.3 that includes libpcap and is supposed to support Linux.
 You should be advised that neither the Network Research Group at LBNL
-nor the Tcpdump Group ever generated a release with this version number. 
+nor the Tcpdump Group ever generated a release with this version number.
 The LBNL Network Research Group notes with interest that a standard
 cracker trick to get people to install trojans is to distribute bogus
-packages that have a version number higher than the current release. 
+packages that have a version number higher than the current release.
 They also noted with annoyance that 90% of the Linux related bug reports
-they got are due to changes made to unofficial versions of their page. 
+they got are due to changes made to unofficial versions of their page.
 If you are having trouble but aren't using a version that came from
 tcpdump.org, please try that before submitting a bug report!
 
@@ -239,11 +221,11 @@ the libpcap 0.6.2 source release, so thi
 build without changes on UnixWare 7.
 
 If linking tcpdump fails with "Undefined: _alloca" when using bison on
-a Sun4, your version of bison is broken. In any case version 1.16 or
+a Sun4, your version of Bison is broken. In any case version 1.16 or
 higher is recommended (1.14 is known to cause problems 1.16 is known to
 work). Either pick up a current version from:
 
-	ftp://ftp.gnu.org/pub/gnu/bison
+	http://ftp.gnu.org/gnu/bison/
 
 or hack around it by inserting the lines:
 
@@ -289,6 +271,7 @@ FILES
 CHANGES		- description of differences between releases
 ChmodBPF/*	- Mac OS X startup item to set ownership and permissions
 		  on /dev/bpf*
+CMakeLists.txt	- CMake file
 CREDITS		- people that have helped libpcap along
 INSTALL.txt	- this file
 LICENSE		- the license under which tcpdump is distributed
@@ -317,7 +300,7 @@ config.guess	- autoconf support
 config.h.in	- autoconf input
 config.sub	- autoconf support
 configure	- configure script (run this first)
-configure.in	- configure script source
+configure.ac	- configure script source
 dlpisubs.c	- DLPI-related functions for pcap-dlpi.c and pcap-libdlpi.c
 dlpisubs.h	- DLPI-related function declarations
 etherent.c	- /etc/ethers support routines
@@ -325,9 +308,6 @@ ethertype.h	- Ethernet protocol types an
 fad-getad.c	- pcap_findalldevs() for systems with getifaddrs()
 fad-gifc.c	- pcap_findalldevs() for systems with only SIOCGIFLIST
 fad-glifc.c	- pcap_findalldevs() for systems with SIOCGLIFCONF
-fad-null.c	- pcap_findalldevs() for systems without capture support
-fad-sita.c	- pcap_findalldevs() for systems with SITA support
-fad-win32.c	- pcap_findalldevs() for WinPcap
 filtertest.c	- test program for BPF compiler
 findalldevstest.c - test program for pcap_findalldevs()
 gencode.c	- BPF code generation routines
@@ -345,7 +325,6 @@ nametoaddr.c	- hostname to address routi
 nlpid.h		- OSI network layer protocol identifier definitions
 net		- symlink to bpf/net
 optimize.c	- BPF optimization routines
-packaging	- packaging information for building libpcap RPMs
 pcap/bluetooth.h - public definition of DLT_BLUETOOTH_HCI_H4_WITH_PHDR header
 pcap/bpf.h	- BPF definitions
 pcap/namedb.h	- public libpcap name database definitions
@@ -389,7 +368,6 @@ pcap_*.3pcap	- manual entries for librar
 pcap-filter.4	- manual entry for filter syntax
 pcap-linktype.4	- manual entry for link-layer header types
 ppp.h		- Point to Point Protocol definitions
-runlex.sh	- wrapper for Lex/Flex
 savefile.c	- offline support
 scanner.l	- filter string scanner
 sunatmpos.h	- definitions for SunATM capturing

Modified: vendor/libpcap/dist/LICENSE
==============================================================================
--- vendor/libpcap/dist/LICENSE	Sun Feb 12 06:56:33 2017	(r313675)
+++ vendor/libpcap/dist/LICENSE	Sun Feb 12 07:04:44 2017	(r313676)
@@ -1,9 +1,9 @@
 License: BSD
- 
+
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions
 are met:
-  
+
   1. Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
   2. Redistributions in binary form must reproduce the above copyright
@@ -13,7 +13,7 @@ are met:
   3. The names of the authors may not be used to endorse or promote
      products derived from this software without specific prior
      written permission.
-  
+
 THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
 IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Modified: vendor/libpcap/dist/Makefile-devel-adds
==============================================================================
--- vendor/libpcap/dist/Makefile-devel-adds	Sun Feb 12 06:56:33 2017	(r313675)
+++ vendor/libpcap/dist/Makefile-devel-adds	Sun Feb 12 07:04:44 2017	(r313676)
@@ -2,12 +2,12 @@
 # Auto-regenerate configure script or Makefile when things change.
 # From autoconf.info .  Works best with GNU Make.
 #
-${srcdir}/configure: configure.in aclocal.m4
+${srcdir}/configure: configure.ac aclocal.m4
 	cd ${srcdir} && autoconf
 
 # autoheader might not change config.h.in, so touch a stamp file.
 ${srcdir}/config.h.in: ${srcdir}/stamp-h.in
-${srcdir}/stamp-h.in: configure.in aclocal.m4
+${srcdir}/stamp-h.in: configure.ac aclocal.m4
 	cd ${srcdir} && autoheader
 	echo timestamp > ${srcdir}/stamp-h.in
 

Modified: vendor/libpcap/dist/Makefile.in
==============================================================================
--- vendor/libpcap/dist/Makefile.in	Sun Feb 12 06:56:33 2017	(r313675)
+++ vendor/libpcap/dist/Makefile.in	Sun Feb 12 07:04:44 2017	(r313676)
@@ -49,12 +49,13 @@ LN_S = @LN_S@
 MKDEP = @MKDEP@
 CCOPT = @V_CCOPT@
 INCLS = -I. @V_INCLS@
-DEFS = @DEFS@ @V_DEFS@
+DEFS = -DBUILDING_PCAP @DEFS@ @V_DEFS@
 ADDLOBJS = @ADDLOBJS@
 ADDLARCHIVEOBJS = @ADDLARCHIVEOBJS@
 LIBS = @LIBS@
-CFLAGS = @CFLAGS@
-LDFLAGS = @LDFLAGS@
+CROSSFLAGS=
+CFLAGS = @CFLAGS@   ${CROSSFLAGS}
+LDFLAGS = @LDFLAGS@ ${CROSSFLAGS}
 DYEXT = @DYEXT@
 V_RPATH_OPT = @V_RPATH_OPT@
 DEPENDENCY_CFLAG = @DEPENDENCY_CFLAG@
@@ -68,13 +69,8 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA = @INSTALL_DATA@
 RANLIB = @RANLIB@
 
-#
-# Flex and bison allow you to specify the prefixes of the global symbols
-# used by the generated parser.  This allows programs to use lex/yacc
-# and link against libpcap.  If you don't have flex or bison, get them.
-#
-LEX = @V_LEX@
-YACC = @V_YACC@
+LEX = @LEX@
+YACC = @YACC@
 
 # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
 # Also, gcc does not remove the .o before forking 'as', which can be a
@@ -83,11 +79,11 @@ YACC = @V_YACC@
 	@rm -f $@
 	$(CC) $(FULL_CFLAGS) -c $(srcdir)/$*.c
 
-PSRC =	pcap-@V_PCAP@.c @USB_SRC@ @BT_SRC@ @BT_MONITOR_SRC@ @CAN_SRC@ @NETFILTER_SRC@ @CANUSB_SRC@ @DBUS_SRC@
-FSRC =  fad-@V_FINDALLDEVS@.c
+PSRC =	pcap-@V_PCAP@.c @USB_SRC@ @BT_SRC@ @BT_MONITOR_SRC@ @NETFILTER_SRC@ @DBUS_SRC@
+FSRC =  @V_FINDALLDEVS@
 SSRC =  @SSRC@
-CSRC =	pcap.c inet.c gencode.c optimize.c nametoaddr.c etherent.c \
-	savefile.c sf-pcap.c sf-pcap-ng.c pcap-common.c \
+CSRC =	pcap.c inet.c fad-helpers.c gencode.c optimize.c nametoaddr.c \
+	etherent.c savefile.c sf-pcap.c sf-pcap-ng.c pcap-common.c \
 	bpf_image.c bpf_dump.c
 GENSRC = scanner.c grammar.c bpf_filter.c version.c
 LIBOBJS = @LIBOBJS@
@@ -103,6 +99,9 @@ PUBHDR = \
 	pcap-namedb.h \
 	pcap/bpf.h \
 	pcap/bluetooth.h \
+	pcap/can_socketcan.h \
+	pcap/dlt.h \
+	pcap/export-defs.h \
 	pcap/ipnet.h \
 	pcap/namedb.h \
 	pcap/nflog.h \
@@ -115,37 +114,43 @@ HDR = $(PUBHDR) \
 	arcnet.h \
 	atmuni31.h \
 	ethertype.h \
+	extract.h \
 	gencode.h \
 	ieee80211.h \
 	llc.h \
+	nametoaddr.h \
 	nlpid.h \
 	pcap-common.h \
 	pcap-int.h \
 	pcap-stdinc.h \
+	portability.h \
 	ppp.h \
 	sf-pcap.h \
 	sf-pcap-ng.h \
 	sunatmpos.h
 
 TESTS = \
+	@VALGRINDTEST@ \
 	capturetest \
+	can_set_rfmon_test \
 	filtertest \
 	findalldevstest \
 	opentest \
-	selpolltest \
-	valgrindtest
+	reactivatetest \
+	selpolltest
 
 TESTS_SRC = \
+	tests/valgrindtest.c \
 	tests/capturetest.c \
+	tests/can_set_rfmon_test.c \
 	tests/filtertest.c \
 	tests/findalldevstest.c \
 	tests/opentest.c \
 	tests/reactivatetest.c \
-	tests/selpolltest.c \
-	tests/valgrindtest.c
+	tests/selpolltest.c
 
 GENHDR = \
-	scanner.h tokdefs.h version.h
+	scanner.h grammar.h pcap_version.h
 
 TAGFILES = \
 	$(SRC) $(HDR)
@@ -231,6 +236,8 @@ EXTRA_DIST = \
 	ChmodBPF/ChmodBPF \
 	ChmodBPF/StartupParameters.plist \
 	CREDITS \
+	CMakeLists.txt \
+	GenVersion.bat \
 	INSTALL.txt \
 	LICENSE \
 	Makefile.in \
@@ -253,29 +260,37 @@ EXTRA_DIST = \
 	aclocal.m4 \
 	bpf/net/bpf_filter.c \
 	chmod_bpf \
+	cmakeconfig.h.in \
+	cmake/preconfigure.cmake \
+	config/have_siocglifconf.c \

*** DIFF OUTPUT TRUNCATED AT 1000 LINES ***



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702120704.v1C74ipo012990>