Sha256: 48e72c7fb1037a5f0671c19207aa09be084795710a33bf7122219722360e0b15

Contents?: true

Size: 627 Bytes

Versions: 15

Compression:

Stored size: 627 Bytes

Contents

# -*- coding: binary -*-
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

15 entries across 15 versions & 3 rubygems

Version Path
rex-2.0.13 lib/rex/proto/tftp/constants.rb
rex-2.0.12 lib/rex/proto/tftp/constants.rb
rex-2.0.11 lib/rex/proto/tftp/constants.rb
rex-2.0.10 lib/rex/proto/tftp/constants.rb
rex-2.0.9 lib/rex/proto/tftp/constants.rb
rex-2.0.8 lib/rex/proto/tftp/constants.rb
rex-2.0.7 lib/rex/proto/tftp/constants.rb
rex-2.0.5 lib/rex/proto/tftp/constants.rb
rex-2.0.4 lib/rex/proto/tftp/constants.rb
dstruct-0.0.1 lib/rex/proto/tftp/constants.rb
rex-2.0.3 lib/rex/proto/tftp/constants.rb
librex-0.0.999 lib/rex/proto/tftp/constants.rb
rex-2.0.2 lib/rex/proto/tftp/constants.rb
librex-0.0.71 lib/rex/proto/tftp/constants.rb
librex-0.0.70 lib/rex/proto/tftp/constants.rb