HomeFreeBSD

ipfwpcap: Fix build after libpcap 1.10.6 update

Description

ipfwpcap: Fix build after libpcap 1.10.6 update

pcap-int.h now references SIZEOF_TIME_T from libpcap's config.h, which
is not available to consumers of the internal header outside of the
libpcap build. Switch to the public <pcap.h> header and replace the
direct FILE* casts and ferror()/fflush() calls with pcap_dump_flush(3),
which is the correct public API for flushing a pcap dump file.

Sponsored by: The FreeBSD Foundation

Details

Provenance
jrmAuthored on Mar 15 2026, 5:32 AM
Parents
rG16cef5f7a655: libpcap: Update to 1.10.6
Branches
Unknown
Tags
Unknown