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

Inherits:
Types::Fields show all
Defined in:
lib/packetgen/header/ipv6/hop_by_hop.rb

Overview

Special option pad1, for HopByHop IPv6 extension header

Author:

  • Sylvain Daubert

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Types::Fields

#[], #[]=, #bits_on, define_bit_fields_on, define_field, define_field_after, define_field_before, #fields, fields, inherited, #initialize, #inspect, #offset_of, #optional?, #optional_fields, #present?, #read, remove_bit_fields_on, remove_field, #sz, #to_h, #to_s, update_field

Constructor Details

This class inherits a constructor from PacketGen::Types::Fields

Instance Attribute Details

#padInteger

Returns:

  • (Integer)


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

define_field :pad, Types::Int8, default: 0

Instance Method Details

#to_humanString

Returns:

  • (String)


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

def to_human
  'pad1'
end