| Field | Type | Default | Auto | Description |
flags | flags(16) | 0x0 | | GRE flags and version (checksum / key / sequence present bits). |
protocol_type | enum(16) | 2048 (ipv4) | Protocol number of the next layer (see Next layer) | EtherType of the encapsulated payload. |
| Bit | Mask | Name |
| 15 | 32768 (0x8000) | checksum_present |
| 13 | 8192 (0x2000) | key_present |
| 12 | 4096 (0x1000) | sequence_present |
| Value | Name |
| 2048 (0x0800) | ipv4 |
| 34525 (0x86dd) | ipv6 |
| 25944 (0x6558) | transparent_ethernet |
| 34887 (0x8847) | mpls |
The next layer is selected by protocol_type; when the field is Auto the builder writes the value of the protocol stacked above.
- gre-ipv4 —
templates/protocols/encap/gre-ipv4.wpg.yaml