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)

下位レイヤからの到達

下位レイヤ判別フィールド値
udpdst_port / src_port69 (0x0045)

フィールド

フィールド型既定値Auto説明
opcodeenum(16)1 (rrq)TFTP オペコード (1 = RRQ、2 = WRQ、3 = DATA、4 = ACK、5 = ERROR、6 = OACK)。
filenamecstring"boot.bin"ファイル名 (NUL 終端)。
modecstring"octet"転送モード: netascii、octet、mail (NUL 終端)。
optionslist<struct> — PDU の残りすべて[]オプション名 / 値の文字列ペア (RFC 2347): blksize、timeout、tsize、windowsize など。

opcode

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

options

各要素は以下のフィールドの組です。

フィールド型既定値Auto説明
namecstring"blksize"
valuecstring"1428"

次レイヤ

次レイヤは opcode で判別します。このフィールドが Auto のときは、上に積んだプロトコルの値を書き込みます。

値プロトコル備考
3 (0x0003)tftp_dataこのレイヤを読み直す
4 (0x0004)tftp_ackこのレイヤを読み直す
5 (0x0005)tftp_errorこのレイヤを読み直す
6 (0x0006)tftp_oackこのレイヤを読み直す

サンプルテンプレート

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