IPv6 Hop-by-Hop Options (ipv6_hopopts)
- レイヤ: L3 (ネットワーク)
- ヘッダ: 可変長
- 補足: マルチキャスト制御プロトコル
下位レイヤからの到達
| 下位レイヤ | 判別フィールド | 値 |
|---|---|---|
ipv6 | next_header | 0 (0x00) |
ipv6_hopopts | next_header | 0 (0x00) |
ipv6_route | next_header | 0 (0x00) |
ipv6_srh | next_header | 0 (0x00) |
ipv6_frag | next_header | 0 (0x00) |
ipv6_dstopts | next_header | 0 (0x00) |
フィールド
| フィールド | 型 | 既定値 | Auto | 説明 |
|---|---|---|---|---|
next_header | uint(8) | 253 | 次レイヤのプロトコル番号 (「次レイヤ」参照) | この拡張ヘッダに続くヘッダのプロトコル番号 (Auto)。 |
hdr_ext_len | uint(8) | ヘッダの長さ (64 ビットワード単位) (-1) | この拡張ヘッダの長さ (8 バイト単位、先頭 8 バイトを除く。Auto)。 | |
options | bytes — hdr_ext_len * 8 + 6 オクテット | 01 04 00 00 00 00 | 生の TLV オプション (8 バイトの倍数にパディング)。 | |
padding | padding(8) | 拡張ヘッダを 8 バイトの倍数に揃えるゼロパディング (Pad1、Auto)。 |
次レイヤ
次レイヤは next_header で判別します。このフィールドが Auto のときは、上に積んだプロトコルの値を書き込みます。
| 値 | プロトコル | 備考 |
|---|---|---|
| 0 (0x00) | ipv6_hopopts | |
| 4 (0x04) | ipv4 | |
| 6 (0x06) | tcp | |
| 17 (0x11) | udp | |
| 41 (0x29) | ipv6 | |
| 43 (0x2b) | ipv6_route | |
| 44 (0x2c) | ipv6_frag | |
| 46 (0x2e) | rsvp | |
| 47 (0x2f) | gre | |
| 58 (0x3a) | icmpv6 | |
| 60 (0x3c) | ipv6_dstopts | |
| 88 (0x58) | eigrp | |
| 89 (0x59) | ospfv3 | |
| 112 (0x70) | vrrpv3_ipv6 | |
| 115 (0x73) | l2tpv3 | |
| 132 (0x84) | sctp | |
| 143 (0x8f) | ethernet2 |
next_header = 43 (0x2b) のときのペイロードの 16 ビット目から 8 ビット
| 値 | プロトコル |
|---|---|
| 4 (0x04) | ipv6_srh |
| (その他の値) | ipv6_route |
サンプルテンプレート
- ipv6-ext-chain —
templates/protocols/l3/ipv6-ext-chain.wpg.yaml - ipv6-hopopts-router-alert —
templates/protocols/l3/ipv6-hopopts.wpg.yaml - mldv1-query —
templates/protocols/mcast/mldv1-query.wpg.yaml