• Home
Name Date Size #Lines LOC

..--

ChmodBPF/03-May-2024-3916

Win32/Prj/03-May-2024-371367

cmake/03-May-2024-616549

doc/03-May-2024-1,335972

lbl/03-May-2024-404209

missing/03-May-2024-502262

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

pcap/03-May-2024-4,3561,168

rpcapd/03-May-2024-6,5924,052

testprogs/03-May-2024-4,5693,352

tests/03-May-2024-

.appveyor.ymlD03-May-20244.5 KiB11096

.cirrus.ymlD03-May-2024552 2622

.gitattributesD03-May-2024133 64

.gitignoreD03-May-202493 1110

.mailmapD03-May-20241.7 KiB2928

.travis-coverity-scan-build.shD03-May-20244.5 KiB11789

.travis.ymlD03-May-20244.7 KiB13690

Android.bpD03-May-20242.5 KiB109100

CHANGESD03-May-202446.4 KiB1,097939

CMakeLists.txtD03-May-202495.9 KiB2,7662,575

CONTRIBUTING.mdD03-May-20241.4 KiB3024

CREDITSD03-May-202416 KiB255250

CleanSpec.mkD03-May-20242.2 KiB500

INSTALL.mdD03-May-202415.9 KiB352295

LICENSED03-May-2024868 2016

METADATAD03-May-2024412 2019

MODULE_LICENSE_BSDD03-May-20240

Makefile-devel-addsD03-May-2024614 2318

Makefile.inD03-May-202425.3 KiB832639

NOTICED03-May-2024873 2016

OWNERSD03-May-202446 21

README.mdD03-May-20243.9 KiB9467

TODOD03-May-20241.5 KiB3629

VERSIOND03-May-20247 21

aclocal.m4D03-May-202438.5 KiB1,2691,193

arcnet.hD03-May-20242.4 KiB5110

atmuni31.hD03-May-20243.9 KiB8641

bpf_dump.cD03-May-20241.9 KiB6337

bpf_filter.cD03-May-202412.1 KiB547355

bpf_image.cD03-May-20249.2 KiB425328

charconv.cD03-May-20246.3 KiB21780

charconv.hD03-May-20242.1 KiB458

chmod_bpfD03-May-2024757 202

cmake_uninstall.cmake.inD03-May-20241 KiB2220

cmakeconfig.h.inD03-May-202410.7 KiB364244

config.guessD03-May-202448.2 KiB1,7021,488

config.hD03-May-202411 KiB39260

config.h.inD03-May-20249.8 KiB366245

config.subD03-May-202433.5 KiB1,8561,679

configureD03-May-2024350.9 KiB13,2169,633

configure.acD03-May-202474.5 KiB2,8412,610

diag-control.hD03-May-202410.2 KiB298124

dlpisubs.cD03-May-202410 KiB413251

dlpisubs.hD03-May-2024702 3926

etherent.cD03-May-20243.7 KiB173114

ethertype.hD03-May-20243.5 KiB12490

extract.hD03-May-202418.5 KiB424258

fad-getad.cD03-May-20248.6 KiB280123

fad-gifc.cD03-May-202412.7 KiB426215

fad-glifc.cD03-May-20249.3 KiB346200

fmtutils.cD03-May-202411.8 KiB461195

fmtutils.hD03-May-20242.2 KiB5817

ftmacros.hD03-May-20244.4 KiB11416

gencode.cD03-May-2024257.4 KiB10,0415,855

gencode.hD03-May-202412.2 KiB403230

grammar.cD03-May-2024119.1 KiB3,7832,962

grammar.hD03-May-20246.4 KiB328278

grammar.y.inD03-May-202426 KiB844795

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-20243 KiB14182

nametoaddr.cD03-May-202419.3 KiB821491

nametoaddr.hD03-May-20242.1 KiB499

nlpid.hD03-May-20241.7 KiB5727

nomkdepD03-May-2024135 71

optimize.cD03-May-202474.6 KiB3,0941,737

optimize.hD03-May-20241.3 KiB294

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

pcap-airpcap.cD03-May-202428.5 KiB1,045603

pcap-airpcap.hD03-May-20241.8 KiB373

pcap-bpf.cD03-May-202489.9 KiB3,5981,987

pcap-bpf.hD03-May-20242.2 KiB461

pcap-bt-linux.cD03-May-202411.5 KiB440301

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

pcap-bt-monitor-linux.cD03-May-20247.9 KiB275174

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

pcap-common.cD03-May-202450 KiB1,677460

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.6 KiB1,443951

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.3 KiB1,9041,154

pcap-dos.cD03-May-202435.8 KiB1,5351,075

pcap-dos.hD03-May-20246.7 KiB226171

pcap-dpdk.cD03-May-202431.1 KiB1,071763

pcap-dpdk.hD03-May-20241.4 KiB292

pcap-enet.cD03-May-20244.7 KiB232174

pcap-filter.manmisc.inD03-May-202434.6 KiB1,0611,035

pcap-haiku.cppD03-May-20246.4 KiB283189

pcap-int.hD03-May-202420.6 KiB649268

pcap-libdlpi.cD03-May-202412.1 KiB496291

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

pcap-linux.cD03-May-2024150.5 KiB5,4232,627

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-202421.3 KiB784528

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

pcap-netmap.cD03-May-20247.8 KiB306189

pcap-netmap.hD03-May-2024126 32

pcap-new.cD03-May-202412.7 KiB466287

pcap-nit.cD03-May-202410.2 KiB417246

pcap-npf.cD03-May-202460.2 KiB2,4551,347

pcap-null.cD03-May-20241.9 KiB6631

pcap-pf.cD03-May-202418.4 KiB679375

pcap-rdmasniff.cD03-May-202411 KiB440338

pcap-rdmasniff.hD03-May-2024140 32

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

pcap-rpcap.cD03-May-2024103.1 KiB3,4861,944

pcap-rpcap.hD03-May-20242.2 KiB507

pcap-savefile.manfile.inD03-May-20245.2 KiB138118

pcap-septel.cD03-May-20248.1 KiB331160

pcap-septel.hD03-May-2024512 142

pcap-sita.cD03-May-202436 KiB1,083880

pcap-sita.hD03-May-2024224 92

pcap-sita.htmlD03-May-202437.4 KiB944903

pcap-snf.cD03-May-202414.4 KiB602408

pcap-snf.hD03-May-2024110 32

pcap-snit.cD03-May-202412.6 KiB506309

pcap-snoop.cD03-May-202413.2 KiB468276

pcap-tc.cD03-May-202432.6 KiB1,219876

pcap-tc.hD03-May-20241.9 KiB5511

pcap-tstamp.manmisc.inD03-May-20249.4 KiB202180

pcap-types.hD03-May-20241.9 KiB508

pcap-usb-linux.cD03-May-202437.1 KiB1,405849

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

pcap.3pcap.inD03-May-202431.2 KiB1,0531,033

pcap.cD03-May-2024113.8 KiB4,4352,740

pcap.hD03-May-20242.2 KiB441

pcap_activate.3pcapD03-May-20243.9 KiB132112

pcap_breakloop.3pcapD03-May-20244 KiB11696

pcap_can_set_rfmon.3pcapD03-May-20242.7 KiB8161

pcap_close.3pcapD03-May-20241.5 KiB4020

pcap_compile.3pcap.inD03-May-20243 KiB9474

pcap_create.3pcapD03-May-20242.2 KiB7353

pcap_datalink.3pcap.inD03-May-20242.4 KiB7252

pcap_datalink_name_to_val.3pcapD03-May-20241.8 KiB5030

pcap_datalink_val_to_name.3pcapD03-May-20242.8 KiB7757

pcap_dump.3pcapD03-May-20241.7 KiB5131

pcap_dump_close.3pcapD03-May-20241.5 KiB4020

pcap_dump_file.3pcapD03-May-20241.5 KiB3919

pcap_dump_flush.3pcapD03-May-20241.7 KiB4929

pcap_dump_ftell.3pcapD03-May-20242.3 KiB6545

pcap_dump_open.3pcap.inD03-May-20243.6 KiB10989

pcap_file.3pcapD03-May-20242.1 KiB6040

pcap_fileno.3pcapD03-May-20242 KiB6646

pcap_findalldevs.3pcapD03-May-20246.3 KiB234214

pcap_freecode.3pcapD03-May-20241.7 KiB4424

pcap_get_required_select_timeout.3pcapD03-May-20245.1 KiB180160

pcap_get_selectable_fd.3pcapD03-May-20244.7 KiB153133

pcap_get_tstamp_precision.3pcap.inD03-May-20241.8 KiB5735

pcap_geterr.3pcapD03-May-20241.8 KiB5232

pcap_init.3pcapD03-May-20243.2 KiB10080

pcap_inject.3pcapD03-May-20243.4 KiB9979

pcap_is_swapped.3pcapD03-May-20241.9 KiB5232

pcap_lib_version.3pcapD03-May-20241.6 KiB4020

pcap_list_datalinks.3pcap.inD03-May-20242.6 KiB7454

pcap_list_tstamp_types.3pcap.inD03-May-20243 KiB8362

pcap_lookupdev.3pcapD03-May-20242.6 KiB8767

pcap_lookupnet.3pcapD03-May-20242 KiB6949

pcap_loop.3pcapD03-May-20246.7 KiB223203

pcap_major_version.3pcapD03-May-20242 KiB5535

pcap_next_ex.3pcapD03-May-20244.9 KiB151131

pcap_offline_filter.3pcapD03-May-20242 KiB5636

pcap_open_dead.3pcap.inD03-May-20242.9 KiB8666

pcap_open_live.3pcapD03-May-20242.8 KiB9575

pcap_open_offline.3pcap.inD03-May-20243.8 KiB11898

pcap_set_buffer_size.3pcapD03-May-20241.8 KiB5030

pcap_set_datalink.3pcapD03-May-20241.9 KiB5737

pcap_set_immediate_mode.3pcap.inD03-May-20243.3 KiB10079

pcap_set_promisc.3pcapD03-May-20241.8 KiB5131

pcap_set_protocol_linux.3pcapD03-May-20242.8 KiB7353

pcap_set_rfmon.3pcapD03-May-20241.8 KiB5232

pcap_set_snaplen.3pcapD03-May-20241.8 KiB4929

pcap_set_timeout.3pcapD03-May-20242.2 KiB5737

pcap_set_tstamp_precision.3pcap.inD03-May-20242.4 KiB6947

pcap_set_tstamp_type.3pcap.inD03-May-20242.8 KiB7352

pcap_setdirection.3pcapD03-May-20242.4 KiB7555

pcap_setfilter.3pcapD03-May-20241.8 KiB5838

pcap_setnonblock.3pcapD03-May-20243.1 KiB10484

pcap_snapshot.3pcapD03-May-20241.9 KiB5333

pcap_stats.3pcapD03-May-20243.4 KiB10383

pcap_statustostr.3pcapD03-May-20241.6 KiB4222

pcap_strerror.3pcapD03-May-20241.5 KiB4121

pcap_tstamp_type_name_to_val.3pcapD03-May-20241.9 KiB5029

pcap_tstamp_type_val_to_name.3pcapD03-May-20242 KiB5433

portability.hD03-May-20244.2 KiB14261

post_update.shD03-May-2024322 158

ppp.hD03-May-20242.6 KiB5835

rpcap-protocol.cD03-May-20246.8 KiB19886

rpcap-protocol.hD03-May-202418.8 KiB429181

savefile.cD03-May-202416.4 KiB662403

scanner.cD03-May-2024211.1 KiB5,5954,483

scanner.hD03-May-202416.6 KiB745542

scanner.lD03-May-202416.6 KiB597385

sf-pcap.cD03-May-202430.4 KiB1,165646

sf-pcap.hD03-May-20241.7 KiB385

sf-pcapng.cD03-May-202438.8 KiB1,504754

sf-pcapng.hD03-May-20241.4 KiB335

sockutils.cD03-May-202453.5 KiB1,699764

sockutils.hD03-May-20245.4 KiB16753

sslutils.cD03-May-20246.4 KiB240162

sslutils.hD03-May-20242.4 KiB6719

sunatmpos.hD03-May-20242.1 KiB448

varattrs.hD03-May-20242.4 KiB6010

README.md

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