2 * Routines and data exported by the dissection code for the
3 * Generic Routing Encapsulation (GRE) protocol
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 /* bit positions for flags in header */
13 #define GRE_CHECKSUM 0x8000
14 #define GRE_ROUTING 0x4000
15 #define GRE_KEY 0x2000
16 #define GRE_SEQUENCE 0x1000
17 #define GRE_STRICTSOURCE 0x0800
18 #define GRE_RECURSION 0x0700
19 #define GRE_ACK 0x0080 /* only in special PPTPized GRE header */
20 #define GRE_RESERVED_PPP 0x0078 /* only in special PPTPized GRE header */
21 #define GRE_RESERVED 0x00F8
22 #define GRE_VERSION 0x0007
24 /* GRE type values that aren't also Ethernet type values */
25 #define GRE_KEEPALIVE 0x0000
26 #define GRE_CISCO_CDP 0x2000
27 #define GRE_NHRP 0x2001
28 #define GRE_WCCP 0x883E
29 #define GRE_ERSPAN_88BE 0x88BE
30 #define GRE_ERSPAN_22EB 0x22EB
31 #define GRE_MIKROTIK_EOIP 0x6400
32 #define GRE_AIROHIVE 0xFEAE
33 #define GRE_GREBONDING 0xB7EA
34 /* ************************************************************************* */
35 /* Aruba GRE Encapsulation ID */
36 /* ************************************************************************* */
37 #define GRE_ARUBA_8200 0x8200
38 #define GRE_ARUBA_8210 0x8210
39 #define GRE_ARUBA_8220 0x8220
40 #define GRE_ARUBA_8230 0x8230
41 #define GRE_ARUBA_8240 0x8240
42 #define GRE_ARUBA_8250 0x8250
43 #define GRE_ARUBA_8260 0x8260
44 #define GRE_ARUBA_8270 0x8270
45 #define GRE_ARUBA_8280 0x8280
46 #define GRE_ARUBA_8290 0x8290
47 #define GRE_ARUBA_82A0 0x82A0
48 #define GRE_ARUBA_82B0 0x82B0
49 #define GRE_ARUBA_82C0 0x82C0
50 #define GRE_ARUBA_82D0 0x82D0
51 #define GRE_ARUBA_82E0 0x82E0
52 #define GRE_ARUBA_82F0 0x82F0
53 #define GRE_ARUBA_8300 0x8300
54 #define GRE_ARUBA_8310 0x8310
55 #define GRE_ARUBA_8320 0x8320
56 #define GRE_ARUBA_8330 0x8330
57 #define GRE_ARUBA_8340 0x8340
58 #define GRE_ARUBA_8350 0x8350
59 #define GRE_ARUBA_8360 0x8360
60 #define GRE_ARUBA_8370 0x8370
61 #define GRE_ARUBA_9000 0x9000
63 extern const value_string gre_typevals
[];
65 typedef struct gre_hdr_info
{
66 uint16_t flags_and_ver
;