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)


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

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

Instance Method Details

#to_humanString

Returns:

  • (String)


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

def to_human
  'pad1'
end