Class: FFI::PCap::Interface

Inherits:
Struct
  • Object
show all
Includes:
DRY::StructHelper
Defined in:
lib/ffi/pcap/interface.rb

Overview

Item in a list of interfaces.

See pcap_if struct in pcap.h.

Constant Summary collapse

LOOPBACK =

interface is loopback

0x00000001

Instance Method Summary collapse

Instance Method Details

#loopback?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/ffi/pcap/interface.rb', line 25

def loopback?
  self.flags & LOOPBACK == LOOPBACK
end