Class: PacketGen::Header::IP::RA

Inherits:
Option show all
Defined in:
lib/packetgen/header/ip/option.rb

Overview

Router Alert IP option

Constant Summary

Constants inherited from Option

Option::EOL_TYPE, Option::LSRR_TYPE, Option::NOP_TYPE, Option::RA_TYPE, Option::RR_TYPE, Option::SI_TYPE, Option::SSRR_TYPE

Instance Attribute Summary collapse

Attributes inherited from Option

#copied, #data, #length, #option_class, #type

Method Summary

Methods inherited from Option

build, #initialize, #to_human, #to_s, types

Methods included from Types::Fieldable

#format_inspect, #read, #sz, #to_human, #to_s, #type_name

Methods inherited from Types::Fields

#[], #[]=, #bits_on, define_bit_fields_on, define_field, define_field_after, define_field_before, #fields, fields, inherited, #initialize, #inspect, #offset_of, #optional?, #optional_fields, #present?, #read, remove_bit_fields_on, remove_field, #sz, #to_h, #to_s, update_field

Constructor Details

This class inherits a constructor from PacketGen::Header::IP::Option

Instance Attribute Details

#valueInteger

16-bit value. Should be 0.

Returns:

  • (Integer)

185
# File 'lib/packetgen/header/ip/option.rb', line 185

define_field :value, Types::Int16, default: 0