# LIBPCAP 1.x.y by [The Tcpdump Group](https://www.tcpdump.org)
**To report a security issue please send an e-mail to security@tcpdump.org.**
To report bugs and other problems, contribute patches, request a
feature, provide generic feedback etc please see the
[guidelines for contributing](CONTRIBUTING.md).
The [documentation directory](doc/) 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.
```text
formerly from Lawrence Berkeley National Laboratory
Network Research Group <libpcap@ee.lbl.gov>
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](https://www.tcpdump.org/papers/bpf-usenix93.ps.Z),
[gzipped PostScript](https://www.tcpdump.org/papers/bpf-usenix93.ps.gz),
[PDF](https://www.tcpdump.org/papers/bpf-usenix93.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, macOS, and Solaris 11; 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).
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](doc/README.linux) 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.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
libpcap 是一个网络数据包捕获函数库,功能非常强大,Linux 下著名的 tcpdump 就是以它为基础的。 libpcap主要的作用: 1、捕获各种数据包,列如:网络流量统计。 2、过滤网络数据包,列如:过滤掉本地上的一些数据,类似防火墙。 3、分析网络数据包,列如:分析网络协议,数据的采集。 4、存储网络数据包,列如:保存捕获的数据以为将来进行分析。
资源推荐
资源详情
资源评论
收起资源包目录
网络数据包捕获函数库libpcap-1.10.4 (304个子文件)
pcap-config.1 2KB
pcap_loop.3pcap 7KB
pcap_findalldevs.3pcap 6KB
pcap_breakloop.3pcap 6KB
pcap_next_ex.3pcap 5KB
pcap_get_required_select_timeout.3pcap 5KB
pcap_get_selectable_fd.3pcap 5KB
pcap_activate.3pcap 4KB
pcap_inject.3pcap 4KB
pcap_stats.3pcap 3KB
pcap_setnonblock.3pcap 3KB
pcap_init.3pcap 3KB
pcap_set_protocol_linux.3pcap 3KB
pcap_datalink_val_to_name.3pcap 3KB
pcap_open_live.3pcap 3KB
pcap_can_set_rfmon.3pcap 3KB
pcap_lookupdev.3pcap 3KB
pcap_setdirection.3pcap 2KB
pcap_dump_ftell.3pcap 2KB
pcap_create.3pcap 2KB
pcap_set_timeout.3pcap 2KB
pcap_file.3pcap 2KB
pcap_fileno.3pcap 2KB
pcap_tstamp_type_val_to_name.3pcap 2KB
pcap_major_version.3pcap 2KB
pcap_set_datalink.3pcap 2KB
pcap_lookupnet.3pcap 2KB
pcap_offline_filter.3pcap 2KB
pcap_is_swapped.3pcap 2KB
pcap_snapshot.3pcap 2KB
pcap_setfilter.3pcap 2KB
pcap_tstamp_type_name_to_val.3pcap 2KB
pcap_geterr.3pcap 2KB
pcap_set_rfmon.3pcap 2KB
pcap_set_promisc.3pcap 2KB
pcap_datalink_name_to_val.3pcap 2KB
pcap_set_buffer_size.3pcap 2KB
pcap_set_snaplen.3pcap 2KB
pcap_dump.3pcap 2KB
pcap_dump_flush.3pcap 2KB
pcap_freecode.3pcap 2KB
pcap_lib_version.3pcap 2KB
pcap_statustostr.3pcap 2KB
pcap_strerror.3pcap 2KB
pcap_dump_file.3pcap 2KB
pcap_dump_close.3pcap 2KB
pcap_close.3pcap 1KB
configure.ac 89KB
README.aix 4KB
pkt_rx0.asm 6KB
gencode.c 257KB
pcap-linux.c 155KB
pcap.c 115KB
pcap-rpcap.c 107KB
pcap-bpf.c 90KB
daemon.c 88KB
optimize.c 75KB
pcap-npf.c 69KB
sockutils.c 62KB
pcap-dlpi.c 48KB
pcap-common.c 43KB
sf-pcapng.c 40KB
pktdrvr.c 38KB
rpcapd.c 37KB
pcap-dag.c 37KB
pcap-dos.c 36KB
pcap-sita.c 36KB
pcap-tc.c 33KB
sf-pcap.c 32KB
pcap-dpdk.c 32KB
pcap-airpcap.c 29KB
pcap-usb-linux.c 26KB
pcap-netfilter-linux.c 21KB
nametoaddr.c 19KB
pcap-pf.c 19KB
savefile.c 17KB
pcap-snf.c 15KB
fileconf.c 15KB
pcap-util.c 14KB
pcap-new.c 13KB
pcap-snoop.c 13KB
pcap-snit.c 13KB
pcap-libdlpi.c 13KB
fad-gifc.c 13KB
fmtutils.c 12KB
writecaptest.c 12KB
bpf_filter.c 12KB
pcap-bt-linux.c 12KB
pcap-rdmasniff.c 12KB
valgrindtest.c 11KB
selpolltest.c 11KB
pcap-nit.c 10KB
dlpisubs.c 10KB
pcap-dbus.c 10KB
fad-glifc.c 9KB
threadsignaltest.c 9KB
bpf_image.c 9KB
fad-getad.c 9KB
findalldevstest.c 8KB
capturetest.c 8KB
共 304 条
- 1
- 2
- 3
- 4
资源评论
熊壹贰叁
- 粉丝: 0
- 资源: 31
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功