libpcap-1.9.0

#### Beyond Linux® From Scratch (systemd Edition) - Version 9.0

### Chapter 17. Networking Libraries

- Prev

  libnsl-1.2.0

- Next

  libpsl-0.21.0

- Up
- Home

# libpcap-1.9.0

## Introduction to libpcap

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

This package is known to build and work properly using an LFS-9.0 platform.

### Package Information

- Download (HTTP): http://www.tcpdump.org/release/libpcap-1.9.0.tar.gz

- Download MD5 sum: dffd65cb14406ab9841f421732eb0f33

- Download size: 816 KB

- Estimated disk space required: 8.8 MB

- Estimated build time: less than 0.1 SBU

### Additional Downloads

- Recommended patch: http://www.linuxfromscratch.org/patches/blfs/9.0/libpcap-1.9.0-enable_bluetooth-1.patch (Needed for bluez-5.21)

### libpcap Dependencies

#### Optional

BlueZ-5.50, libnl-3.4.0, libusb-1.0.22, Software distribution for the DAG, and Septel range of passive network monitoring cards.

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

## Installation of libpcap

Install libpcap by running the following commands:

    patch -Np1 -i ../libpcap-1.9.0-enable_bluetooth-1.patch &&

    ./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

## Command Explanations

`--enable-bluetooth=no`: Necessary, if the recommended patch is not applied, because since 1.6.1 this application needs a fix, in order to build with bluez-5.21.

## Contents

Installed Program: pcap-config
Installed Libraries: libpcap.so, libpcap.a (optional)
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.

Last updated on 2019-08-22 16:36:06 -0700

- Prev

  libnsl-1.2.0

- Next

  libpsl-0.21.0

- Up
- Home