"Fossies" - the Fresh Open Source Software Archive

Member "libpcap-1.10.1/./doc/README.linux" (7 Jun 2021, 1955 Bytes) of package /linux/misc/libpcap-1.10.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 Currently, libpcap supports packet capturing on Linux 2.6.27 and later;
    2 earlier versions are not supported.
    3 
    4 You must configure 2.26.x kernels with the CONFIG_PACKET_MMAP option for
    5 this protocol.  3.x and later kernels do not require that.
    6 
    7 Note that, by default, libpcap will, if libnl is present, build with it;
    8 it uses libnl to support monitor mode on mac80211 devices.  There is a
    9 configuration option to disable building with libnl, but, if that option
   10 is chosen, the monitor-mode APIs (as used by tcpdump's "-I" flag, and as
   11 will probably be used by other applications in the future) won't work
   12 properly on mac80211 devices.
   13 
   14 Linux's run-time linker allows shared libraries to be linked with other
   15 shared libraries, which means that if an older version of a shared
   16 library doesn't require routines from some other shared library, and a
   17 later version of the shared library does require those routines, the
   18 later version of the shared library can be linked with that other shared
   19 library and, if it's otherwise binary-compatible with the older version,
   20 can replace that older version without breaking applications built with
   21 the older version, and without breaking configure scripts or the build
   22 procedure for applications whose configure script doesn't use the
   23 pcap-config script if they build with the shared library.  (The build
   24 procedure for applications whose configure scripts use the pcap-config
   25 script if present will not break even if they build with the static
   26 library.)
   27 
   28 Statistics:
   29 Statistics reported by pcap are platform specific.  The statistics
   30 reported by pcap_stats on Linux are as follows:
   31 
   32 ps_recv   Number of packets that were accepted by the pcap filter
   33 ps_drop   Number of packets that had passed filtering but were not
   34           passed on to pcap due to things like buffer shortage, etc.
   35           This is useful because these are packets you are interested in
   36           but won't be reported by, for example, tcpdump output.