Class: PacketGen::Header::SCTP::HeartbeatChunk
Overview
Heartbeat Request 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 = 4 | Chunk Flags | Heartbeat Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
\ \
/ Heartbeat Information TLV (Variable-Length) /
\ \
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Direct Known Subclasses
Constant Summary
Constants inherited from BaseChunk
Instance Attribute Summary collapse
-
#info ⇒ HearbeatInfo
Heartbeat information TLV.
Attributes inherited from BaseChunk
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ HeartbeatChunk
constructor
A new instance of HeartbeatChunk.
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 = {}) ⇒ HeartbeatChunk
Returns a new instance of HeartbeatChunk.
380 381 382 383 |
# File 'lib/packetgen/header/sctp/chunk.rb', line 380 def initialize(={}) [:type] = BaseChunk::TYPES['HEARTBEAT'] unless .key?(:type) super end |
Instance Attribute Details
#info ⇒ HearbeatInfo
Heartbeat information TLV.
378 |
# File 'lib/packetgen/header/sctp/chunk.rb', line 378 define_attr :info, HearbeatInfo |