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

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

Overview

Set of Transform in a SAProposal

Author:

  • Sylvain Daubert

Since:

  • 2.0.0

Constant Summary

Constants inherited from Types::Array

Types::Array::HUMAN_SEPARATOR

Instance Method Summary collapse

Methods inherited from Types::Array

#<<, #==, #[], #clear, #clear!, #delete, #delete_at, #each, #empty?, #first, #force_binary, #initialize, #initialize_copy, #last, #read, set_of, #size, #sz, #to_a, #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



322
323
324
325
326
327
# File 'lib/packetgen/header/ike/sa.rb', line 322

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