Class: Pio::Lldp::Frame
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- Pio::Lldp::Frame
- Extended by:
- Type::EthernetHeader
- Defined in:
- lib/pio/lldp/frame.rb
Overview
LLDP frame
Instance Method Summary collapse
- #dpid ⇒ Object
- #management_address ⇒ Object
- #organizationally_specific ⇒ Object
- #port_description ⇒ Object
- #system_capabilities ⇒ Object
- #system_description ⇒ Object
- #system_name ⇒ Object
Methods included from Type::EthernetHeader
Instance Method Details
#dpid ⇒ Object
27 28 29 |
# File 'lib/pio/lldp/frame.rb', line 27 def dpid chassis_id.to_i end |
#management_address ⇒ Object
47 48 49 |
# File 'lib/pio/lldp/frame.rb', line 47 def management_address get_tlv_field 8, 'management_address' end |
#organizationally_specific ⇒ Object
51 52 53 |
# File 'lib/pio/lldp/frame.rb', line 51 def organizationally_specific get_tlv 127 end |
#port_description ⇒ Object
31 32 33 |
# File 'lib/pio/lldp/frame.rb', line 31 def port_description get_tlv_field 4, 'port_description' end |
#system_capabilities ⇒ Object
43 44 45 |
# File 'lib/pio/lldp/frame.rb', line 43 def system_capabilities get_tlv 7 end |
#system_description ⇒ Object
39 40 41 |
# File 'lib/pio/lldp/frame.rb', line 39 def system_description get_tlv_field 6, 'system_description' end |
#system_name ⇒ Object
35 36 37 |
# File 'lib/pio/lldp/frame.rb', line 35 def system_name get_tlv_field 5, 'system_name' end |