tcpdump mailing list archives

bpf_dump.c


From: Denis Ovsienko via tcpdump-workers <tcpdump-workers () lists tcpdump org>
Date: Sun, 9 Feb 2025 13:22:18 +0000

--- Begin Message --- From: Denis Ovsienko <denis () ovsienko info>
Date: Sun, 9 Feb 2025 13:22:18 +0000
Hello all.

tcpdump has been keeping a copy of bpf_dump.c from libpcap with the
following description in INSTALL.md:

"bpf_dump.c     - BPF program printing routines, in case libpcap
doesn't have them. A known example is OpenBSD libpcap."

Indeed, OpenBSD libpcap still does not have bpf_dump().  However, in
the master branch tcpdump(1) says:

"This version of tcpdump requires libpcap 1.0 or later."

bpf_dump() has been in libpcap since version 0.6.1, so according to the
above any supported version of libpcap has bpf_dump().

This way, either bpf_dump.c should be removed from tcpdump to match the
stated version requirement (which would exclude OpenBSD libpcap) or the
version requirement should be worded differently.  Alternatively,
someone could add bpf_dump() to OpenBSD libpcap, which would simplify
OpenBSD tcpdump as well, because it includes a copy of bpf_dump.c too.

-- 
    Denis Ovsienko

--- End Message ---
_______________________________________________
tcpdump-workers mailing list -- tcpdump-workers () lists tcpdump org
To unsubscribe send an email to tcpdump-workers-leave () lists tcpdump org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Current thread: