Class: Caper::Interface
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Caper::Interface
- Includes:
- FFI::DRY::StructHelper
- Defined in:
- lib/caper/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
21 22 23 |
# File 'lib/caper/interface.rb', line 21 def loopback? self.flags & LOOPBACK == LOOPBACK end |