Class: PacketGen::Header::SCTP::SackChunk
- Inherits:
-
BaseChunk
- Object
- Types::Fields
- Base
- BaseChunk
- PacketGen::Header::SCTP::SackChunk
- Defined in:
- lib/packetgen/header/sctp/chunk.rb
Overview
Selective Acknowledge 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 = 3 | Chunk Flags | Chunk Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Cumulative TSN Ack |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Advertised Receiver Window Credit (a_rwnd) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Number of Gap Ack Blocks = N | Number of Duplicate TSNs = M |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Gap Ack Block #1 Start | Gap Ack Block #1 End |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
/ /
\ ... \
/ /
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Gap Ack Block #N Start | Gap Ack Block #N End |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Duplicate TSN 1 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
/ /
\ ... \
/ /
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Duplicate TSN M |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Constant Summary
Constants inherited from BaseChunk
Instance Attribute Summary collapse
-
#a_rwnd ⇒ Integer
32-bit Advertised Receiver Window Credit.
-
#ctsn_ack ⇒ Integer
32-bit Cumulative TSN Ack.
-
#dup_tsns ⇒ Types::ArrayOfInt32
Array of 32-bit Duplicate TSNs.
-
#gaps ⇒ Types::ArrayOfInt32
Array of 32-bit Integers, encoding boudaries of a Gap Ack Block.
-
#num_dup_tsn ⇒ Integer
16-bit Number of Duplicate TSNs.
-
#num_gap ⇒ Integer
16-bit Number of Gap Ack Blocks.
Attributes inherited from BaseChunk
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ SackChunk
constructor
A new instance of SackChunk.
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
Methods inherited from Types::Fields
#[], #[]=, #bits_on, define_bit_fields_on, define_field, define_field_after, define_field_before, #fields, fields, inherited, #inspect, #offset_of, #optional?, #optional_fields, #present?, #read, remove_bit_fields_on, remove_field, #sz, #to_h, #to_s, update_field
Constructor Details
Instance Attribute Details
#a_rwnd ⇒ Integer
32-bit Advertised Receiver Window Credit
322 |
# File 'lib/packetgen/header/sctp/chunk.rb', line 322 define_field :a_rwnd, Types::Int32 |
#ctsn_ack ⇒ Integer
32-bit Cumulative TSN Ack
318 |
# File 'lib/packetgen/header/sctp/chunk.rb', line 318 define_field :ctsn_ack, Types::Int32 |
#dup_tsns ⇒ Types::ArrayOfInt32
Array of 32-bit Duplicate TSNs.
339 |
# File 'lib/packetgen/header/sctp/chunk.rb', line 339 define_field :dup_tsns, Types::ArrayOfInt32 |
#gaps ⇒ Types::ArrayOfInt32
Array of 32-bit Integers, encoding boudaries of a Gap Ack Block. 16 most significant bits encode block start. 16 least significant bits encode block end.
335 |
# File 'lib/packetgen/header/sctp/chunk.rb', line 335 define_field :gaps, Types::ArrayOfInt32 |