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

DHCPv4 (dhcpv4)

下位レイヤからの到達

下位レイヤ判別フィールド値
udpdst_port / src_port67 (0x0043)
udpdst_port / src_port68 (0x0044)

フィールド

フィールド型既定値Auto説明
openum(8)1 (boot_request)BOOTP メッセージ種別 (1 = BOOTREQUEST、2 = BOOTREPLY)。
htypeuint(8)1ハードウェアアドレス種別 (1 = Ethernet)。
hlenuint(8)6ハードウェアアドレス長 (オクテット、Ethernet は 6)。
hopsuint(8)0リレーホップ数 (リレーエージェントごとに加算)。
xiduint(32)305419896クライアントが選ぶトランザクション ID。
secsuint(16)0クライアントが取得を開始してからの経過秒数。
flagsflags(16)0x0BOOTP フラグ (ビット 15 = ブロードキャスト応答を要求)。
ciaddripv40.0.0.0クライアント IP アドレス (割り当て済みの場合)。
yiaddripv40.0.0.0サーバが割り当てるクライアント (“your”) IP アドレス。
siaddripv40.0.0.0次に使うサーバ (ブートサーバ) の IP アドレス。
giaddripv40.0.0.0リレーエージェント (ゲートウェイ) の IP アドレス。リレー時は非 0。
chaddrmac02:00:00:00:00:01クライアントのハードウェア (MAC) アドレス。後ろに 10 オクテットのパディング。
chaddr_paddingbytes(10)00 00 00 00 00 00 00 00 00 00
snamebytes(64)00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00サーバホスト名 (任意、64 オクテット、NUL 埋め)。
filebytes(128)00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00ブートファイル名 (128 オクテット、NUL 埋め)。
magic_cookieuint(32)1669485411DHCP マジッククッキー (0x63825363)。
optionstlv — PDU の残りすべて2 要素DHCP オプション (8 ビットコード / 長さ。Pad、End、Message Type、Relay Agent Information など)。

op

値名前
1 (0x01)boot_request
2 (0x02)boot_reply

flags

ビットマスク名前
1532768 (0x8000)broadcast

options

  • タイプ 8 ビット、長さ 8 ビット。
  • 長さは値の部分だけを数えます。
  • 未知のタイプは値をオクテット列のまま保持します。
タイプ値名前値のフィールド説明
0 (0x00)pad(タイプのみ。長さと値なし)
1 (0x01)subnet_maskmask
3 (0x03)routeraddresses
6 (0x06)dns_serversaddresses
12 (0x0c)host_name
15 (0x0f)domain_name
50 (0x32)requested_ipaddress
51 (0x33)lease_timeseconds
53 (0x35)message_typetype
54 (0x36)server_idaddress
55 (0x37)parameter_request_listcodes
58 (0x3a)renewal_timeseconds
59 (0x3b)rebinding_timeseconds
61 (0x3d)client_id
82 (0x52)relay_agent_infosuboptions
255 (0xff)end(タイプのみ。長さと値なし)

options › subnet_mask

フィールド型既定値Auto説明
maskipv4

options › router

フィールド型既定値Auto説明
addresseslist<ipv4> — PDU の残りすべて

options › dns_servers

フィールド型既定値Auto説明
addresseslist<ipv4> — PDU の残りすべて

options › requested_ip

フィールド型既定値Auto説明
addressipv4

options › lease_time

フィールド型既定値Auto説明
secondsuint(32)

options › message_type

フィールド型既定値Auto説明
typeenum(8)
options › message_type › type
値名前
1 (0x01)discover
2 (0x02)offer
3 (0x03)request
4 (0x04)decline
5 (0x05)ack
6 (0x06)nak
7 (0x07)release
8 (0x08)inform

options › server_id

フィールド型既定値Auto説明
addressipv4

options › parameter_request_list

フィールド型既定値Auto説明
codeslist<uint(8)> — PDU の残りすべて

options › renewal_time

フィールド型既定値Auto説明
secondsuint(32)

options › rebinding_time

フィールド型既定値Auto説明
secondsuint(32)

options › relay_agent_info

フィールド型既定値Auto説明
suboptionstlv — PDU の残りすべて
options › relay_agent_info › suboptions
  • タイプ 8 ビット、長さ 8 ビット。
  • 長さは値の部分だけを数えます。
  • 未知のタイプは値をオクテット列のまま保持します。
タイプ値名前値のフィールド説明
1 (0x01)circuit_id
2 (0x02)remote_id
5 (0x05)link_selectionaddress
11 (0x0b)server_id_overrideaddress
フィールド型既定値Auto説明
addressipv4
options › relay_agent_info › suboptions › server_id_override
フィールド型既定値Auto説明
addressipv4

制約

レベル規則
警告magic_cookie が 1669485411

サンプルテンプレート