• Home
Name Date Size #Lines LOC

..--

ChmodBPF/03-May-2024-3916

Win32/Prj/03-May-2024-371367

cmake/03-May-2024-412363

doc/03-May-2024-894664

lbl/03-May-2024-404209

missing/03-May-2024-878635

msdos/03-May-2024-2,5981,917

pcap/03-May-2024-3,8511,019

rpcapd/03-May-2024-5,1223,229

testprogs/03-May-2024-3,2602,388

tests/03-May-2024-

.gitignoreD03-May-202493 1110

Android.bpD03-May-20242.6 KiB9991

CHANGESD03-May-202437.3 KiB917761

CMakeLists.txtD03-May-202478.6 KiB2,2972,138

CONTRIBUTING.mdD03-May-20241.4 KiB3024

CREDITSD03-May-202411.5 KiB187182

CleanSpec.mkD03-May-20242.2 KiB500

INSTALL.mdD03-May-202415.5 KiB354297

LICENSED03-May-2024868 2016

METADATAD03-May-2024387 1918

MODULE_LICENSE_BSDD03-May-20240

Makefile-devel-addsD03-May-2024614 2318

Makefile.inD03-May-202423.1 KiB757585

NOTICED03-May-2024873 2016

OWNERSD03-May-202446 21

README.mdD03-May-20243.7 KiB9468

TODOD03-May-20241.5 KiB3629

VERSIOND03-May-20246 21

aclocal.m4D03-May-202430.9 KiB1,0791,030

arcnet.hD03-May-20242.4 KiB5110

atmuni31.hD03-May-20243.9 KiB8641

bpf_dump.cD03-May-20241.9 KiB6337

bpf_filter.cD03-May-202412 KiB540352

bpf_image.cD03-May-20247.4 KiB333256

chmod_bpfD03-May-2024757 202

cmake_uninstall.cmake.inD03-May-20241 KiB2220

cmakeconfig.h.inD03-May-202410.7 KiB367246

config.guessD03-May-202443.2 KiB1,4771,284

config.hD03-May-202410.7 KiB38056

config.h.inD03-May-20249.9 KiB375251

config.subD03-May-202434.9 KiB1,8091,668

configureD03-May-2024321.1 KiB12,0728,871

configure.acD03-May-202459.2 KiB2,2812,078

diag-control.hD03-May-20248.3 KiB22087

dlpisubs.cD03-May-20249.4 KiB399243

dlpisubs.hD03-May-2024702 3926

etherent.cD03-May-20243.4 KiB169114

ethertype.hD03-May-20243.5 KiB12490

extract.hD03-May-20249.2 KiB226115

fad-getad.cD03-May-20248.6 KiB281124

fad-gifc.cD03-May-202412.8 KiB432220

fad-glifc.cD03-May-20249.4 KiB347201

fmtutils.cD03-May-20243.9 KiB13257

fmtutils.hD03-May-20242.1 KiB5112

ftmacros.hD03-May-20244.6 KiB11617

gencode.cD03-May-2024239.1 KiB9,2435,524

gencode.hD03-May-202411.8 KiB410250

grammar.cD03-May-2024115.3 KiB3,6662,858

grammar.hD03-May-20246.3 KiB324277

grammar.yD03-May-202422.8 KiB784658

ieee80211.hD03-May-20245.3 KiB14793

install-shD03-May-20245.4 KiB251152

libpcap.pc.inD03-May-2024484 1917

llc.hD03-May-20242.6 KiB9964

mkdepD03-May-20242.4 KiB11366

nametoaddr.cD03-May-202418.3 KiB786486

nametoaddr.hD03-May-20242.1 KiB499

nlpid.hD03-May-20241.7 KiB5727

nomkdepD03-May-2024135 71

optimize.cD03-May-202458.4 KiB2,4991,587

optimize.hD03-May-20241.3 KiB294

org.tcpdump.chmod_bpf.plistD03-May-2024441 1716

pcap-bpf.cD03-May-202482.8 KiB3,2931,864

pcap-bpf.hD03-May-20242.2 KiB461

pcap-bt-linux.cD03-May-202411.4 KiB423291

pcap-bt-linux.hD03-May-20241.8 KiB392

pcap-bt-monitor-linux.cD03-May-20247.8 KiB273176

pcap-bt-monitor-linux.hD03-May-20241.6 KiB332

pcap-common.cD03-May-202445.7 KiB1,539439

pcap-common.hD03-May-20242.3 KiB5413

pcap-config.1D03-May-20242.3 KiB7352

pcap-config.inD03-May-20241.8 KiB9568

pcap-dag.cD03-May-202436.7 KiB1,431945

pcap-dag.hD03-May-2024457 132

pcap-dbus.cD03-May-202410 KiB352211

pcap-dbus.hD03-May-2024112 32

pcap-dll.rcD03-May-20241 KiB3735

pcap-dlpi.cD03-May-202447.5 KiB1,9101,159

pcap-dos.cD03-May-202435.9 KiB1,5371,077

pcap-dos.hD03-May-20246.7 KiB226171

pcap-enet.cD03-May-20244.7 KiB232174

pcap-filter.manmiscD03-May-202433.2 KiB1,0511,024

pcap-filter.manmisc.inD03-May-202433.2 KiB1,0511,024

pcap-int.hD03-May-202415.9 KiB508224

pcap-libdlpi.cD03-May-202412.1 KiB496291

pcap-linktype.manmiscD03-May-20242.3 KiB4928

pcap-linktype.manmisc.inD03-May-20242.3 KiB4928

pcap-linux.cD03-May-2024196.9 KiB7,1883,643

pcap-namedb.hD03-May-20242 KiB411

pcap-netfilter-linux-android.cD03-May-2024858 268

pcap-netfilter-linux-android.hD03-May-2024784 267

pcap-netfilter-linux.cD03-May-202420.4 KiB760526

pcap-netfilter-linux.hD03-May-20241.7 KiB362

pcap-netmap.cD03-May-20247.8 KiB307190

pcap-netmap.hD03-May-2024126 32

pcap-new.cD03-May-202412.5 KiB455280

pcap-nit.cD03-May-202410.2 KiB418247

pcap-npf.cD03-May-202451.7 KiB2,0991,201

pcap-null.cD03-May-20241.9 KiB6631

pcap-pf.cD03-May-202418.5 KiB684380

pcap-rdmasniff.cD03-May-202411 KiB437335

pcap-rdmasniff.hD03-May-2024140 32

pcap-rpcap-int.hD03-May-20243.4 KiB768

pcap-rpcap.cD03-May-202499.2 KiB3,3121,797

pcap-rpcap.hD03-May-20242.2 KiB507

pcap-savefile.manfileD03-May-20245.1 KiB134114

pcap-savefile.manfile.inD03-May-20245.1 KiB134114

pcap-septel.cD03-May-20249.2 KiB364174

pcap-septel.hD03-May-2024512 142

pcap-sita.cD03-May-202436.3 KiB1,088887

pcap-sita.hD03-May-2024224 92

pcap-sita.htmlD03-May-202437.4 KiB944903

pcap-snf.cD03-May-202414.7 KiB622423

pcap-snf.hD03-May-2024110 32

pcap-snit.cD03-May-202412.7 KiB507310

pcap-snoop.cD03-May-202413.3 KiB468276

pcap-tc.cD03-May-202434.4 KiB1,308935

pcap-tc.hD03-May-20241.9 KiB5511

pcap-tstamp.manmiscD03-May-20248 KiB178156

pcap-tstamp.manmisc.inD03-May-20248 KiB178156

pcap-types.hD03-May-20241.9 KiB518

pcap-usb-linux.cD03-May-202430.7 KiB1,199766

pcap-usb-linux.hD03-May-20241.8 KiB392

pcap.3pcapD03-May-202428.5 KiB946926

pcap.3pcap.inD03-May-202428.5 KiB946926

pcap.cD03-May-2024100.7 KiB3,9562,497

pcap.hD03-May-20242.2 KiB441

pcap_activate.3pcapD03-May-20243.8 KiB123103

pcap_breakloop.3pcapD03-May-20244 KiB11191

pcap_can_set_rfmon.3pcapD03-May-20242.6 KiB7353

pcap_close.3pcapD03-May-20241.5 KiB4020

pcap_compile.3pcapD03-May-20242.9 KiB8161

pcap_compile.3pcap.inD03-May-20242.9 KiB8161

pcap_create.3pcapD03-May-20242.2 KiB7353

pcap_datalink.3pcapD03-May-20242.4 KiB6949

pcap_datalink.3pcap.inD03-May-20242.4 KiB6949

pcap_datalink_name_to_val.3pcapD03-May-20241.8 KiB4828

pcap_datalink_val_to_name.3pcapD03-May-20242 KiB5535

pcap_dump.3pcapD03-May-20241.8 KiB5232

pcap_dump_close.3pcapD03-May-20241.5 KiB3818

pcap_dump_file.3pcapD03-May-20241.5 KiB3919

pcap_dump_flush.3pcapD03-May-20241.7 KiB4424

pcap_dump_ftell.3pcapD03-May-20242.1 KiB5838

pcap_dump_open.3pcapD03-May-20243.2 KiB9979

pcap_dump_open.3pcap.inD03-May-20243.2 KiB9979

pcap_file.3pcapD03-May-20242.1 KiB5838

pcap_fileno.3pcapD03-May-20242.1 KiB6747

pcap_findalldevs.3pcapD03-May-20245.9 KiB215195

pcap_freecode.3pcapD03-May-20241.7 KiB4424

pcap_get_required_select_timeout.3pcapD03-May-20242.8 KiB8565

pcap_get_selectable_fd.3pcapD03-May-20244.7 KiB146126

pcap_get_tstamp_precision.3pcapD03-May-20241.6 KiB5331

pcap_get_tstamp_precision.3pcap.inD03-May-20241.6 KiB5331

pcap_geterr.3pcapD03-May-20241.8 KiB5232

pcap_inject.3pcapD03-May-20243.3 KiB8969

pcap_is_swapped.3pcapD03-May-20241.9 KiB5232

pcap_lib_version.3pcapD03-May-20241.6 KiB4020

pcap_list_datalinks.3pcapD03-May-20242.5 KiB7454

pcap_list_datalinks.3pcap.inD03-May-20242.5 KiB7454

pcap_list_tstamp_types.3pcapD03-May-20242.5 KiB7150

pcap_list_tstamp_types.3pcap.inD03-May-20242.5 KiB7150

pcap_lookupdev.3pcapD03-May-20242.5 KiB8160

pcap_lookupnet.3pcapD03-May-20241.9 KiB6444

pcap_loop.3pcapD03-May-20246.5 KiB200180

pcap_major_version.3pcapD03-May-20242 KiB5535

pcap_next_ex.3pcapD03-May-20244.9 KiB141121

pcap_offline_filter.3pcapD03-May-20242 KiB5636

pcap_open_dead.3pcapD03-May-20242.7 KiB8060

pcap_open_dead.3pcap.inD03-May-20242.7 KiB8060

pcap_open_live.3pcapD03-May-20242.7 KiB9171

pcap_open_offline.3pcapD03-May-20243.5 KiB11090

pcap_open_offline.3pcap.inD03-May-20243.5 KiB11090

pcap_set_buffer_size.3pcapD03-May-20241.8 KiB4626

pcap_set_datalink.3pcapD03-May-20241.8 KiB5232

pcap_set_immediate_mode.3pcapD03-May-20241.9 KiB4827

pcap_set_promisc.3pcapD03-May-20241.8 KiB4727

pcap_set_protocol_linux.3pcapD03-May-20242.8 KiB6848

pcap_set_rfmon.3pcapD03-May-20241.8 KiB4828

pcap_set_snaplen.3pcapD03-May-20241.7 KiB4525

pcap_set_timeout.3pcapD03-May-20242.2 KiB5434

pcap_set_tstamp_precision.3pcapD03-May-20242.2 KiB6240

pcap_set_tstamp_precision.3pcap.inD03-May-20242.2 KiB6240

pcap_set_tstamp_type.3pcapD03-May-20242.4 KiB6645

pcap_set_tstamp_type.3pcap.inD03-May-20242.4 KiB6645

pcap_setdirection.3pcapD03-May-20242.3 KiB7050

pcap_setfilter.3pcapD03-May-20241.8 KiB5333

pcap_setnonblock.3pcapD03-May-20242.8 KiB8262

pcap_snapshot.3pcapD03-May-20241.9 KiB5333

pcap_stats.3pcapD03-May-20243.3 KiB9878

pcap_statustostr.3pcapD03-May-20241.6 KiB4222

pcap_strerror.3pcapD03-May-20241.5 KiB4121

pcap_tstamp_type_name_to_val.3pcapD03-May-20241.8 KiB4625

pcap_tstamp_type_val_to_name.3pcapD03-May-20241.9 KiB5029

portability.hD03-May-20245.1 KiB16561

ppp.hD03-May-20242.6 KiB5835

rpcap-protocol.cD03-May-20246.7 KiB19686

rpcap-protocol.hD03-May-202420 KiB451171

savefile.cD03-May-202412.8 KiB514342

scanner.cD03-May-2024210.7 KiB5,4494,352

scanner.hD03-May-20249.4 KiB372210

scanner.lD03-May-202414.6 KiB534360

sf-pcap.cD03-May-202427.8 KiB1,081610

sf-pcap.hD03-May-20241.7 KiB385

sf-pcapng.cD03-May-202438.2 KiB1,476739

sf-pcapng.hD03-May-20241.4 KiB335

sockutils.cD03-May-202448.8 KiB1,490626

sockutils.hD03-May-20247.6 KiB23582

sunatmpos.hD03-May-20242.1 KiB448

varattrs.hD03-May-20242.4 KiB6010

README.md

1To report a security issue please send an e-mail to security@tcpdump.org.
2
3To report bugs and other problems, contribute patches, request a
4feature, provide generic feedback etc please see the file
5[CONTRIBUTING](CONTRIBUTING.md) in the libpcap source tree root.
6
7The directory doc/ has README files about specific operating systems and
8options.
9
10LIBPCAP 1.x.y
11Now maintained by "The Tcpdump Group"
12https://www.tcpdump.org
13
14Anonymous Git is available via:
15        https://github.com/the-tcpdump-group/libpcap.git
16
17formerly from 	Lawrence Berkeley National Laboratory
18		Network Research Group <libpcap@ee.lbl.gov>
19		ftp://ftp.ee.lbl.gov/old/libpcap-0.4a7.tar.Z
20
21This directory contains source code for libpcap, a system-independent
22interface for user-level packet capture.  libpcap provides a portable
23framework for low-level network monitoring.  Applications include
24network statistics collection, security monitoring, network debugging,
25etc.  Since almost every system vendor provides a different interface
26for packet capture, and since we've developed several tools that
27require this functionality, we've created this system-independent API
28to ease in porting and to alleviate the need for several
29system-dependent packet capture modules in each application.
30
31For some platforms there are README.{system} files that discuss issues
32with the OS's interface for packet capture on those platforms, such as
33how to enable support for that interface in the OS, if it's not built in
34by default.
35
36The libpcap interface supports a filtering mechanism based on the
37architecture in the BSD packet filter.  BPF is described in the 1993
38Winter Usenix paper ``The BSD Packet Filter: A New Architecture for
39User-level Packet Capture''.  A compressed PostScript version can be
40found at
41
42	ftp://ftp.ee.lbl.gov/papers/bpf-usenix93.ps.Z
43
44or
45
46	https://www.tcpdump.org/papers/bpf-usenix93.ps.Z
47
48and a gzipped version can be found at
49
50	https://www.tcpdump.org/papers/bpf-usenix93.ps.gz
51
52A PDF version can be found at
53
54	https://www.tcpdump.org/papers/bpf-usenix93.pdf
55
56Although most packet capture interfaces support in-kernel filtering,
57libpcap utilizes in-kernel filtering only for the BPF interface.
58On systems that don't have BPF, all packets are read into user-space
59and the BPF filters are evaluated in the libpcap library, incurring
60added overhead (especially, for selective filters).  Ideally, libpcap
61would translate BPF filters into a filter program that is compatible
62with the underlying kernel subsystem, but this is not yet implemented.
63
64BPF is standard in 4.4BSD, BSD/OS, NetBSD, FreeBSD, OpenBSD, DragonFly
65BSD, and macOS; an older, modified and undocumented version is standard
66in AIX.  {DEC OSF/1, Digital UNIX, Tru64 UNIX} uses the packetfilter
67interface but has been extended to accept BPF filters (which libpcap
68utilizes).  Also, you can add BPF filter support to Ultrix using the
69kernel source and/or object patches available in:
70
71	https://www.tcpdump.org/other/bpfext42.tar.Z
72
73Linux has a number of BPF based systems, and libpcap does not support
74any of the eBPF mechanisms as yet, although it supports many of the
75memory mapped receive mechanisms.
76See the [README.linux](doc/README.linux.md) file for more information.
77
78Note to Linux distributions and *BSD systems that include libpcap:
79
80There's now a rule to make a shared library, which should work on Linux
81and *BSD, among other platforms.
82
83It sets the soname of the library to "libpcap.so.1"; this is what it
84should be, *NOT* libpcap.so.1.x or libpcap.so.1.x.y or something such as
85that.
86
87We've been maintaining binary compatibility between libpcap releases for
88quite a while; there's no reason to tie a binary linked with libpcap to
89a particular release of libpcap.
90
91Current versions can be found at https://www.tcpdump.org.
92
93 - The TCPdump group
94