TFTP DATA (tftp_data)
- Layer: Application and control
- Header: variable length
- Notes: Application protocols
Reached from
| Lower layer | Selector | Value |
|---|---|---|
tftp | opcode | 3 (0x0003) (re-decodes this layer) |
Fields
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
opcode | enum(16) | 3 (data) | TFTP opcode (1 = RRQ, 2 = WRQ, 3 = DATA, 4 = ACK, 5 = ERROR, 6 = OACK). | |
block | uint(16) | 1 | Block number (starting at 1). | |
data | bytes — rest of the PDU | "" | Data octets (512 per block; a shorter block ends the transfer). |
opcode
| Value | Name |
|---|---|
| 1 (0x0001) | rrq |
| 2 (0x0002) | wrq |
| 3 (0x0003) | data |
| 4 (0x0004) | ack |
| 5 (0x0005) | error |
| 6 (0x0006) | oack |
Constraints
| Level | Rule |
|---|---|
| warning | opcode = 3 |
Sample templates
- tftp-data —
templates/protocols/app/tftp-data.wpg.yaml