Sha256: f997854244f427c019d6f9b305e8bdc1782fb4231a4a89d4996a6134243c2163

Contents?: true

Size: 674 Bytes

Versions: 2

Compression:

Stored size: 674 Bytes

Contents

# -*- coding: binary -*-
# $Id: constants.rb 15548 2012-06-29 06:08:20Z rapid7 $
require 'rex/proto/tftp'

module Rex
module Proto
module TFTP

OPCODES = %w{ Unknown RRQ WRQ DATA ACK ERROR }
OpRead = 1
OpWrite = 2
OpData = 3
OpAck = 4
OpError = 5
OpOptAck = 6

ERRCODES = [
	"Undefined",
	"File not found",
	"Access violation",
	"Disk full or allocation exceeded",
	"Illegal TFTP operation",
	"Unknown transfer ID",
	"File already exists",
	"No such user",
	"Failed option negotiation"
]

ErrFileNotFound = 1
ErrAccessViolation = 2
ErrDiskFull = 3
ErrIllegalOperation = 4
ErrUnknownTransferId = 5
ErrFileExists = 6
ErrNoSuchUser = 7
ErrFailedOptNegotiation = 8

end
end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
librex-0.0.68 lib/rex/proto/tftp/constants.rb
librex-0.0.66 lib/rex/proto/tftp/constants.rb