Class: PacketGen::Header::TFTP::ERROR

Inherits:
PacketGen::Header::TFTP show all
Defined in:
lib/packetgen/header/tftp.rb

Overview

TFTP ERROR header

Since:

  • 2.3.0

Constant Summary

Constants inherited from PacketGen::Header::TFTP

OPCODES

Instance Attribute Summary collapse

Attributes inherited from PacketGen::Header::TFTP

#body, #opcode

Method Summary

Methods inherited from PacketGen::Header::TFTP

#added_to_packet, #decode!, #human_opcode, #initialize, #old_read, #read

Methods inherited from Base

bind, calculate_and_set_length, #header_id, inherited, #initialize, #ip_header, #ll_header

Methods included from PacketGen::Headerable

#added_to_packet, included, #method_name, #packet, #packet=, #parse?, #protocol_name, #read

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::TFTP

Instance Attribute Details

#error_codeInteger

16-bit error code

Returns:

  • (Integer)


191
# File 'lib/packetgen/header/tftp.rb', line 191

define_field :error_code, Types::Int16

#error_msgString Also known as: error_message

Error message

Returns:

  • (String)


196
# File 'lib/packetgen/header/tftp.rb', line 196

define_field :error_msg, Types::CString