Class: PacketGen::Header::SCTP::AbortChunk
- Inherits:
-
ErrorChunk
- Object
- BinStruct::Struct
- Base
- BaseChunk
- ErrorChunk
- PacketGen::Header::SCTP::AbortChunk
- Defined in:
- lib/packetgen/header/sctp/chunk.rb
Overview
Abort 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 = 6 | Reserved |T| Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
\ \
/ zero or more Error Causes /
\ \
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Constant Summary
Constants inherited from BaseChunk
Instance Attribute Summary collapse
-
#flag_t ⇒ Integer
Reflecting bit.
Attributes inherited from ErrorChunk
Attributes inherited from BaseChunk
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ AbortChunk
constructor
A new instance of AbortChunk.
Methods inherited from ErrorChunk
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 = {}) ⇒ AbortChunk
Returns a new instance of AbortChunk.
464 465 466 467 |
# File 'lib/packetgen/header/sctp/chunk.rb', line 464 def initialize(={}) [:type] = BaseChunk::TYPES['ABORT'] unless .key?(:type) super end |
Instance Attribute Details
#flag_t ⇒ Integer
Reflecting bit
462 |
# File 'lib/packetgen/header/sctp/chunk.rb', line 462 define_bit_attr_after :type, :flags, flag_res: 7, flag_t: 1 |