Class: PacketGen::Header::SCTP::ShutdownCompleteChunk
Overview
Shutdown Complete Chunk
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type = 14 | Reserved |T| Length = 4 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Constant Summary
Constants inherited from BaseChunk
Instance Attribute Summary collapse
Attributes inherited from BaseChunk
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ShutdownCompleteChunk
constructor
A new instance of ShutdownCompleteChunk.
Methods inherited from BaseChunk
#calc_length, #human_type, #to_human
Methods included from Padded32
Methods inherited from Base
bind, calculate_and_set_length, #header_id, inherited, #ip_header, #ll_header
Methods included from PacketGen::Headerable
#added_to_packet, included, #method_name, #packet, #packet=, #parse?, #protocol_name, #read, #to_s
Constructor Details
#initialize(options = {}) ⇒ ShutdownCompleteChunk
Returns a new instance of ShutdownCompleteChunk.
563 564 565 566 567 |
# File 'lib/packetgen/header/sctp/chunk.rb', line 563 def initialize(={}) [:type] = BaseChunk::TYPES['SHUTDOWN_COMPLETE'] unless .key?(:type) [:length] = 4 unless .key?(:length) super end |
Instance Attribute Details
#flag_t ⇒ Integer
561 |
# File 'lib/packetgen/header/sctp/chunk.rb', line 561 define_bit_attr_after :type, :flags, flag_res: 7, flag_t: 1 |