enum

Filament::Capture::CaptureSource

Inherits Enum < Comparable < Value < Object

Tracks the origin of a packet so downstream code can make decisions based on whether we're working with real traffic or test data.

Constants

File = 0

Packet was read from a PCAP or PCAPng file

Live = 1

Packet was captured live from a network interface

Generated = 2

Packet was programmatically generated (for testing, fuzzing, etc.)

Instance methods

file?

Returns true if this enum value equals File

Source
generated?

Returns true if this enum value equals Generated

Source
live?

Returns true if this enum value equals Live

Source