Class: PacketGen::Header::SCTP::ShutdownChunk
Overview
Shutdown association 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 = 7 | Chunk Flags | Length = 8 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Cumulative TSN Ack |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Constant Summary
Constants inherited from BaseChunk
Instance Attribute Summary collapse
-
#cstn_ack ⇒ Integer
32-bit cumulative TSN ack.
Attributes inherited from BaseChunk
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ShutdownChunk
constructor
A new instance of ShutdownChunk.
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 = {}) ⇒ ShutdownChunk
Returns a new instance of ShutdownChunk.
491 492 493 494 495 |
# File 'lib/packetgen/header/sctp/chunk.rb', line 491 def initialize(={}) [:type] = BaseChunk::TYPES['SHUTDOWN'] unless .key?(:type) [:length] = 8 unless .key?(:length) super end |
Instance Attribute Details
#cstn_ack ⇒ Integer
32-bit cumulative TSN ack
489 |
# File 'lib/packetgen/header/sctp/chunk.rb', line 489 define_attr :ctsn_ack, BinStruct::Int32 |