Filament::Capture::LiveCapture
Inherits Enumerable < Reference < Object
Real-time packet capture handle managing an active live interface
Constructors
new(device : String, snap_len : Int32 = 65535, promiscuous : Bool = true, timeout_ms : Int32 = 1000, filter : String | Nil = nil)
Opens an interface for live promiscuous packet capture
Class methods
Instance methods
active?
Sourcedevice
Sourcefinalize
Sourcelink_type
Sourcenext_packet
Fetches the next packet from the live buffer. Returns nil if timeout expired without packets.
promiscuous?
Sourceset_filter(expression : String) : Nil
Compiles and attaches an in-kernel BPF filter expression
snap_len
Sourcetimeout_ms
Source