- レイヤ: L3 (ネットワーク)
- ヘッダ: 4 オクテット (固定長)
- 補足: カプセル化・トンネル
| フィールド | 型 | 既定値 | Auto | 説明 |
flags | flags(16) | 0x0 | | GRE フラグとバージョン (checksum / key / sequence の存在ビット)。 |
protocol_type | enum(16) | 2048 (ipv4) | 次レイヤのプロトコル番号 (「次レイヤ」参照) | カプセル化ペイロードの EtherType。 |
| ビット | マスク | 名前 |
| 15 | 32768 (0x8000) | checksum_present |
| 13 | 8192 (0x2000) | key_present |
| 12 | 4096 (0x1000) | sequence_present |
| 値 | 名前 |
| 2048 (0x0800) | ipv4 |
| 34525 (0x86dd) | ipv6 |
| 25944 (0x6558) | transparent_ethernet |
| 34887 (0x8847) | mpls |
次レイヤは protocol_type で判別します。このフィールドが Auto のときは、上に積んだプロトコルの値を書き込みます。
- gre-ipv4 —
templates/protocols/encap/gre-ipv4.wpg.yaml