-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopcode.go
20 lines (18 loc) · 1.01 KB
/
opcode.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package tftp
const (
_ uint16 = iota
OpcodeReadRequest // RFC 1350 The TFTP Protocol (Revision 2)
OpcodeWriteRequest // RFC 1350 The TFTP Protocol (Revision 2)
OpcodeData // RFC 1350 The TFTP Protocol (Revision 2)
OpcodeAcknowledgment // RFC 1350 The TFTP Protocol (Revision 2)
OpcodeError // RFC 1350 The TFTP Protocol (Revision 2)
OpcodeOptionAcknowledgment // RFC 2347 TFTP Option Extension
)
var Opcodes = map[uint16]string{
OpcodeReadRequest: "RRQ", // RFC 1350 The TFTP Protocol (Revision 2)
OpcodeWriteRequest: "WRQ", // RFC 1350 The TFTP Protocol (Revision 2)
OpcodeData: "DATA", // RFC 1350 The TFTP Protocol (Revision 2)
OpcodeAcknowledgment: "ACK", // RFC 1350 The TFTP Protocol (Revision 2)
OpcodeError: "ERR", // RFC 1350 The TFTP Protocol (Revision 2)
OpcodeOptionAcknowledgment: "OACK", // RFC 2347 TFTP Option Extension
}