
Home | TCPDUMP & LIBPCAP
providing .pcap files for protocols or protocol features that tcpdump supports, but does not test yet helping to improve the continuous integration scripts and infrastructure
Programming with pcap | TCPDUMP & LIBPCAP
The only difference between these two functions is that pcap_dispatch () will only process the first batch of packets that it receives from the system, while pcap_loop () will continue processing packets or …
pcap (3PCAP) man page | TCPDUMP & LIBPCAP
Sep 18, 2024 · Packets are read with pcap_dispatch () or pcap_loop (), which process one or more packets, calling a callback routine for each packet, or with pcap_next () or pcap_next_ex (), which …
pcap_set_protocol_linux (3PCAP) man page | TCPDUMP & LIBPCAP
This function is only provided on Linux, and, if it is used on any device other than a network interface, it will have no effect. It should not be used in portable code; instead, a filter should be specified with …
tcpdump (1) man page | TCPDUMP & LIBPCAP
Jun 30, 2025 · Reading packets from a network interface may require that you have special privileges; see the pcap (3PCAP) man page for details. Reading a saved packet file doesn't require special …
pcap-filter (7) man page | TCPDUMP & LIBPCAP
Nov 22, 2025 · This primitive requires to specify the netmask, which cannot be done in the filter expression; the only way to specify a netmask is via the netmask argument of the pcap_compile () …
pcap_findalldevs (3PCAP) man page | TCPDUMP & LIBPCAP
Mar 11, 2025 · All supported Linux systems, as well as recent versions of macOS and Solaris, implement a special "any" pseudo-interface, which captures packets from all regular network …
pcap_compile (3PCAP) man page | TCPDUMP & LIBPCAP
May 29, 2025 · On Linux, if the pcap_t handle corresponds to a live packet capture, the resulting filter program may use Linux BPF extensions. This works transparently if the filter program is used to filter …
pcap_loop (3PCAP) man page | TCPDUMP & LIBPCAP
Mar 5, 2022 · It returns PCAP_ERROR_BREAK if the loop terminated due to a call to pcap_breakloop () before any packets were processed, PCAP_ERROR_NOT_ACTIVATED if called on a capture …
Link-layer header types | TCPDUMP & LIBPCAP
The table below lists link-layer header types used in pcap and pcap-ng capture files. The LINKTYPE_ name is the name given to that link-layer header type, and the LINKTYPE_ value is the numerical …