библиотека захвата пакетов (Packet Capture library)
Обратная совместимость (Backward compatibility)
In versions of libpcap prior to 1.0, the pcap.h
header file was
not in a pcap
directory on most platforms; if you are writing an
application that must work on versions of libpcap prior to 1.0,
include <pcap.h>
, which will include <pcap/pcap.h>
for you,
rather than including <pcap/pcap.h>
.
pcap_create
() and pcap_activate
() were not available in versions
of libpcap prior to 1.0; if you are writing an application that
must work on versions of libpcap prior to 1.0, either use
pcap_open_live
() to get a handle for a live capture or, if you
want to be able to use the additional capabilities offered by
using pcap_create
() and pcap_activate
(), use an autoconf
(1)
script or some other configuration script to check whether the
libpcap 1.0 APIs are available and use them only if they are.