2 * Defines ethernet packet types, similar to tcpdump's ethertype.h
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 #include "ws_symbol_export.h"
30 #endif /* __cplusplus */
32 #include <epan/value_string.h>
35 * Maximum length of an IEEE 802.3 frame; Ethernet type/length values
36 * less than or equal to it are lengths.
38 #define IEEE_802_3_MAX_LEN 1500
41 * Minimum length of an Ethernet II frame; Ethernet type/length values
42 * greater than or equal to it are types.
44 #define ETHERNET_II_MIN_LEN 1536
47 #define ETHERTYPE_UNK 0x0000
51 * http://www.iana.org/assignments/ethernet-numbers
52 * TCP/IP Illustrated, Volume 1
54 * tcpdump's ethertype.h
55 * http://www.cavebear.com/CaveBear/Ethernet/
56 * http://standards.ieee.org/regauth/ethertype/type-pub.html
57 * http://standards.ieee.org/regauth/ethertype/eth.txt
58 * (The first of the two IEEE URLs is the one that the "EtherType Field
59 * Public Assignments" link on the page at
61 * http://standards.ieee.org/regauth/ethertype/index.shtml
63 * goes to, but it is redirected to the second of those - i.e., both
64 * of the IEEE URLs ultimately go to the same page.)
67 /* Order these values by number */
69 #ifndef ETHERTYPE_XNS_IDP
70 #define ETHERTYPE_XNS_IDP 0x0600
74 #define ETHERTYPE_IP 0x0800
77 #ifndef ETHERTYPE_X25L3
78 #define ETHERTYPE_X25L3 0x0805
82 #define ETHERTYPE_ARP 0x0806
86 #define ETHERTYPE_WOL 0x0842 /* Wake on LAN. Not offically registered. */
89 #ifndef ETHERTYPE_WMX_M2M
90 #define ETHERTYPE_WMX_M2M 0x08F0
94 #define ETHERTYPE_BPQ 0x08FF /* AX.25 over ethernet (not officially registered) */
97 #ifndef ETHERTYPE_VINES_IP
98 #define ETHERTYPE_VINES_IP 0x0BAD
101 #ifndef ETHERTYPE_VINES_ECHO
102 #define ETHERTYPE_VINES_ECHO 0x0BAF
105 #ifndef ETHERTYPE_TRAIN
106 #define ETHERTYPE_TRAIN 0x1984 /* Created by Microsoft Network Monitor as a summary packet */
109 #ifndef ETHERTYPE_CGMP
110 #define ETHERTYPE_CGMP 0x2001
113 #ifndef ETHERTYPE_GIGAMON
114 #define ETHERTYPE_GIGAMON 0x22E5 /* Gigamon Header */
117 #ifndef ETHERTYPE_MSRP
118 #define ETHERTYPE_MSRP 0x22EA
121 #ifndef ETHERTYPE_AVBTP
122 #define ETHERTYPE_AVBTP 0x22F0
125 #ifndef ETHERTYPE_ROHC /* ROHC (Robust Header Compression) is an IP header compression protocol specified in */
126 #define ETHERTYPE_ROHC 0x22F1 /* IETF RFC 3095 "RObust Header Compression (ROHC): Framework and four profiles: RTP, */
127 #endif /* UDP, ESP, and uncompressed". The specification is available at
128 * http://www.ietf.org/rfc/rfc3095.txt.
131 #ifndef ETHERTYPE_TRILL /* Internet Engineering Task Force */
132 #define ETHERTYPE_TRILL 0x22F3
135 #ifndef ETHERTYPE_L2ISIS /* Internet Engineering Task Force */
136 #define ETHERTYPE_L2ISIS 0x22F4
139 #ifndef ETHERTYPE_CENTRINO_PROMISC
140 #define ETHERTYPE_CENTRINO_PROMISC 0x2452 /* Intel Centrino promiscuous packets */
143 #ifndef ETHERTYPE_3C_NBP_DGRAM
144 #define ETHERTYPE_3C_NBP_DGRAM 0x3C07
147 #ifndef ETHERTYPE_EPL_V1
148 #define ETHERTYPE_EPL_V1 0x3E3F
151 #ifndef ETHERTYPE_DEC
152 #define ETHERTYPE_DEC 0x6000
155 #ifndef ETHERTYPE_DNA_DL
156 #define ETHERTYPE_DNA_DL 0x6001
159 #ifndef ETHERTYPE_DNA_RC
160 #define ETHERTYPE_DNA_RC 0x6002
163 #ifndef ETHERTYPE_DNA_RT
164 #define ETHERTYPE_DNA_RT 0x6003
167 #ifndef ETHERTYPE_LAT
168 #define ETHERTYPE_LAT 0x6004
171 #ifndef ETHERTYPE_DEC_DIAG
172 #define ETHERTYPE_DEC_DIAG 0x6005
175 #ifndef ETHERTYPE_DEC_CUST
176 #define ETHERTYPE_DEC_CUST 0x6006
179 #ifndef ETHERTYPE_DEC_SCA
180 #define ETHERTYPE_DEC_SCA 0x6007
183 #ifndef ETHERTYPE_ETHBRIDGE
184 #define ETHERTYPE_ETHBRIDGE 0x6558 /* transparent Ethernet bridging [RFC1701]*/
187 #ifndef ETHERTYPE_RAW_FR
188 #define ETHERTYPE_RAW_FR 0x6559 /* Raw Frame Relay [RFC1701] */
191 #ifndef ETHERTYPE_REVARP
192 #define ETHERTYPE_REVARP 0x8035
195 #ifndef ETHERTYPE_DEC_LB
196 #define ETHERTYPE_DEC_LB 0x8038
199 #ifndef ETHERTYPE_DEC_LAST
200 #define ETHERTYPE_DEC_LAST 0x8041 /* DEC Local Area Systems Transport */
203 #ifndef ETHERTYPE_ATALK
204 #define ETHERTYPE_ATALK 0x809B
207 #ifndef ETHERTYPE_SNA
208 #define ETHERTYPE_SNA 0x80D5
211 #ifndef ETHERTYPE_DLR
212 #define ETHERTYPE_DLR 0x80E1 /* Allen-Bradley Company, Inc., EtherNet/IP Device Level Ring */
215 #ifndef ETHERTYPE_AARP
216 #define ETHERTYPE_AARP 0x80F3
219 #ifndef ETHERTYPE_VLAN
220 #define ETHERTYPE_VLAN 0x8100 /* 802.1Q Virtual LAN */
223 #ifndef ETHERTYPE_NSRP
224 #define ETHERTYPE_NSRP 0x8133
227 #ifndef ETHERTYPE_IPX
228 #define ETHERTYPE_IPX 0x8137
231 #ifndef ETHERTYPE_SNMP
232 #define ETHERTYPE_SNMP 0x814C /* SNMP over Ethernet, RFC 1089 */
235 #ifndef ETHERTYPE_WCP
236 #define ETHERTYPE_WCP 0x80FF /* Wellfleet Compression Protocol */
239 #ifndef ETHERTYPE_STP
240 #define ETHERTYPE_STP 0x8181 /* STP, HIPPI-ST */
243 #ifndef ETHERTYPE_ISMP
244 #define ETHERTYPE_ISMP 0x81FD /* Cabletron Interswitch Message Protocol */
247 #ifndef ETHERTYPE_ISMP_TBFLOOD
248 #define ETHERTYPE_ISMP_TBFLOOD 0x81FF /* Cabletron Interswitch Message Protocol */
251 #ifndef ETHERTYPE_QNX_QNET6
252 #define ETHERTYPE_QNX_QNET6 0x8204 /* 0x8204 QNX QNET/LWL4 for QNX6 OS; 0x8203 for QNX4 OS QNET */
255 #ifndef ETHERTYPE_IPv6
256 #define ETHERTYPE_IPv6 0x86DD
259 #ifndef ETHERTYPE_WLCCP
260 #define ETHERTYPE_WLCCP 0x872D /* Cisco Wireless Lan Context Control Protocol */
263 #ifndef ETHERTYPE_MINT
264 #define ETHERTYPE_MINT 0x8783 /* Motorola Media Indepentent Network Transport */
267 #ifndef ETHERTYPE_MAC_CONTROL
268 #define ETHERTYPE_MAC_CONTROL 0x8808
271 #ifndef ETHERTYPE_SLOW_PROTOCOLS
272 #define ETHERTYPE_SLOW_PROTOCOLS 0x8809
275 #ifndef ETHERTYPE_PPP
276 #define ETHERTYPE_PPP 0x880B /* no, this is not PPPoE */
279 #ifndef ETHERTYPE_COBRANET
280 #define ETHERTYPE_COBRANET 0x8819 /* Cirrus cobranet */
283 #ifndef ETHERTYPE_MPLS
284 #define ETHERTYPE_MPLS 0x8847 /* MPLS unicast packet */
287 #ifndef ETHERTYPE_MPLS_MULTI
288 #define ETHERTYPE_MPLS_MULTI 0x8848 /* MPLS multicast packet */
291 #ifndef ETHERTYPE_FOUNDRY
292 #define ETHERTYPE_FOUNDRY 0x885A /* Some Foundry proprietary protocol */
295 #ifndef ETHERTYPE_PPPOED
296 #define ETHERTYPE_PPPOED 0x8863 /* PPPoE Discovery Protocol */
299 #ifndef ETHERTYPE_PPPOES
300 #define ETHERTYPE_PPPOES 0x8864 /* PPPoE Session Protocol */
303 #ifndef ETHERTYPE_INTEL_ANS
304 #define ETHERTYPE_INTEL_ANS 0x886D /* Intel ANS (NIC teaming) http://www.intel.com/support/network/adapter/ans/probes.htm */
307 #ifndef ETHERTYPE_MS_NLB_HEARTBEAT
308 #define ETHERTYPE_MS_NLB_HEARTBEAT 0x886F /* MS Network Load Balancing heartbeat http://www.microsoft.com/technet/treeview/default.asp?url=/TechNet/prodtechnol/windows2000serv/deploy/confeat/nlbovw.asp */
311 #ifndef ETHERTYPE_JUMBO_LLC
312 #define ETHERTYPE_JUMBO_LLC 0x8870 /* 802.2 jumbo frames http://tools.ietf.org/html/draft-ietf-isis-ext-eth */
315 #ifndef ETHERTYPE_HOMEPLUG
316 #define ETHERTYPE_HOMEPLUG 0x887B /* IEEE assigned Ethertype */
319 #ifndef ETHERTYPE_CDMA2000_A10_UBS
320 #define ETHERTYPE_CDMA2000_A10_UBS 0x8881 /* the byte stream protocol that is used for IP based micro-mobility bearer interfaces (A10) in CDMA2000(R)-based wireless networks */
323 #ifndef ETHERTYPE_ATMOE
324 #define ETHERTYPE_ATMOE 0x8884 /* A simple ATM over Ethernet encapsulation */
327 #ifndef ETHERTYPE_EAPOL
328 #define ETHERTYPE_EAPOL 0x888E /* 802.1x Authentication */
331 #ifndef ETHERTYPE_PROFINET
332 #define ETHERTYPE_PROFINET 0x8892 /* PROFIBUS PROFINET protocol */
335 #ifndef ETHERTYPE_HYPERSCSI
336 #define ETHERTYPE_HYPERSCSI 0x889A /* HyperSCSI */
339 #ifndef ETHERTYPE_CSM_ENCAPS
340 #define ETHERTYPE_CSM_ENCAPS 0x889B /* Mindspeed Technologies www.mindspeed.com */
343 #ifndef ETHERTYPE_TELKONET
344 #define ETHERTYPE_TELKONET 0x88A1 /* Telkonet powerline ethernet */
347 #ifndef ETHERTYPE_AOE
348 #define ETHERTYPE_AOE 0x88A2
351 #ifndef ETHERTYPE_ECATF
352 #define ETHERTYPE_ECATF 0x88A4 /* Ethernet type for EtherCAT frames */
355 #ifndef ETHERTYPE_IEEE_802_1AD
356 #define ETHERTYPE_IEEE_802_1AD 0x88A8 /* IEEE 802.1ad Provider Bridge, Q-in-Q */
359 #ifndef ETHERTYPE_EPL_V2
360 #define ETHERTYPE_EPL_V2 0x88AB /* communication profile for Real-Time Ethernet */
363 #ifndef ETHERTYPE_XIMETA
364 #define ETHERTYPE_XIMETA 0x88AD /* XiMeta Technology Americas Inc. proprietary communication protocol */
367 #ifndef ETHERTYPE_BRDWALK
368 #define ETHERTYPE_BRDWALK 0x88AE
371 #ifndef ETHERTYPE_WAI
372 #define ETHERTYPE_WAI 0x88B4 /* Instant Wireless Network Communications, Co. Ltd. */
373 #endif /* WAI is a new authentication protocol that
374 will be used to access authentication in
375 IP based networks. This protocol establishes
376 a logic channel between a station and access
377 equipment by using an EtherType Field to
378 accomplish authentication. */
381 #ifndef ETHERTYPE_IEEE802_OUI_EXTENDED
382 #define ETHERTYPE_IEEE802_OUI_EXTENDED 0x88B7 /* IEEE 802a OUI Extended Ethertype */
385 #ifndef ETHERTYPE_IEC61850_GOOSE
386 #define ETHERTYPE_IEC61850_GOOSE 0x88B8 /* IEC 61850 is a global standard for the use in utility communication,*/
387 #endif /* in particular for the information exchange between IED's in a power */
388 /* transmission or distribution substation. */
389 /* There are three types of application services
390 that use a specific EtherType. GOOSE uses
391 EtherType field 88b8, GSE management services
392 uses EtherType field 88b9. These two protocols
393 are defined in IEC 61850-8-1. SV (Sampled
394 Value Transmission) uses EtherType field
395 88ba; the protocol is defined in IEC 61850-9-1
396 and IEC 61850-9-2. */
398 #ifndef ETHERTYPE_IEC61850_GSE
399 #define ETHERTYPE_IEC61850_GSE 0x88B9 /* IEC 61850 is a global standard for the use in utility communication,*/
400 #endif /* in particular for the information exchange between IED's in a power */
402 #ifndef ETHERTYPE_IEC61850_SV
403 #define ETHERTYPE_IEC61850_SV 0x88BA /* IEC 61850 is a global standard for the use in utility communication,*/
404 #endif /* in particular for the information exchange between IED's in a power */
406 #ifndef ETHERTYPE_TIPC
407 #define ETHERTYPE_TIPC 0x88CA /* TIPC (Transparent Inter Process Communication, */
408 #endif /* http://tipc.sourceforge.net/) Ericsson Research Canada Inc */
410 #ifndef ETHERTYPE_RSN_PREAUTH
411 #define ETHERTYPE_RSN_PREAUTH 0x88C7 /* 802.11i Pre-Authentication */
414 #ifndef ETHERTYPE_LLDP
415 #define ETHERTYPE_LLDP 0x88CC /* IEEE 802.1AB Link Layer Discovery Protocol (LLDP) */
418 #ifndef ETHERTYPE_SERCOS
419 #define ETHERTYPE_SERCOS 0x88CD /* SERCOS interface real-time protocol for motion control */
422 #ifndef ETHERTYPE_3GPP2
423 #define ETHERTYPE_3GPP2 0x88D2 /* This will be used in a revision of the Interoperabi */
424 #endif /* Specification (IOS) for cdma2000 Access Network Interfaces (document numbers A.S0011-B */
425 /* through A.S0017-B v1.0). This document already uses the Ether type 8881 */
427 #ifndef ETHERTYPE_CESOETH
428 #define ETHERTYPE_CESOETH 0x88D8 /* Circuit Emulation Services over Ethernet (MEF 8) */
431 #ifndef ETHERTYPE_LLTD
432 #define ETHERTYPE_LLTD 0x88D9 /* Link Layer Topology Discovery (LLTD) */
435 #ifndef ETHERTYPE_WSMP /* Wireless Access in a Vehicle Environment */
436 #define ETHERTYPE_WSMP 0x88DC /* (WAVE) Short Message Protocol (WSM) as defined */
437 #endif /* in IEEE P1609.3. */
439 #ifndef ETHERTYPE_VMLAB
440 #define ETHERTYPE_VMLAB 0x88DE /* VMware LabManager (used to be Akimbi Systems) */
443 #ifndef ETHERTYPE_HOMEPLUG_AV
444 #define ETHERTYPE_HOMEPLUG_AV 0x88E1 /* HomePlug AV */
447 #ifndef ETHERTYPE_MRP
448 #define ETHERTYPE_MRP 0x88E3 /* IEC 61158-6-10 Media Redundancy Protocol (MRP) */
451 #ifndef ETHERTYPE_MACSEC
452 #define ETHERTYPE_MACSEC 0x88E5 /* IEEE 802.1ae Media access control security (MACSEC) */
455 #ifndef ETHERTYPE_IEEE_802_1AH
456 #define ETHERTYPE_IEEE_802_1AH 0x88E7 /* IEEE 802.1ah Provider Backbone Bridge Mac-in-Mac */
459 #ifndef ETHERTYPE_ELMI
460 #define ETHERTYPE_ELMI 0x88EE /* Ethernet Local Management Interface (E-LMI) (MEF16) */
463 #ifndef ETHERTYPE_MVRP
464 #define ETHERTYPE_MVRP 0x88F5 /* IEEE 802.1ak Multiple VLAN Registration Protocol */
467 #ifndef ETHERTYPE_MMRP
468 #define ETHERTYPE_MMRP 0x88F6 /* IEEE 802.1ak Multiple MAC Registration Protocol */
471 #ifndef ETHERTYPE_PTP
472 #define ETHERTYPE_PTP 0x88F7 /* IEEE1588v2 (PTPv2) over Ethernet */
473 #endif /* in particular for the information exchange between IED's in a power */
474 /* transmission or distribution substation. */
475 /* There are three types of application services */
477 #ifndef ETHERTYPE_NCSI
478 #define ETHERTYPE_NCSI 0x88F8 /* DMTF NC-SI: Network Controller Sideband Interface */
481 #ifndef ETHERTYPE_PRP
482 #define ETHERTYPE_PRP 0x88FB /* Parallel Redundancy Protocol (IEC62439 Part 3) */
485 #ifndef ETHERTYPE_FLIP
486 #define ETHERTYPE_FLIP 0x8901 /* Nokia Siemens Networks Flow Layer Internal Protocol */
489 #ifndef ETHERTYPE_CFM
490 #define ETHERTYPE_CFM 0x8902 /* IEEE 802.1ag Connectivity Fault Management(CFM) protocol */
493 #ifndef ETHERTYPE_DCE
494 #define ETHERTYPE_DCE 0x8903 /* Cisco Systems Inc DCE */
497 #ifndef ETHERTYPE_FCOE
498 #define ETHERTYPE_FCOE 0x8906 /* Fibre Channel over Ethernet */
501 #ifndef ETHERTYPE_CMD
502 #define ETHERTYPE_CMD 0x8909 /* Cisco Systems Inc - Cisco MetaData */
505 #ifndef ETHERTYPE_IEEE80211_DATA_ENCAP
506 #define ETHERTYPE_IEEE80211_DATA_ENCAP 0x890d /* IEEE 802.11 data encapsulation */
509 #ifndef ETHERTYPE_LINX
510 #define ETHERTYPE_LINX 0x8911 /* ENEA LINX IPC protocol over Ethernet */
513 #ifndef ETHERTYPE_FIP
514 #define ETHERTYPE_FIP 0x8914 /* FCoE Initialization Protocol */
517 #ifndef ETHERTYPE_MIH
518 #define ETHERTYPE_MIH 0x8917 /* Media Independent Handover Protocol */
521 #ifndef ETHERTYPE_TTE_PCF
522 #define ETHERTYPE_TTE_PCF 0x891D /* TTEthernet Protocol Control Frame */
525 #ifndef ETHERTYPE_HSR
526 #define ETHERTYPE_HSR 0x892F /* High-availability Seamless Redundancy (IEC62439 Part 3) */
529 #ifndef ETHERTYPE_LOOP
530 #define ETHERTYPE_LOOP 0x9000 /* used for layer 2 testing (do i see my own frames on the wire) */
533 #ifndef ETHERTYPE_RTMAC
534 #define ETHERTYPE_RTMAC 0x9021 /* RTnet: Real-Time Media Access Control */
537 #ifndef ETHERTYPE_RTCFG
538 #define ETHERTYPE_RTCFG 0x9022 /* RTnet: Real-Time Configuration Protocol */
541 #ifndef ETHERTYPE_LLT
542 #define ETHERTYPE_LLT 0xCAFE /* Veritas Low Latency Transport (not officially registered) */
545 #ifndef ETHERTYPE_TDMOE
546 #define ETHERTYPE_TDMOE 0xD00D /* Digium TDMoE packets (not officially registered) */
549 #ifndef ETHERTYPE_FCFT
550 #define ETHERTYPE_FCFT 0xFCFC /* used to transport FC frames+MDS hdr internal to Cisco's MDS switch */
553 #ifndef ETHERTYPE_ROCE
554 #define ETHERTYPE_ROCE 0x8915 /* Infiniband RDMA over Converged Ethernet */
557 WS_DLL_PUBLIC const value_string etype_vals[];
561 #endif /* __cplusplus */
563 #endif /* __ETYPES_H__ */