Registry / networking / ffi-pcap

ffi-pcap

JSON →
library0.2.1rbrubygemsunverified

Bindings to libpcap via FFI interface in Ruby.

gem install ffi-pcap
INSTALL
IMPORT
SIG · FFI-PCAP
F
ffi-pcap
networkingrubyv0.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FFI::PCap
require 'ffi-pcap'

Capture packets from an interface.

require 'ffi-pcap' cap = FFI::PCap.open_live('eth0', 65535, true, 1000) cap.each_packet { |pkt| puts pkt.body }
Debug
Known issues
gotchaRequires libpcap development headers to be installed.
fix
Install libpcap-dev (Linux) or pcap (macOS) before installing the gem.
affects: >= 0.0.0
Upgrade
Version history
0.2.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
OpenAI (training)
1
Resources
ffi-pcap — gem install ffi-pcap · libregistry