libpcap

Portable library for capturing network traffic packets

brewmacoslinux
Try with needOr install directly
Source

About

Portable library for network traffic capture

Commands

pcap-config

Examples

Check libpcap version and compiler flags$ pcap-config --version
Get compilation flags needed to use libpcap in C code$ pcap-config --cflags --libs
Verify libpcap installation by checking available shared libraries$ pkg-config --list-all | grep libpcap