Class: PacketGen::Header::IKE::Transforms

Inherits:
Types::Array
  • Object
show all
Defined in:
lib/packetgen/header/ike/sa.rb

Overview

Set of Transform in a SAProposal

Since:

  • 2.0.0

Constant Summary

Constants inherited from Types::Array

Types::Array::HUMAN_SEPARATOR

Instance Method Summary collapse

Methods inherited from Types::Array

#<<, #delete, #force_binary, #initialize, #read, set_of, #sz, #to_human, #to_s

Constructor Details

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

Instance Method Details

#push(trans) ⇒ Object

Same as Types::Array#push but update previous PacketGen::Header::IKE::Transform#last attribute

See Also:

Since:

  • 2.0.0



334
335
336
337
338
339
# File 'lib/packetgen/header/ike/sa.rb', line 334

def push(trans)
  super
  self[-2].last = 3 if size > 1
  self[-1].last = 0
  self
end