Top "Libpcap" questions

Libpcap, a portable C/C++ library for network traffic capture.

Raw Socket Sniffing in Golang

I have a question concerning tcp packet sniffing with golang. We have written a small tool which captures all incoming …

networking go libpcap sniffing
Passing an argument on libpcap pcap_loop() callback

Because I would like to make some tests with the libpcap and a small C program, I am trying to …

c libpcap
pcap_loop and pcap_dispatch Difference

What exactly is the difference between pcap_loop and pcap_dispatch?

networking wireshark libpcap packet-sniffers sniffing
libpcap get MAC from AF_LINK sockaddr_dl (OSX)

I am trying to obtain the MAC addresses of all of my interface on OSX using C. The common ways …

c macos pcap mac-address libpcap
Issue in pcap_set_buffer_size()

#include <stdio.h> #include <stdlib.h> #include <pcap.h> #define BUFFER_SIZE 65535 char errbuf[…

c linux pcap libpcap
How to use the "pcap_lookupdev()" in libpcap?

The code cant find any device, I want to know what does pcap_lookupdev() do ? thanks #include <pcap.h&…

c linux libpcap
Compile libpcap using Android NDK

I've been doing a lot of attempts to get libpcap compiled for Android, and I don't see any pattern or …

android linux compilation android-ndk libpcap
dpkt invalid tcpdump header error

I am getting ValueError: Invalid tcpdump header error for below code. Any help appreciated import dpkt f = open('a.pcap') …

python parsing pcap libpcap
tcpdump on monitor-mode interface - nothing captured

I've been using tcpdump (version 4.1.1) to attempt to capture wireless frames from a monitor mode interface set up by airmon-ng. …

linux wireless wireshark libpcap tcpdump