wireshark/epan/dissectors/packet-gre.h
Thomas Vogt 95b01dc4bf GREbond: Add support for Huawei's GRE bonding (RFC8157) control protocol
This dissector is for the control messages of the GRE bonding protocol by
Huawei. These messages are encapsulated in GRE and can appear on both/all
bonding links.

During development, I made heavy use of traffic for Deutsche Telekom Hybrid
service. There fore, it also supports the first version which did not have an
IEEE assigned ethertype.
2022-06-23 19:40:25 +00:00

64 lines
2.1 KiB
C

/* 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[];