Method: PacketGen::Plugin::IKE#initialize

Defined in:
lib/packetgen/plugin/ike.rb

#initialize(options = {}) ⇒ IKE

Returns a new instance of IKE.

Parameters:

  • options (Hash) (defaults to: {})

See Also:

  • Header::Base#initialize


152
153
154
155
156
157
# File 'lib/packetgen/plugin/ike.rb', line 152

def initialize(options={})
  super
  calc_length unless options[:length]
  self.type = options[:type] if options[:type]
  self.type = options[:exchange_type] if options[:exchange_type]
end