Class: PacketGen::Header::TFTP::ERROR
- Inherits:
-
PacketGen::Header::TFTP
- Object
- BinStruct::Struct
- Base
- PacketGen::Header::TFTP
- PacketGen::Header::TFTP::ERROR
- Defined in:
- lib/packetgen/header/tftp.rb
Overview
TFTP ERROR header. This header remove #body attribute and repalces it with #error_code and #error_msg.
Constant Summary
Constants inherited from PacketGen::Header::TFTP
Instance Attribute Summary collapse
-
#error_code ⇒ Integer
16-bit error code.
-
#error_msg ⇒ String
(also: #error_message)
Error message.
Attributes inherited from PacketGen::Header::TFTP
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, #to_s
Constructor Details
This class inherits a constructor from PacketGen::Header::TFTP
Instance Attribute Details
#error_code ⇒ Integer
16-bit error code
197 |
# File 'lib/packetgen/header/tftp.rb', line 197 define_attr :error_code, BinStruct::Int16 |
#error_msg ⇒ String Also known as: error_message
Error message
202 |
# File 'lib/packetgen/header/tftp.rb', line 202 define_attr :error_msg, BinStruct::CString |