All Projects → the-tcpdump-group → Libpcap

the-tcpdump-group / Libpcap

Licence: other
the LIBpcap interface to various kernel packet capture mechanism

Programming Languages

c
50402 projects - #5 most used programming language
Roff
2310 projects
CMake
9771 projects
M4
1887 projects
Makefile
30231 projects
HTML
75241 projects

Projects that are alternatives of or similar to Libpcap

Tcpdump
the TCPdump network dissector
Stars: ✭ 1,731 (-3.03%)
Mutual labels:  pcap, sniffer, packet-capture, bpf, pcapng, libpcap, berkeley-packet-filter, bsd-packet-filter
tcpslice
tcpslice concatenates multiple pcap files together, or extracts time slices from one or more pcap files.
Stars: ✭ 48 (-97.31%)
Mutual labels:  pcap, libpcap, packet-capture, bpf, berkeley-packet-filter, bsd-packet-filter
packiffer
lightweight cross-platform networking toolkit
Stars: ✭ 52 (-97.09%)
Mutual labels:  pcap, libpcap, bpf
SnifferUI
基于MFC和WinPcap库开发的网络抓包和协议分析软件
Stars: ✭ 86 (-95.18%)
Mutual labels:  pcap, sniffer, packet-capture
Node pcap
libpcap bindings for node
Stars: ✭ 849 (-52.44%)
Mutual labels:  pcap, sniffer, packet-capture
sniffer
🤒 A modern alternative network traffic sniffer.
Stars: ✭ 428 (-76.02%)
Mutual labels:  pcap, sniffer
NetStalker
A network tool to control the bandwidth over your local network.
Stars: ✭ 69 (-96.13%)
Mutual labels:  libpcap, packet-capture
Arkime
Arkime (formerly Moloch) is an open source, large scale, full packet capturing, indexing, and database system.
Stars: ✭ 4,994 (+179.78%)
Mutual labels:  pcap, packet-capture
Scapy
Scapy: the Python-based interactive packet manipulation program & library. Supports Python 2 & Python 3.
Stars: ✭ 6,932 (+288.35%)
Mutual labels:  pcap, packet-capture
zk-sniffer
sniffer and parse zookeeper packet
Stars: ✭ 38 (-97.87%)
Mutual labels:  sniffer, packet-capture
Nfstream
NFStream: a Flexible Network Data Analysis Framework.
Stars: ✭ 622 (-65.15%)
Mutual labels:  pcap, packet-capture
Libtins
High-level, multiplatform C++ network packet sniffing and crafting library.
Stars: ✭ 1,609 (-9.86%)
Mutual labels:  pcap, libpcap
Captagent
100% Open-Source Packet Capture Agent for HEP
Stars: ✭ 116 (-93.5%)
Mutual labels:  pcap, sniffer
Pypcap
pypcap - python libpcap module, forked from code.google.com/p/pypcap, now actively maintained
Stars: ✭ 255 (-85.71%)
Mutual labels:  pcap, packet-capture
Homer
HOMER - 100% Open-Source SIP / VoIP Packet Capture & Monitoring
Stars: ✭ 855 (-52.1%)
Mutual labels:  pcap, packet-capture
Bruteshark
Network Analysis Tool
Stars: ✭ 1,335 (-25.21%)
Mutual labels:  pcap, sniffer
Sniffglue
Secure multithreaded packet sniffer
Stars: ✭ 651 (-63.53%)
Mutual labels:  pcap, sniffer
dns-collector
Aggregator, analyzer, transporter and logging for your DNS logs
Stars: ✭ 58 (-96.75%)
Mutual labels:  pcap, sniffer
dsc
DNS Statistics Collector
Stars: ✭ 94 (-94.73%)
Mutual labels:  pcap, packet-capture
Crafter
🔬 An R package to work with PCAPs
Stars: ✭ 27 (-98.49%)
Mutual labels:  pcap, packet-capture

LIBPCAP 1.x.y by The Tcpdump Group

To report a security issue please send an e-mail to [email protected].

To report bugs and other problems, contribute patches, request a feature, provide generic feedback etc please see the guidelines for contributing.

The documentation directory has README files about specific operating systems and options.

Anonymous Git is available via:

https://github.com/the-tcpdump-group/libpcap.git

This directory contains source code for libpcap, a system-independent interface for user-level packet capture. libpcap provides a portable framework for low-level network monitoring. Applications include network statistics collection, security monitoring, network debugging, etc. Since almost every system vendor provides a different interface for packet capture, and since we've developed several tools that require this functionality, we've created this system-independent API to ease in porting and to alleviate the need for several system-dependent packet capture modules in each application.

formerly from 	Lawrence Berkeley National Laboratory
		Network Research Group <[email protected]>
		ftp://ftp.ee.lbl.gov/old/libpcap-0.4a7.tar.Z

Support for particular platforms and BPF

For some platforms there are README.{system} files that discuss issues with the OS's interface for packet capture on those platforms, such as how to enable support for that interface in the OS, if it's not built in by default.

The libpcap interface supports a filtering mechanism based on the architecture in the BSD packet filter. BPF is described in the 1993 Winter Usenix paper ``The BSD Packet Filter: A New Architecture for User-level Packet Capture'' (compressed PostScript, gzipped PostScript, PDF).

Although most packet capture interfaces support in-kernel filtering, libpcap utilizes in-kernel filtering only for the BPF interface. On systems that don't have BPF, all packets are read into user-space and the BPF filters are evaluated in the libpcap library, incurring added overhead (especially, for selective filters). Ideally, libpcap would translate BPF filters into a filter program that is compatible with the underlying kernel subsystem, but this is not yet implemented.

BPF is standard in 4.4BSD, BSD/OS, NetBSD, FreeBSD, OpenBSD, DragonFly BSD, and macOS; an older, modified and undocumented version is standard in AIX. {DEC OSF/1, Digital UNIX, Tru64 UNIX} uses the packetfilter interface but has been extended to accept BPF filters (which libpcap utilizes). Also, you can add BPF filter support to Ultrix using the kernel source and/or object patches available here.

Linux has a number of BPF based systems, and libpcap does not support any of the eBPF mechanisms as yet, although it supports many of the memory mapped receive mechanisms. See the Linux-specific README for more information.

Note to Linux distributions and *BSD systems that include libpcap:

There's now a rule to make a shared library, which should work on Linux and *BSD, among other platforms.

It sets the soname of the library to libpcap.so.1; this is what it should be, NOT libpcap.so.1.x or libpcap.so.1.x.y or something such as that.

We've been maintaining binary compatibility between libpcap releases for quite a while; there's no reason to tie a binary linked with libpcap to a particular release of libpcap.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].