Class: PacketGen::Header::IPv6::Pad1
- Inherits:
-
BinStruct::Struct
- Object
- BinStruct::Struct
- PacketGen::Header::IPv6::Pad1
- Defined in:
- lib/packetgen/header/ipv6/hop_by_hop.rb
Overview
Special option pad1 (one-byte option), for HopByHop IPv6 extension header
Instance Attribute Summary collapse
-
#pad ⇒ Integer
Pad1 option type.
Instance Method Summary collapse
-
#to_human ⇒ String
Get human-readable string.
Instance Attribute Details
#pad ⇒ Integer
Pad1 option type
47 |
# File 'lib/packetgen/header/ipv6/hop_by_hop.rb', line 47 define_attr :pad, BinStruct::Int8, default: 0 |
Instance Method Details
#to_human ⇒ String
Get human-readable string
51 52 53 |
# File 'lib/packetgen/header/ipv6/hop_by_hop.rb', line 51 def to_human 'pad1' end |