Class: FFI::Packets::Ip::Opt

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

Overview

IP option (following IP header)

array :otype, :uint8,            :desc => 'option type'
array :len,   :uint8,            :desc => 'option length >= IP_OPE_LEN'
array :data, [:uint8, DATA_LEN], :desc => 'option message data '

Defined Under Namespace

Modules: Otype Classes: DataRR, DataSEC, DataTR, DataTS

Constant Summary collapse

IP_OPT_LEN =
Constants::IP_OPT_LEN
IP_OPT_LEN_MAX =
Constants::IP_OPT_LEN_MAX
DATA_LEN =
IP_OPT_LEN_MAX - IP_OPT_LEN