Class: PacketGen::Header::SCTP::CookieEchoChunk
Overview
Cookie Echo 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 = 10 | Chunk Flags | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
/ Cookie /
\ \
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Constant Summary
Constants inherited from BaseChunk
Instance Attribute Summary collapse
-
#cookie ⇒ String
Cookie value.
Attributes inherited from BaseChunk
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ CookieEchoChunk
constructor
A new instance of CookieEchoChunk.
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 = {}) ⇒ CookieEchoChunk
Returns a new instance of CookieEchoChunk.
529 530 531 532 |
# File 'lib/packetgen/header/sctp/chunk.rb', line 529 def initialize(={}) [:type] = BaseChunk::TYPES['COOKIE_ECHO'] unless .key?(:type) super end |
Instance Attribute Details
#cookie ⇒ String
Cookie value
527 |
# File 'lib/packetgen/header/sctp/chunk.rb', line 527 define_attr :cookie, BinStruct::String |