BSD Ports

net/libpcap 1.10.7 NetBSD

System-independent interface for user-level packet capture

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
6f577485f3
License
modified-bsd
Categories
net
Package size
210.2 KiB, 1172.0 KiB installed

Description

This is libpcap, a system-independent interface for user-level packet capture. libpcap provides a portable framework for low-level network monitoring. Applications include network statistics collection, security monitoring, network debugging, etc. Since almost every system vendor provides a different interface for packet capture, and since we've developed several tools that require this functionality, we've created this system-independent API to ease in porting and to alleviate the need for several system-dependent packet capture modules in each application.

In the other systems

SystemPortVersion
NetBSDnet/libpcap1.10.7
FreeBSDnet/libpcap1.11.0
OpenBSDnet/libpcap1.11.0
DragonFlynet/libpcap1.10.5
MidnightBSDnet/libpcap1.10.5

Install

Binary package:

pkgin install libpcap

From pkgsrc:

cd /usr/pkgsrc/net/libpcap && make install clean

Dependencies

Commit history 2

DateCommitCreditsLog message
6f577485f3 adam libpcap: updated to 1.11.0
Summary for 1.11.0 libpcap release Source code: Use C99 fixed-width integer types, rather than self-defined fixed-width integer types, in rpcap code. Clean up DECnet address handling. struct pcap: Update buffer type from "void *" to "u_char *". Remove dead code that supported SITA ACN devices. Remove the TODO file. Merge four header files into gencode.c. Remove DAG card support on Windows as Linux is the only platform currently supported. Remove code related to Riverbed TurboCap card. Riverbed TurboCap hardware has reached EOA as of Jun 30 2014. Remove dead code that supported Septel devices. Remove outdated code related to AirPcap HW. The Riverbed AirPcap Product has reached End of Availability …
bb77f1b92f adam libpcap: updated to 1.10.7
Summary for 1.10.7 libpcap release General: Free p->opt.device on close, not on cleanup. Issue reported by Harrison Green. Source code: Deprecate bpf_filter(). Packet filtering: Initialize the scratch memory store to 0. In "net <n> mask <m>" catch ENOMEM for the "m" too. CVE-2026-0799: Access M[] safely in the BPF interpreter. CVE-2026-31912: Mind the program bounds in pcap_offline_filter(). CVE-2026-31911: Fail opcodes safely in the BPF interpreter. CVE-2026-6244: Avoid division by zero via pcap_offline_filter(). CVE-2026-6554: Limit "ja L" looping in pcap_offline_filter(). Validate BPF opcodes stricter. For "lsh" and "rsh" guard "#k" as well. Windows: Fix error return from memory allocation error. rpcap: CVE-2026-18313: Fix a memory leak in rpcapd. …