TFTP ERROR (tftp_error)
- Layer: Application and control
- Header: variable length
- Notes: Application protocols
Reached from
| Lower layer | Selector | Value |
|---|---|---|
tftp | opcode | 5 (0x0005) (re-decodes this layer) |
Fields
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
opcode | enum(16) | 5 (error) | TFTP opcode (1 = RRQ, 2 = WRQ, 3 = DATA, 4 = ACK, 5 = ERROR, 6 = OACK). | |
error_code | enum(16) | 1 (file_not_found) | TFTP error code (1 = file not found, 2 = access violation, …). | |
message | cstring | "File not found" | Error message (NUL-terminated). |
opcode
| Value | Name |
|---|---|
| 1 (0x0001) | rrq |
| 2 (0x0002) | wrq |
| 3 (0x0003) | data |
| 4 (0x0004) | ack |
| 5 (0x0005) | error |
| 6 (0x0006) | oack |
error_code
| Value | Name |
|---|---|
| 0 (0x0000) | not_defined |
| 1 (0x0001) | file_not_found |
| 2 (0x0002) | access_violation |
| 3 (0x0003) | disk_full |
| 4 (0x0004) | illegal_operation |
| 5 (0x0005) | unknown_tid |
| 6 (0x0006) | file_exists |
| 7 (0x0007) | no_such_user |
| 8 (0x0008) | option_negotiation |
Constraints
| Level | Rule |
|---|---|
| warning | opcode = 5 |
Sample templates
- tftp-error —
templates/protocols/app/tftp-error.wpg.yaml