Class: PacketGen::Header::IPv6::Pad1

Inherits:
BinStruct::Struct
  • Object
show all
Defined in:
lib/packetgen/header/ipv6/hop_by_hop.rb

Overview

Special option pad1 (one-byte option), for HopByHop IPv6 extension header

Author:

  • Sylvain Daubert

Since:

  • 2.4.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#padInteger

Pad1 option type

Returns:

  • (Integer)


47
# File 'lib/packetgen/header/ipv6/hop_by_hop.rb', line 47

define_attr :pad, BinStruct::Int8, default: 0

Instance Method Details

#to_humanString

Get human-readable string

Returns:

  • (String)

Since:

  • 2.4.0



51
52
53
# File 'lib/packetgen/header/ipv6/hop_by_hop.rb', line 51

def to_human
  'pad1'
end