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

GRE (gre)

下位レイヤからの到達

下位レイヤ判別フィールド値
ipv4protocol47 (0x2f)
ipv6next_header47 (0x2f)
ipv6_hopoptsnext_header47 (0x2f)
ipv6_routenext_header47 (0x2f)
ipv6_srhnext_header47 (0x2f)
ipv6_fragnext_header47 (0x2f)
ipv6_dstoptsnext_header47 (0x2f)

フィールド

フィールド型既定値Auto説明
flagsflags(16)0x0GRE フラグとバージョン (checksum / key / sequence の存在ビット)。
protocol_typeenum(16)2048 (ipv4)次レイヤのプロトコル番号 (「次レイヤ」参照)カプセル化ペイロードの EtherType。

flags

ビットマスク名前
1532768 (0x8000)checksum_present
138192 (0x2000)key_present
124096 (0x1000)sequence_present

protocol_type

値名前
2048 (0x0800)ipv4
34525 (0x86dd)ipv6
25944 (0x6558)transparent_ethernet
34887 (0x8847)mpls

次レイヤ

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

値プロトコル備考
2048 (0x0800)ipv4
34525 (0x86dd)ipv6
25944 (0x6558)ethernet2
34887 (0x8847)mpls

サンプルテンプレート

  • gre-ipv4 — templates/protocols/encap/gre-ipv4.wpg.yaml