Class: PacketGen::Header::IPv6::Option
- Inherits:
-
AbstractTLV
- Object
- AbstractTLV
- PacketGen::Header::IPv6::Option
- Defined in:
- lib/packetgen/header/ipv6/hop_by_hop.rb,
lib/packetgen/header/ipv6/hop_by_hop.rb
Overview
Option for HopByHop IPv6 extension header.
Constant Summary collapse
- TYPES =
Known option types
{ 1 => 'padn', 5 => 'router_alert' }.freeze
Instance Method Summary collapse
-
#to_human ⇒ String
Get human-readable string.
Instance Method Details
#to_human ⇒ String
Get human-readable string
29 30 31 32 33 34 35 36 |
# File 'lib/packetgen/header/ipv6/hop_by_hop.rb', line 29 def to_human case type when 1 "pad#{self.sz}" else "#{human_type}(#{value.to_s.inspect})" end end |