libpcap-1.10.1

Introduction to libpcap

libpcap provides functions for user-level packet capture, used in low-level network monitoring.

[Note]

Note

Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.

Package Information

libpcap Dependencies

Optional

BlueZ-5.65, libnl-3.7.0, libusb-1.0.26, Software distribution for the DAG, and Septel range of passive network monitoring cards.

User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/libpcap

Installation of libpcap

Install libpcap by running the following commands:

./configure --prefix=/usr &&
make

This package does not come with a test suite.

If you want to disable installing the static library, use this sed:

sed -i '/INSTALL_DATA.*libpcap.a\|RANLIB.*libpcap.a/ s/^/#/' Makefile

Now, as the root user:

make install

Contents

Installed Program: pcap-config
Installed Libraries: libpcap.so
Installed Directory: /usr/include/pcap

Short Descriptions

pcap-config

provides configuration information for libpcap

libpcap.{a,so}

are libraries used for user-level packet capture