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