Class: Ifconf::LoopbackLinkLayer
- Defined in:
- lib/ifconf/loopback_link_layer.rb
Overview
Link layer for loopback interfaces, which have no hardware address.
Instance Attribute Summary
Attributes inherited from LinkLayer
#encapsulation, #hardware_addr, #tx_queue_len
Instance Method Summary collapse
-
#initialize(tx_queue_len:, hardware_addr: nil) ⇒ LoopbackLinkLayer
constructor
A new instance of LoopbackLinkLayer.
Methods inherited from LinkLayer
Constructor Details
#initialize(tx_queue_len:, hardware_addr: nil) ⇒ LoopbackLinkLayer
Returns a new instance of LoopbackLinkLayer.
4 5 6 7 8 |
# File 'lib/ifconf/loopback_link_layer.rb', line 4 def initialize(tx_queue_len:, hardware_addr: nil) raise Ifconf::Error, "loopback must not have hardware address" if hardware_addr super(encapsulation: :loopback, hardware_addr: nil, tx_queue_len: tx_queue_len) end |