Method: PacketGen::Header::SCTP::ShutdownChunk#initialize

Defined in:
lib/packetgen/header/sctp/chunk.rb

#initialize(options = {}) ⇒ ShutdownChunk

Returns a new instance of ShutdownChunk.

Since:

  • 3.4.0

  • 4.1.0 Remove ErrorMixin and ParameterMixin



491
492
493
494
495
# File 'lib/packetgen/header/sctp/chunk.rb', line 491

def initialize(options={})
  options[:type] = BaseChunk::TYPES['SHUTDOWN'] unless options.key?(:type)
  options[:length] = 8 unless options.key?(:length)
  super
end