Update libpcap to 1.1.1.
Changes:
Thu. April 1, 2010. guy@alum.mit.edu.
Summary for 1.1.1 libpcap release
Update CHANGES to reflect more of the changes in 1.1.0.
Fix build on RHEL5.
Fix shared library build on AIX.
Thu. March 11, 2010. ken@netfunctional.ca/guy@alum.mit.edu.
Summary for 1.1.0 libpcap release
Add SocketCAN capture support
Add Myricom SNF API support
Update Endace DAG and ERF support
Add support for shared libraries on Solaris, HP-UX, and AIX
Build, install, and un-install shared libraries by default;
don't build/install shared libraries on platforms we don't support
Fix building from a directory other than the source directory
Fix compiler warnings and builds on some platforms
Update config.guess and config.sub
Support monitor mode on mac80211 devices on Linux
Fix USB memory-mapped capturing on Linux; it requires a new DLT_
value
On Linux, scan /sys/class/net for devices if we have it; scan
it, or /proc/net/dev if we don't have /sys/class/net, even if
we have getifaddrs(), as it'll find interfaces with no
addresses
Add limited support for reading pcap-ng files
Fix BPF driver-loading error handling on AIX
Support getting the full-length interface description on FreeBSD
In the lexical analyzer, free up any addrinfo structure we got back
from getaddrinfo().
Add support for BPF and libdlpi in OpenSolaris (and SXCE)
Hyphenate "link-layer" everywhere
Add /sys/kernel/debug/usb/usbmon to the list of usbmon locations
In pcap_read_linux_mmap(), if there are no frames available, call
poll() even if we're in non-blocking mode, so we pick up
errors, and check for the errors in question.
Note that poll() works on BPF devices is Snow Leopard
If an ENXIO or ENETDOWN is received, it may mean the device has
gone away. Deal with it.
For BPF, raise the default capture buffer size to from 32k to 512k
Support ps_ifdrop on Linux
Added a bunch of #ifdef directives to make wpcap.dll (WinPcap) compile
under cygwin.
Changes to Linux mmapped captures.
Fix bug where create_ring would fail for particular snaplen and
buffer size combinations
Update pcap-config so that it handles libpcap requiring
additional libraries
Add workaround for threadsafeness on Windows
Add missing mapping for DLT_ENC <-> LINKTYPE_ENC
DLT: Add DLT_CAN_SOCKETCAN
DLT: Add Solaris ipnet
Don't check for DLT_IPNET if it's not defined
Add link-layer types for Fibre Channel FC-2
Add link-layer types for Wireless HART
Add link-layer types for AOS
Add link-layer types for DECT
Autoconf fixes (AIX, HP-UX, OSF/1, Tru64 cleanups)
Install headers unconditionally, and include vlan.h/bluetooth.h if
enabled
Autoconf fixes+cleanup
Support enabling/disabling bluetooth (--{en,dis}able-bluetooth)
Support disabling SITA support (--without-sita)
Return -1 on failure to create packet ring (if supported but
creation failed)
Fix handling of 'any' device, so that it can be opened, and no longer
attempt to open it in Monitor mode
Add support for snapshot length for USB Memory-Mapped Interface
Fix configure and build on recent Linux kernels
Fix memory-mapped Linux capture to support pcap_next() and
pcap_next_ex()
Fixes for Linux USB capture
DLT: Add DLT_LINUX_EVDEV
DLT: Add DLT_GSMTAP_UM
DLT: Add DLT_GSMTAP_ABIS
2010-10-28 16:22:13 +00:00
|
|
|
|
|
|
|
The following instructions apply if you have a Linux or FreeBSD platform and
|
|
|
|
want libpcap to support the DAG range of passive network monitoring cards from
|
|
|
|
Endace (http://www.endace.com, see below for further contact details).
|
|
|
|
|
|
|
|
1) Install and build the DAG software distribution by following the
|
|
|
|
instructions supplied with that package. Current Endace customers can download
|
|
|
|
the DAG software distibution from https://www.endace.com
|
|
|
|
|
|
|
|
2) Configure libcap. To allow the 'configure' script to locate the DAG
|
|
|
|
software distribution use the '--with-dag' option:
|
|
|
|
|
|
|
|
./configure --with-dag=DIR
|
|
|
|
|
|
|
|
Where DIR is the root of the DAG software distribution, for example
|
|
|
|
/var/src/dag. If the DAG software is correctly detected 'configure' will
|
|
|
|
report:
|
|
|
|
|
|
|
|
checking whether we have DAG API... yes
|
|
|
|
|
|
|
|
If 'configure' reports that there is no DAG API, the directory may have been
|
|
|
|
incorrectly specified or the DAG software was not built before configuring
|
|
|
|
libpcap.
|
|
|
|
|
|
|
|
See also the libpcap INSTALL.txt file for further libpcap configuration
|
|
|
|
options.
|
|
|
|
|
|
|
|
Building libpcap at this stage will include support for both the native packet
|
|
|
|
capture stream (linux or bpf) and for capturing from DAG cards. To build
|
|
|
|
libpcap with only DAG support specify the capture type as 'dag' when
|
|
|
|
configuring libpcap:
|
|
|
|
|
|
|
|
./configure --with-dag=DIR --with-pcap=dag
|
|
|
|
|
|
|
|
Applications built with libpcap configured in this way will only detect DAG
|
|
|
|
cards and will not capture from the native OS packet stream.
|
|
|
|
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
|
|
|
|
Libpcap when built for DAG cards against dag-2.5.1 or later releases:
|
|
|
|
|
|
|
|
Timeouts are supported. pcap_dispatch() will return after to_ms milliseconds
|
|
|
|
regardless of how many packets are received. If to_ms is zero pcap_dispatch()
|
|
|
|
will block waiting for data indefinitely.
|
|
|
|
|
|
|
|
pcap_dispatch() will block on and process a minimum of 64kB of data (before
|
|
|
|
filtering) for efficiency. This can introduce high latencies on quiet
|
|
|
|
interfaces unless a timeout value is set. The timeout expiring will override
|
|
|
|
the 64kB minimum causing pcap_dispatch() to process any available data and
|
|
|
|
return.
|
|
|
|
|
|
|
|
pcap_setnonblock is supported. When nonblock is set, pcap_dispatch() will
|
|
|
|
check once for available data, process any data available up to count, then
|
|
|
|
return immediately.
|
|
|
|
|
|
|
|
pcap_findalldevs() is supported, e.g. dag0, dag1...
|
|
|
|
|
|
|
|
Some DAG cards can provide more than one 'stream' of received data.
|
|
|
|
This can be data from different physical ports, or separated by filtering
|
|
|
|
or load balancing mechanisms. Receive streams have even numbers, e.g.
|
|
|
|
dag0:0, dag0:2 etc. Specifying transmit streams for capture is not supported.
|
|
|
|
|
|
|
|
pcap_setfilter() is supported, BPF programs run in userspace.
|
|
|
|
|
|
|
|
pcap_setdirection() is not supported. Only received traffic is captured.
|
|
|
|
DAG cards normally do not have IP or link layer addresses assigned as
|
|
|
|
they are used to passively monitor links.
|
|
|
|
|
|
|
|
pcap_breakloop() is supported.
|
|
|
|
|
|
|
|
pcap_datalink() and pcap_list_datalinks() are supported. The DAG card does
|
|
|
|
not attempt to set the correct datalink type automatically where more than
|
|
|
|
one type is possible.
|
|
|
|
|
|
|
|
pcap_stats() is supported. ps_drop is the number of packets dropped due to
|
|
|
|
RX stream buffer overflow, this count is before filters are applied (it will
|
|
|
|
include packets that would have been dropped by the filter). The RX stream
|
|
|
|
buffer size is user configurable outside libpcap, typically 16-512MB.
|
|
|
|
|
|
|
|
pcap_get_selectable_fd() is not supported, as DAG cards do not support
|
|
|
|
poll/select methods.
|
|
|
|
|
|
|
|
pcap_inject() and pcap_sendpacket() are not supported.
|
|
|
|
|
|
|
|
Some DAG cards now support capturing to multiple virtual interfaces, called
|
|
|
|
streams. Capture streams have even numbers. These are available via libpcap
|
|
|
|
as separate interfaces, e.g. dag0:0, dag0:2, dag0:4 etc. dag0:0 is the same
|
|
|
|
as dag0. These are visible via pcap_findalldevs().
|
|
|
|
|
|
|
|
libpcap now does NOT set the card's hardware snaplen (slen). This must now be
|
|
|
|
set using the appropriate DAG coniguration program, e.g. dagthree, dagfour,
|
|
|
|
dagsix, dagconfig. This is because the snaplen is currently shared between
|
|
|
|
all of the streams. In future this may change if per-stream slen is
|
|
|
|
implemented.
|
|
|
|
|
|
|
|
DAG cards by default capture entire packets including the L2
|
|
|
|
CRC/FCS. If the card is not configured to discard the CRC/FCS, this
|
|
|
|
can confuse applications that use libpcap if they're not prepared for
|
2013-05-30 06:41:26 +00:00
|
|
|
packets to have an FCS.
|
|
|
|
|
|
|
|
Libpcap now reads the environment variable ERF_FCS_BITS to determine
|
|
|
|
how many bits of CRC/FCS to strip from the end of the captured
|
|
|
|
frame. This defaults to 32 for use with Ethernet. If the card is
|
|
|
|
configured to strip the CRC/FCS, then set ERF_FCS_BITS=0. If used with
|
|
|
|
a HDLC/PoS/PPP/Frame Relay link with 16 bit CRC/FCS, then set
|
|
|
|
ERF_FCS_BITS=16.
|
|
|
|
|
|
|
|
If you wish to create a pcap file that DOES contain the Ethernet FCS,
|
|
|
|
specify the environment variable ERF_DONT_STRIP_FCS. This will cause
|
|
|
|
the existing FCS to be captured into the pcap file. Note some
|
|
|
|
applications may incorrectly report capture errors or oversize packets
|
|
|
|
when reading these files.
|
Update libpcap to 1.1.1.
Changes:
Thu. April 1, 2010. guy@alum.mit.edu.
Summary for 1.1.1 libpcap release
Update CHANGES to reflect more of the changes in 1.1.0.
Fix build on RHEL5.
Fix shared library build on AIX.
Thu. March 11, 2010. ken@netfunctional.ca/guy@alum.mit.edu.
Summary for 1.1.0 libpcap release
Add SocketCAN capture support
Add Myricom SNF API support
Update Endace DAG and ERF support
Add support for shared libraries on Solaris, HP-UX, and AIX
Build, install, and un-install shared libraries by default;
don't build/install shared libraries on platforms we don't support
Fix building from a directory other than the source directory
Fix compiler warnings and builds on some platforms
Update config.guess and config.sub
Support monitor mode on mac80211 devices on Linux
Fix USB memory-mapped capturing on Linux; it requires a new DLT_
value
On Linux, scan /sys/class/net for devices if we have it; scan
it, or /proc/net/dev if we don't have /sys/class/net, even if
we have getifaddrs(), as it'll find interfaces with no
addresses
Add limited support for reading pcap-ng files
Fix BPF driver-loading error handling on AIX
Support getting the full-length interface description on FreeBSD
In the lexical analyzer, free up any addrinfo structure we got back
from getaddrinfo().
Add support for BPF and libdlpi in OpenSolaris (and SXCE)
Hyphenate "link-layer" everywhere
Add /sys/kernel/debug/usb/usbmon to the list of usbmon locations
In pcap_read_linux_mmap(), if there are no frames available, call
poll() even if we're in non-blocking mode, so we pick up
errors, and check for the errors in question.
Note that poll() works on BPF devices is Snow Leopard
If an ENXIO or ENETDOWN is received, it may mean the device has
gone away. Deal with it.
For BPF, raise the default capture buffer size to from 32k to 512k
Support ps_ifdrop on Linux
Added a bunch of #ifdef directives to make wpcap.dll (WinPcap) compile
under cygwin.
Changes to Linux mmapped captures.
Fix bug where create_ring would fail for particular snaplen and
buffer size combinations
Update pcap-config so that it handles libpcap requiring
additional libraries
Add workaround for threadsafeness on Windows
Add missing mapping for DLT_ENC <-> LINKTYPE_ENC
DLT: Add DLT_CAN_SOCKETCAN
DLT: Add Solaris ipnet
Don't check for DLT_IPNET if it's not defined
Add link-layer types for Fibre Channel FC-2
Add link-layer types for Wireless HART
Add link-layer types for AOS
Add link-layer types for DECT
Autoconf fixes (AIX, HP-UX, OSF/1, Tru64 cleanups)
Install headers unconditionally, and include vlan.h/bluetooth.h if
enabled
Autoconf fixes+cleanup
Support enabling/disabling bluetooth (--{en,dis}able-bluetooth)
Support disabling SITA support (--without-sita)
Return -1 on failure to create packet ring (if supported but
creation failed)
Fix handling of 'any' device, so that it can be opened, and no longer
attempt to open it in Monitor mode
Add support for snapshot length for USB Memory-Mapped Interface
Fix configure and build on recent Linux kernels
Fix memory-mapped Linux capture to support pcap_next() and
pcap_next_ex()
Fixes for Linux USB capture
DLT: Add DLT_LINUX_EVDEV
DLT: Add DLT_GSMTAP_UM
DLT: Add DLT_GSMTAP_ABIS
2010-10-28 16:22:13 +00:00
|
|
|
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
|
|
|
|
Please submit bug reports via <support@endace.com>.
|
|
|
|
|
|
|
|
Please also visit our Web site at:
|
|
|
|
|
|
|
|
http://www.endace.com/
|
|
|
|
|
|
|
|
For more information about Endace DAG cards contact <sales@endace.com>.
|