Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

TFTP (tftp)

Reached from

Lower layerSelectorValue
udpdst_port / src_port69 (0x0045)

Fields

FieldTypeDefaultAutoDescription
opcodeenum(16)1 (rrq)TFTP opcode (1 = RRQ, 2 = WRQ, 3 = DATA, 4 = ACK, 5 = ERROR, 6 = OACK).
filenamecstring"boot.bin"File name (NUL-terminated).
modecstring"octet"Transfer mode: netascii, octet or mail (NUL-terminated).
optionslist<struct> — rest of the PDU[]Option name / value string pairs (RFC 2347): blksize, timeout, tsize, windowsize, …

opcode

ValueName
1 (0x0001)rrq
2 (0x0002)wrq
3 (0x0003)data
4 (0x0004)ack
5 (0x0005)error
6 (0x0006)oack

options

Each item is a group of the fields below.

FieldTypeDefaultAutoDescription
namecstring"blksize"
valuecstring"1428"

Next layer

The next layer is selected by opcode; when the field is Auto the builder writes the value of the protocol stacked above.

ValueProtocolNote
3 (0x0003)tftp_datare-decodes this layer
4 (0x0004)tftp_ackre-decodes this layer
5 (0x0005)tftp_errorre-decodes this layer
6 (0x0006)tftp_oackre-decodes this layer

Sample templates

  • tftp-rrq — templates/protocols/app/tftp-rrq.wpg.yaml