Sha256: c31851945c6d82639aa055ce4ead72ed3a9969ba448fb882b7430bdd68f486af

Contents?: true

Size: 647 Bytes

Versions: 40

Compression:

Stored size: 647 Bytes

Contents

# $Id: constants.rb 9962 2010-08-06 17:21:22Z jduck $
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

40 entries across 40 versions & 1 rubygems

Version Path
librex-0.0.65 lib/rex/proto/tftp/constants.rb
librex-0.0.63 lib/rex/proto/tftp/constants.rb
librex-0.0.54 lib/rex/proto/tftp/constants.rb
librex-0.0.53 lib/rex/proto/tftp/constants.rb
librex-0.0.52 lib/rex/proto/tftp/constants.rb
librex-0.0.51 lib/rex/proto/tftp/constants.rb
librex-0.0.50 lib/rex/proto/tftp/constants.rb
librex-0.0.49 lib/rex/proto/tftp/constants.rb
librex-0.0.48 lib/rex/proto/tftp/constants.rb
librex-0.0.47 lib/rex/proto/tftp/constants.rb
librex-0.0.46 lib/rex/proto/tftp/constants.rb
librex-0.0.44 lib/rex/proto/tftp/constants.rb
librex-0.0.43 lib/rex/proto/tftp/constants.rb
librex-0.0.42 lib/rex/proto/tftp/constants.rb
librex-0.0.41 lib/rex/proto/tftp/constants.rb
librex-0.0.40 lib/rex/proto/tftp/constants.rb
librex-0.0.39 lib/rex/proto/tftp/constants.rb
librex-0.0.38 lib/rex/proto/tftp/constants.rb
librex-0.0.37 lib/rex/proto/tftp/constants.rb
librex-0.0.36 lib/rex/proto/tftp/constants.rb