Class: FFI::Packets::Tcp::Hdr

Inherits:
Struct
  • Object
show all
Includes:
DRY::NetStructHelper
Defined in:
lib/ffi/packets/tcp.rb

Overview

TCP header, without options

field :sport,  :uint16, :desc => 'source port'
field :dport,  :uint16, :desc => 'destination port'
field :seq,    :uint32, :desc => 'sequence number'
field :ack,    :uint32, :desc => 'acknowledgment number'
field :off_x2, :uint8,  :desc => 'data offset(& 0xf0) unused (& 0x0f)'
field :flags,  :uint8,  :desc => 'control flags'
field :win,    :uint16, :desc => 'window'
field :sum,    :uint16, :desc => 'checksum'
field :urgp,   :uint16, :desc => 'urgent pointer'

Defined Under Namespace

Modules: Flags