Class: PacketGen::Header::TFTP::RRQ

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

Overview

TFTP Read Request header. This header remove #body attribute and repalces it with #filename and #mode.

Since:

  • 2.3.0

Direct Known Subclasses

WRQ

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, #to_s

Constructor Details

This class inherits a constructor from PacketGen::Header::TFTP

Instance Attribute Details

#filenameString

Filename to access

Returns:

  • (String)


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

define_attr :filename, BinStruct::CString

#modeString

Mode used. Should be netascii, octet or mail

Returns:

  • (String)


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

define_attr :mode, BinStruct::CString