Linux repositories inspector

libpcap - A system-independent interface for user-level packet capture

Libpcap provides a portable framework for low-level network monitoring. Libpcap can provide network statistics collection, security monitoring and network debugging. Since almost every system vendor provides a different interface for packet capture, the libpcap authors created this system-independent API to ease in porting and to alleviate the need for several system-dependent packet capture modules in each application.

Install libpcap if you need to do low-level network traffic monitoring on your network.
1.9.1
Arch iconArch rolling
Fedora iconFedora rawhide
1.9.0
Fedora iconFedora 29
Fedora iconFedora 30
Fedora iconFedora 31
Fedora iconFedora rawhide
Manjaro iconManjaro rolling
1.8.1
Fedora iconFedora 28
1.5.3
CentOS iconCentOS 7.7.1908
DistributionVersionSincePackageInstalledPackager
Arch iconArch rolling core/osxz1.9.1-22019-11-18240 kiB541 kiB
CentOS iconCentOS 7.7.1908 osrpm14:1.5.3-11.el72020-01-07138 kiB317 kiBCentOS BuildSystem
Fedora iconFedora 28 releases/Everything-osrpm14:1.8.1-8.fc282019-01-14152 kiB341 kiBFedora Project
Fedora iconFedora 28 releases/Server-osrpm14:1.8.1-8.fc282019-01-14152 kiB341 kiBFedora Project
Fedora iconFedora 28 releases/Workstation-osrpm14:1.8.1-8.fc282019-01-14152 kiB341 kiBFedora Project
Fedora iconFedora 29 releases/Everything-osrpm14:1.9.0-2.fc292019-01-14149 kiB357 kiBFedora Project
Fedora iconFedora 29 releases/Server-osrpm14:1.9.0-2.fc292019-01-14149 kiB357 kiBFedora Project
Fedora iconFedora 29 releases/Workstation-osrpm14:1.9.0-2.fc292019-01-14149 kiB357 kiBFedora Project
Fedora iconFedora 29 releases-test/Everything-osrpm14:1.9.0-2.fc292019-01-14149 kiB357 kiBFedora Project
Fedora iconFedora 29 releases-test/Server-osrpm14:1.9.0-2.fc292019-01-14149 kiB357 kiBFedora Project
Fedora iconFedora 29 releases-test/Workstation-osrpm14:1.9.0-2.fc292019-01-14149 kiB357 kiBFedora Project
Fedora iconFedora 30 releases/Everything-osrpm14:1.9.0-3.fc302019-06-17149 kiB389 kiBFedora Project
Fedora iconFedora 30 releases/Server-osrpm14:1.9.0-3.fc302019-06-17149 kiB389 kiBFedora Project
Fedora iconFedora 30 releases/Workstation-osrpm14:1.9.0-3.fc302019-06-17149 kiB389 kiBFedora Project
Fedora iconFedora 30 releases-test/Server-osrpm14:1.9.0-3.fc302019-06-17149 kiB389 kiBFedora Project
Fedora iconFedora 30 releases-test/Workstation-osrpm14:1.9.0-3.fc302019-06-17149 kiB389 kiBFedora Project
Fedora iconFedora 31 releases/Everything-osrpm14:1.9.0-4.fc312020-01-07163 kiB359 kiBFedora Project
Fedora iconFedora 31 releases/Server-osrpm14:1.9.0-4.fc312020-01-07163 kiB359 kiBFedora Project
Fedora iconFedora rawhide development/Everything-osrpm14:1.9.1-3.fc332020-02-25172 kiB387 kiBFedora Project
Fedora iconFedora rawhide development/Server-osrpm14:1.9.1-3.fc332020-02-25172 kiB387 kiBFedora Project
Fedora iconFedora rawhide development/Workstation-osrpm14:1.9.0-4.fc312019-08-03163 kiB359 kiBFedora Project
Manjaro iconManjaro rolling stable/corexz1.9.0-12019-01-14233 kiB522 kiB
Manjaro iconManjaro rolling testing/corexz1.9.0-12019-01-14233 kiB522 kiB
Manjaro iconManjaro rolling unstable/corexz1.9.0-12019-01-14233 kiB522 kiB

Manual pages

pcap-config(1)

pcap-config - write libpcap compiler and linker flags to standard output

pcap(3pcap)

pcap - Packet Capture library

pcap_activate(3pcap)

pcap_activate - activate a capture handle

pcap_breakloop(3pcap)

pcap_breakloop - force a pcap_dispatch() or pcap_loop() call to return

pcap_can_set_rfmon(3pcap)

pcap_can_set_rfmon - check whether monitor mode can be set for a not-yet-activated capture handle

pcap_close(3pcap)

pcap_close - close a capture device or savefile

pcap_compile(3pcap)

pcap_compile - compile a filter expression

pcap_create(3pcap)

pcap_create - create a live capture handle

pcap_datalink(3pcap)

pcap_datalink - get the link-layer header type

pcap_datalink_name_to_val(3pcap)

pcap_datalink_name_to_val - get the link-layer header type value corresponding to a header type name

pcap_datalink_val_to_name(3pcap)

pcap_datalink_val_to_name, pcap_datalink_val_to_description, pcap_datalink_val_to_description_or_dlt - get a name or description for a link-layer header type value

pcap_dump(3pcap)

pcap_dump - write a packet to a capture file

pcap_dump_close(3pcap)

pcap_dump_close - close a savefile being written to

pcap_dump_file(3pcap)

pcap_dump_file - get the standard I/O stream for a savefile being written

pcap_dump_flush(3pcap)

pcap_dump_flush - flush to a savefile packets dumped

pcap_dump_ftell(3pcap)

pcap_dump_ftell, pcap_dump_ftell64 - get the current file offset for a savefile being written

pcap_dump_open(3pcap)

pcap_dump_open, pcap_dump_fopen - open a file to which to write packets

pcap_file(3pcap)

pcap_file - get the standard I/O stream for a savefile being read

pcap_fileno(3pcap)

pcap_fileno - get the file descriptor for a live capture

pcap_findalldevs(3pcap)

pcap_findalldevs, pcap_freealldevs - get a list of capture devices, and free that list

pcap_freecode(3pcap)

pcap_freecode - free a BPF program

pcap_geterr(3pcap)

pcap_geterr, pcap_perror - get or print libpcap error message text

pcap_get_required_select_timeout(3pcap)

pcap_get_required_select_timeout - get a file descriptor on which a select() can be done for a live capture

pcap_get_selectable_fd(3pcap)

pcap_get_selectable_fd - get a file descriptor on which a select() can be done for a live capture

pcap_get_tstamp_precision(3pcap)

pcap_get_tstamp_precision - get the time stamp precision returned in captures

pcap_inject(3pcap)

pcap_inject, pcap_sendpacket - transmit a packet

pcap_is_swapped(3pcap)

pcap_is_swapped - find out whether a savefile has the native byte order

pcap_lib_version(3pcap)

pcap_lib_version - get the version information for libpcap

pcap_list_datalinks(3pcap)

pcap_list_datalinks, pcap_free_datalinks - get a list of link-layer header types supported by a capture device, and free that list

pcap_list_tstamp_types(3pcap)

pcap_list_tstamp_types, pcap_free_tstamp_types - get a list of time stamp types supported by a capture device, and free that list

pcap_lookupdev(3pcap)

pcap_lookupdev - find the default device on which to capture

pcap_lookupnet(3pcap)

pcap_lookupnet - find the IPv4 network number and netmask for a device

pcap_loop(3pcap)

pcap_loop, pcap_dispatch - process packets from a live capture or savefile

pcap_major_version(3pcap)

pcap_major_version, pcap_minor_version - get the version number of a savefile

pcap_next_ex(3pcap)

pcap_next_ex, pcap_next - read the next packet from a pcap_t

pcap_offline_filter(3pcap)

pcap_offline_filter - check whether a filter matches a packet

pcap_open_dead(3pcap)

pcap_open_dead, pcap_open_dead_with_tstamp_precision - open a fake pcap_t for compiling filters or opening a capture for output

pcap_open_live(3pcap)

pcap_open_live - open a device for capturing

pcap_open_offline(3pcap)

pcap_open_offline, pcap_open_offline_with_tstamp_precision, pcap_fopen_offline, pcap_fopen_offline_with_tstamp_precision - open a saved capture file for reading

pcap_setdirection(3pcap)

pcap_setdirection - set the direction for which packets will be captured

pcap_setfilter(3pcap)

pcap_setfilter - set the filter

pcap_setnonblock(3pcap)

pcap_setnonblock, pcap_getnonblock - set or get the state of non-blocking mode on a capture device

pcap_set_buffer_size(3pcap)

pcap_set_buffer_size - set the buffer size for a not-yet-activated capture handle

pcap_set_datalink(3pcap)

pcap_set_datalink - set the link-layer header type to be used by a capture device

pcap_set_immediate_mode(3pcap)

pcap_set_immediate_mode - set immediate mode for a not-yet-activated capture handle

pcap_set_promisc(3pcap)

pcap_set_promisc - set promiscuous mode for a not-yet-activated capture handle

pcap_set_protocol_linux(3pcap)

pcap_set_protocol_linux - set capture protocol for a not-yet-activated capture handle

pcap_set_rfmon(3pcap)

pcap_set_rfmon - set monitor mode for a not-yet-activated capture handle

pcap_set_snaplen(3pcap)

pcap_set_snaplen - set the snapshot length for a not-yet-activated capture handle

pcap_set_timeout(3pcap)

pcap_set_timeout - set the packet buffer timeout for a not-yet-activated capture handle

pcap_set_tstamp_precision(3pcap)

pcap_set_tstamp_precision - set the time stamp precision returned in captures

pcap_set_tstamp_type(3pcap)

pcap_set_tstamp_type - set the time stamp type to be used by a capture device

pcap_snapshot(3pcap)

pcap_snapshot - get the snapshot length

pcap_stats(3pcap)

pcap_stats - get capture statistics

pcap_statustostr(3pcap)

pcap_statustostr - convert a PCAP_ERROR_ or PCAP_WARNING_ value to a string

pcap_strerror(3pcap)

pcap_strerror - convert an errno value to a string

pcap_tstamp_type_name_to_val(3pcap)

pcap_tstamp_type_name_to_val - get the time stamp type value corresponding to a time stamp type name

pcap_tstamp_type_val_to_name(3pcap)

pcap_tstamp_type_val_to_name, pcap_tstamp_type_val_to_description - get a name or description for a time stamp type value

pcap-savefile(5)

pcap-savefile - libpcap savefile format

pcap-filter(7)

pcap-filter - packet filter syntax

pcap-linktype(7)

pcap-linktype - link-layer header types supported by libpcap

pcap-tstamp(7)

pcap-tstamp - packet time stamps in libpcap

Latest updates

Fedora icon

Fedora rawhide development/Server-os: Updated from 14:1.9.1-2.fc32 to 14:1.9.1-3.fc33

2020-02-25
  • libpcap should print an error on wrong IPv4 address
Fedora icon

Fedora rawhide development/Everything-os: Updated from 14:1.9.1-2.fc32 to 14:1.9.1-3.fc33

2020-02-25
  • libpcap should print an error on wrong IPv4 address
Fedora icon

Fedora rawhide development/Server-os: Updated from 14:1.9.1-1.fc32 to 14:1.9.1-2.fc32

2020-02-08
Fedora icon

Fedora rawhide development/Everything-os: Updated from 14:1.9.1-1.fc32 to 14:1.9.1-2.fc32

2020-02-08
Fedora icon

Fedora 31 releases/Server-os: Version 14:1.9.0-4.fc31 introduced

2020-01-07
Fedora icon

Fedora 31 releases/Everything-os: Version 14:1.9.0-4.fc31 introduced

2020-01-07
CentOS icon

CentOS 7.7.1908 os: Version 14:1.5.3-11.el7 introduced

2020-01-07
  • Resolves: #1427251 - tcpdump incorrectly shows 0x8100 tag for 802.1ad frames
Arch icon

Arch rolling testing/os: Version 1.9.1-2 removed

2019-11-18
Arch icon

Arch rolling core/os: Updated from 1.9.1-1 to 1.9.1-2

2019-11-18
Arch icon

Arch rolling testing/os: Version 1.9.1-2 introduced

2019-11-14
Arch icon

Arch rolling staging/os: Version 1.9.1-2 removed

2019-11-14
Arch icon

Arch rolling staging/os: Version 1.9.1-2 introduced

2019-11-13
Fedora icon

Fedora rawhide development/Everything-os: Updated from 14:1.9.0-4.fc31 to 14:1.9.1-1.fc32

2019-10-12
  • New version 1.9.1
  • Fix for CVE-2018-16301, CVE-2019-15161, CVE-2019-15162, CVE-2019-15163, CVE-2019-15164, CVE-2019-15165
Fedora icon

Fedora rawhide development/Server-os: Updated from 14:1.9.0-4.fc31 to 14:1.9.1-1.fc32

2019-10-12
  • New version 1.9.1
  • Fix for CVE-2018-16301, CVE-2019-15161, CVE-2019-15162, CVE-2019-15163, CVE-2019-15164, CVE-2019-15165
Arch icon

Arch rolling core/os: Updated from 1.9.0-1 to 1.9.1-1

2019-10-03
Fedora icon

Fedora rawhide development/Workstation-os: Updated from 14:1.9.0-3.fc30 to 14:1.9.0-4.fc31

2019-08-03
Fedora icon

Fedora rawhide development/Server-os: Updated from 14:1.9.0-3.fc30 to 14:1.9.0-4.fc31

2019-08-03
Fedora icon

Fedora rawhide development/Everything-os: Updated from 14:1.9.0-3.fc30 to 14:1.9.0-4.fc31

2019-08-03
Fedora icon

Fedora 30 releases/Everything-os: Version 14:1.9.0-3.fc30 introduced

2019-06-17
Fedora icon

Fedora 30 releases-test/Workstation-os: Version 14:1.9.0-3.fc30 introduced

2019-06-17

Related packages

libpcap-debuginfo - Debug information for package libpcap
libpcap-debugsource - Debug sources for package libpcap
libpcap-dev - development library for libpcap (transitional package)
libpcap-devel - Libraries and header files for the libpcap library
libpcap-devel-32bit - A Library for Network Sniffers
libpcap-devel-static - A Library for Network Sniffers
⇧ Top