Name Date Size #Lines LOC

..--

bpf/net/H10-Jan-2016-703507

lbl/H10-Jan-2016-383211

missing/H10-Jan-2016-626499

packaging/H10-Jan-2016-7863

pcap/H10-Jan-2016-2,569727

tests/H10-Jan-2016-1,7661,300

CHANGESHD10-Jan-201629.6 KiB763614

CREDITSHD10-Jan-201610.8 KiB178172

INSTALL.txtHD10-Jan-201617.2 KiB397331

LICENSEHD10-Jan-2016873 2016

Makefile-devel-addsHD10-Jan-2016614 2318

Makefile.inHD10-Jan-201623.2 KiB749565

READMEHD10-Jan-20163.9 KiB10774

TODOHD10-Jan-20161.5 KiB3629

VERSIONHD10-Jan-20166 21

acconfig.hHD10-Jan-2016303 81

arcnet.hHD10-Jan-20162.4 KiB5110

atmuni31.hHD10-Jan-20163.9 KiB8641

bpf_dump.cHD10-Jan-20161.9 KiB5934

bpf_image.cHD10-Jan-20165.3 KiB321244

chmod_bpfHD10-Jan-2016760 202

config.guessHD10-Jan-201643.8 KiB1,5311,321

config.h.inHD10-Jan-20168.5 KiB341228

config.subHD10-Jan-201634.7 KiB1,7801,637

configureHD10-Jan-2016266.2 KiB9,8467,636

configure.inHD10-Jan-201644.8 KiB1,7171,565

dlpisubs.cHD10-Jan-20168.9 KiB368224

dlpisubs.hHD10-Jan-2016702 3926

etherent.cHD10-Jan-20163.3 KiB170113

ethertype.hHD10-Jan-20163.4 KiB12187

fad-getad.cHD10-Jan-20168.6 KiB281127

fad-gifc.cHD10-Jan-201612.5 KiB418213

fad-glifc.cHD10-Jan-20169.9 KiB370215

fad-null.cHD10-Jan-20162.5 KiB6110

fad-sita.cHD10-Jan-20162.2 KiB6022

fad-win32.cHD10-Jan-20166.5 KiB249108

gencode.cHD10-Jan-2016200 KiB8,7335,293

gencode.hHD10-Jan-201610.1 KiB364223

grammar.yHD10-Jan-201620.7 KiB753658

ieee80211.hHD10-Jan-20165.3 KiB14793

inet.cHD10-Jan-201629.5 KiB1,087583

install-shHD10-Jan-20165.5 KiB251152

llc.hHD10-Jan-20162.6 KiB9964

mkdepHD10-Jan-20162.5 KiB11668

nametoaddr.cHD10-Jan-201610.6 KiB521375

nlpid.hHD10-Jan-20161.7 KiB5727

optimize.cHD10-Jan-201647.3 KiB2,2581,473

pcap-bpf.cHD10-Jan-201669.1 KiB2,7521,576

pcap-bpf.hHD10-Jan-20162.2 KiB461

pcap-bt-linux.cHD10-Jan-201610.8 KiB412295

pcap-bt-linux.hHD10-Jan-20161.8 KiB392

pcap-bt-monitor-linux.cHD10-Jan-20166.8 KiB242168

pcap-bt-monitor-linux.hHD10-Jan-20161.6 KiB332

pcap-can-linux.cHD10-Jan-20167.8 KiB320207

pcap-can-linux.hHD10-Jan-20161.7 KiB372

pcap-canusb-linux.cHD10-Jan-201611.8 KiB473311

pcap-canusb-linux.hHD10-Jan-20161.7 KiB382

pcap-common.cHD10-Jan-201640.9 KiB1,370397

pcap-common.hHD10-Jan-2016955 268

pcap-config.1HD10-Jan-20162.3 KiB7352

pcap-config.inHD10-Jan-20161.6 KiB9067

pcap-dag.cHD10-Jan-201631.9 KiB1,218817

pcap-dag.hHD10-Jan-20161.9 KiB10771

pcap-dbus.cHD10-Jan-20167.5 KiB280186

pcap-dbus.hHD10-Jan-2016108 32

pcap-dlpi.cHD10-Jan-201643.3 KiB1,7641,094

pcap-dos.cHD10-Jan-201634.7 KiB1,4971,068

pcap-dos.hHD10-Jan-20166.7 KiB226171

pcap-enet.cHD10-Jan-20164.7 KiB232174

pcap-filter.manmiscHD10-Jan-201631.5 KiB1,018992

pcap-filter.manmisc.inHD10-Jan-201631.5 KiB1,019993

pcap-int.hHD10-Jan-201614 KiB454201

pcap-libdlpi.cHD10-Jan-201610.2 KiB423266

pcap-linktype.manmiscHD10-Jan-20162.3 KiB4928

pcap-linktype.manmisc.inHD10-Jan-20162.3 KiB4928

pcap-linux.cHD10-Jan-2016168.2 KiB6,1093,119

pcap-namedb.hHD10-Jan-20162 KiB411

pcap-netfilter-linux.cHD10-Jan-201617.8 KiB653471

pcap-netfilter-linux.hHD10-Jan-20161.7 KiB362

pcap-nit.cHD10-Jan-20168.9 KiB368228

pcap-null.cHD10-Jan-20161.6 KiB5021

pcap-pf.cHD10-Jan-201616.7 KiB610340

pcap-savefile.manfileHD10-Jan-20165.1 KiB134114

pcap-savefile.manfile.inHD10-Jan-20165.1 KiB134114

pcap-septel.cHD10-Jan-20167.5 KiB294146

pcap-septel.hHD10-Jan-2016508 142

pcap-sita.cHD10-Jan-201634.6 KiB1,020841

pcap-sita.hHD10-Jan-2016224 92

pcap-sita.htmlHD10-Jan-201637.4 KiB944903

pcap-snf.cHD10-Jan-20166.7 KiB331256

pcap-snf.hHD10-Jan-2016106 32

pcap-snit.cHD10-Jan-201611.3 KiB446278

pcap-snoop.cHD10-Jan-201612 KiB419258

pcap-stdinc.hHD10-Jan-20162.7 KiB8439

pcap-tstamp.manmiscHD10-Jan-20166.2 KiB133111

pcap-tstamp.manmisc.inHD10-Jan-20166.3 KiB133111

pcap-usb-linux.cHD10-Jan-201624.3 KiB936668

pcap-usb-linux.hHD10-Jan-20161.8 KiB392

pcap-win32.cHD10-Jan-201622.5 KiB952605

pcap.3pcapHD10-Jan-201627 KiB906886

pcap.3pcap.inHD10-Jan-201627 KiB906886

pcap.cHD10-Jan-201652.5 KiB2,0231,398

pcap.hHD10-Jan-20162.2 KiB441

pcap_activate.3pcapHD10-Jan-20163.1 KiB9676

pcap_breakloop.3pcapHD10-Jan-20163.7 KiB9979

pcap_can_set_rfmon.3pcapHD10-Jan-20162.2 KiB6343

pcap_close.3pcapHD10-Jan-20161.5 KiB4020

pcap_compile.3pcapHD10-Jan-20162.6 KiB7151

pcap_compile.3pcap.inHD10-Jan-20162.6 KiB7151

pcap_create.3pcapHD10-Jan-20162.2 KiB7353

pcap_datalink.3pcapHD10-Jan-20162.4 KiB6949

pcap_datalink.3pcap.inHD10-Jan-20162.4 KiB6949

pcap_datalink_name_to_val.3pcapHD10-Jan-20161.8 KiB4727

pcap_datalink_val_to_name.3pcapHD10-Jan-20161.8 KiB4727

pcap_dump.3pcapHD10-Jan-20161.8 KiB5232

pcap_dump_close.3pcapHD10-Jan-20161.5 KiB3818

pcap_dump_file.3pcapHD10-Jan-20161.5 KiB3919

pcap_dump_flush.3pcapHD10-Jan-20161.7 KiB4424

pcap_dump_ftell.3pcapHD10-Jan-20161.7 KiB4323

pcap_dump_open.3pcapHD10-Jan-20162.7 KiB8666

pcap_dump_open.3pcap.inHD10-Jan-20162.7 KiB8666

pcap_file.3pcapHD10-Jan-20162.1 KiB5838

pcap_fileno.3pcapHD10-Jan-20162.1 KiB6747

pcap_findalldevs.3pcapHD10-Jan-20165.1 KiB191171

pcap_freecode.3pcapHD10-Jan-20161.7 KiB4424

pcap_get_selectable_fd.3pcapHD10-Jan-20163.8 KiB128108

pcap_get_tstamp_precision.3pcapHD10-Jan-20161.6 KiB5331

pcap_get_tstamp_precision.3pcap.inHD10-Jan-20161.6 KiB5331

pcap_geterr.3pcapHD10-Jan-20161.8 KiB5232

pcap_inject.3pcapHD10-Jan-20163.3 KiB8969

pcap_is_swapped.3pcapHD10-Jan-20161.9 KiB5232

pcap_lib_version.3pcapHD10-Jan-20161.6 KiB4020

pcap_list_datalinks.3pcapHD10-Jan-20162.5 KiB7454

pcap_list_datalinks.3pcap.inHD10-Jan-20162.5 KiB7454

pcap_list_tstamp_types.3pcapHD10-Jan-20162.5 KiB7150

pcap_list_tstamp_types.3pcap.inHD10-Jan-20162.5 KiB7150

pcap_lookupdev.3pcapHD10-Jan-20161.9 KiB6141

pcap_lookupnet.3pcapHD10-Jan-20161.9 KiB6444

pcap_loop.3pcapHD10-Jan-20166.2 KiB193173

pcap_major_version.3pcapHD10-Jan-20162 KiB5535

pcap_next_ex.3pcapHD10-Jan-20164.8 KiB142122

pcap_offline_filter.3pcapHD10-Jan-20162 KiB5636

pcap_open_dead.3pcapHD10-Jan-20162.7 KiB8060

pcap_open_dead.3pcap.inHD10-Jan-20162.7 KiB8060

pcap_open_live.3pcapHD10-Jan-20162.6 KiB8868

pcap_open_offline.3pcapHD10-Jan-20163.5 KiB11090

pcap_open_offline.3pcap.inHD10-Jan-20163.5 KiB11090

pcap_set_buffer_size.3pcapHD10-Jan-20161.8 KiB4626

pcap_set_datalink.3pcapHD10-Jan-20161.8 KiB5232

pcap_set_immediate_mode.3pcapHD10-Jan-20161.9 KiB4827

pcap_set_promisc.3pcapHD10-Jan-20161.8 KiB4727

pcap_set_rfmon.3pcapHD10-Jan-20161.8 KiB4828

pcap_set_snaplen.3pcapHD10-Jan-20161.7 KiB4525

pcap_set_timeout.3pcapHD10-Jan-20161.8 KiB4626

pcap_set_tstamp_precision.3pcapHD10-Jan-20162.1 KiB6240

pcap_set_tstamp_precision.3pcap.inHD10-Jan-20162.2 KiB6240

pcap_set_tstamp_type.3pcapHD10-Jan-20162.4 KiB6645

pcap_set_tstamp_type.3pcap.inHD10-Jan-20162.4 KiB6645

pcap_setdirection.3pcapHD10-Jan-20162.4 KiB7050

pcap_setfilter.3pcapHD10-Jan-20161.8 KiB5333

pcap_setnonblock.3pcapHD10-Jan-20162.6 KiB7454

pcap_snapshot.3pcapHD10-Jan-20161.9 KiB5333

pcap_stats.3pcapHD10-Jan-20163.3 KiB9878

pcap_statustostr.3pcapHD10-Jan-20161.6 KiB4222

pcap_strerror.3pcapHD10-Jan-20161.5 KiB4121

pcap_tstamp_type_name_to_val.3pcapHD10-Jan-20161.8 KiB4625

pcap_tstamp_type_val_to_name.3pcapHD10-Jan-20161.9 KiB5029

ppp.hHD10-Jan-20162.6 KiB5835

runlex.shHD10-Jan-20164.6 KiB23491

savefile.cHD10-Jan-20169.8 KiB412272

scanner.lHD10-Jan-201610.8 KiB464366

sf-pcap-ng.cHD10-Jan-201629.8 KiB1,262692

sf-pcap-ng.hHD10-Jan-20161.4 KiB335

sf-pcap.cHD10-Jan-201618 KiB733424

sf-pcap.hHD10-Jan-20161.7 KiB385

sunatmpos.hHD10-Jan-20162.1 KiB448

README

1LIBPCAP 1.x.y
2
3www.tcpdump.org
4
5Please send inquiries/comments/reports to:
6	tcpdump-workers@lists.tcpdump.org
7
8Anonymous Git is available via:
9	git clone git://bpf.tcpdump.org/libpcap
10
11Please submit patches by forking the branch on GitHub at
12
13	http://github.com/the-tcpdump-group/libpcap/tree/master
14
15and issuing a pull request.
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	http://www.tcpdump.org/papers/bpf-usenix93.ps.Z
47
48and a gzipped version can be found at
49
50	http://www.tcpdump.org/papers/bpf-usenix93.ps.gz
51
52A PDF version can be found at
53
54	http://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 Mac OS X; an older, modified and undocumented version is
66standard in AIX.  {DEC OSF/1, Digital UNIX, Tru64 UNIX} uses the
67packetfilter interface but has been extended to accept BPF filters
68(which libpcap utilizes).  Also, you can add BPF filter support to
69Ultrix using the kernel source and/or object patches available in:
70
71	http://www.tcpdump.org/other/bpfext42.tar.Z
72
73Linux, in the 2.2 kernel and later kernels, has a "Socket Filter"
74mechanism that accepts BPF filters; see the README.linux file for
75information on configuring that option.
76
77Note to Linux distributions and *BSD systems that include libpcap:
78
79There's now a rule to make a shared library, which should work on Linux
80and *BSD, among other platforms.
81
82It sets the soname of the library to "libpcap.so.1"; this is what it
83should be, *NOT* libpcap.so.1.x or libpcap.so.1.x.y or something such as
84that.
85
86We've been maintaining binary compatibility between libpcap releases for
87quite a while; there's no reason to tie a binary linked with libpcap to
88a particular release of libpcap.
89
90Problems, bugs, questions, desirable enhancements, etc. should be sent
91to the address "tcpdump-workers@lists.tcpdump.org".  Bugs, support
92requests, and feature requests may also be submitted on the GitHub issue
93tracker for libpcap at
94
95	https://github.com/the-tcpdump-group/libpcap/issues
96
97Source code contributions, etc. should be sent to the email address
98above or submitted by forking the branch on GitHub at
99
100	http://github.com/the-tcpdump-group/libpcap/tree/master
101
102and issuing a pull request.
103
104Current versions can be found at www.tcpdump.org.
105
106 - The TCPdump team
107