Fix document creation under Windows, add ethereal-filter.html to the NSIS
[obnox/wireshark/wip.git] / etypes.h
1 /* etypes.h
2  * Defines ethernet packet types, similar to tcpdump's ethertype.h
3  *
4  * $Id: etypes.h,v 1.34 2003/06/11 09:17:00 guy Exp $
5  *
6  * Ethereal - Network traffic analyzer
7  * By Gerald Combs <gerald@ethereal.com>
8  * Copyright 1998 Gerald Combs
9  *
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License
12  * as published by the Free Software Foundation; either version 2
13  * of the License, or (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23  */
24
25 #ifndef __ETYPES_H__
26 #define __ETYPES_H__
27
28 /*
29  * Maximum length of an IEEE 802.3 frame; Ethernet type/length values
30  * greater than it are types, Ethernet type/length values less than or
31  * equal to it are lengths.
32  */
33 #define IEEE_802_3_MAX_LEN 1500
34
35 #ifndef ETHERTYPE_UNK
36 #define ETHERTYPE_UNK           0x0000
37 #endif
38
39 /* Sources:
40  * http://www.isi.edu/in-notes/iana/assignments/ethernet-numbers
41  * TCP/IP Illustrated, Volume 1
42  * RFCs 894, 1042, 826
43  * tcpdump's ethertype.h
44  * http://www.cavebear.com/CaveBear/Ethernet/
45  */
46
47 #ifndef ETHERTYPE_VINES_IP
48 #define ETHERTYPE_VINES_IP      0x0bad
49 #endif
50
51 #ifndef ETHERTYPE_VINES_ECHO
52 #define ETHERTYPE_VINES_ECHO    0x0baf
53 #endif
54
55 #ifndef ETHERTYPE_TRAIN
56 /*
57  * Created by Microsoft Network Monitor as a summary packet.
58  */
59 #define ETHERTYPE_TRAIN         0x1984
60 #endif
61
62 #ifndef ETHERTYPE_CGMP
63 #define ETHERTYPE_CGMP          0x2001
64 #endif
65
66 #ifndef ETHERTYPE_3C_NBP_DGRAM
67 #define ETHERTYPE_3C_NBP_DGRAM  0x3c07
68 #endif
69
70 #ifndef ETHERTYPE_IP
71 #define ETHERTYPE_IP            0x0800
72 #endif
73
74 #ifndef ETHERTYPE_X25L3
75 #define ETHERTYPE_X25L3         0x0805
76 #endif
77
78 #ifndef ETHERTYPE_ARP
79 #define ETHERTYPE_ARP           0x0806
80 #endif
81
82 #ifndef ETHERTYPE_DEC
83 #define ETHERTYPE_DEC           0x6000
84 #endif
85
86 #ifndef ETHERTYPE_DNA_DL
87 #define ETHERTYPE_DNA_DL        0x6001
88 #endif
89
90 #ifndef ETHERTYPE_DNA_RC
91 #define ETHERTYPE_DNA_RC        0x6002
92 #endif
93
94 #ifndef ETHERTYPE_DNA_RT
95 #define ETHERTYPE_DNA_RT        0x6003
96 #endif
97
98 #ifndef ETHERTYPE_LAT
99 #define ETHERTYPE_LAT           0x6004
100 #endif
101
102 #ifndef ETHERTYPE_DEC_DIAG
103 #define ETHERTYPE_DEC_DIAG      0x6005
104 #endif
105
106 #ifndef ETHERTYPE_DEC_CUST
107 #define ETHERTYPE_DEC_CUST      0x6006
108 #endif
109
110 #ifndef ETHERTYPE_DEC_SCA
111 #define ETHERTYPE_DEC_SCA       0x6007
112 #endif
113
114 #ifndef ETHERTYPE_ETHBRIDGE
115 #define ETHERTYPE_ETHBRIDGE     0x6558  /* transparent Ethernet bridging */
116 #endif
117
118 #ifndef ETHERTYPE_REVARP
119 #define ETHERTYPE_REVARP        0x8035
120 #endif
121
122 #ifndef ETHERTYPE_DEC_LB
123 #define ETHERTYPE_DEC_LB        0x8038
124 #endif
125
126 #ifndef ETHERTYPE_ATALK
127 #define ETHERTYPE_ATALK         0x809b
128 #endif
129
130 #ifndef ETHERTYPE_SNA
131 #define ETHERTYPE_SNA           0x80d5
132 #endif
133
134 #ifndef ETHERTYPE_AARP
135 #define ETHERTYPE_AARP          0x80f3
136 #endif
137
138 #ifndef ETHERTYPE_IPX
139 #define ETHERTYPE_IPX           0x8137
140 #endif
141
142 #ifndef ETHERTYPE_VLAN
143 #define ETHERTYPE_VLAN          0x8100  /* 802.1Q Virtual LAN */
144 #endif
145
146 #ifndef ETHERTYPE_SNMP
147 #define ETHERTYPE_SNMP          0x814c  /* SNMP over Ethernet, RFC 1089 */
148 #endif
149
150 #ifndef ETHERTYPE_WCP
151 #define ETHERTYPE_WCP           0x80ff  /* Wellfleet Compression Protocol */
152 #endif
153
154 #ifndef ETHERTYPE_IPv6
155 #define ETHERTYPE_IPv6          0x86dd
156 #endif
157
158 #ifndef ETHERTYPE_SLOW_PROTOCOLS
159 #define ETHERTYPE_SLOW_PROTOCOLS                0x8809
160 #endif
161
162 #ifndef ETHERTYPE_PPP
163 #define ETHERTYPE_PPP           0x880b  /* no, this is not PPPoE */
164 #endif
165
166 #ifndef ETHERTYPE_MPLS
167 #define ETHERTYPE_MPLS          0x8847  /* MPLS unicast packet */
168 #endif
169
170 #ifndef ETHERTYPE_MPLS_MULTI
171 #define ETHERTYPE_MPLS_MULTI    0x8848  /* MPLS multicast packet */
172 #endif
173
174 #ifndef ETHERTYPE_PPPOED
175 #define ETHERTYPE_PPPOED        0x8863  /* PPPoE Discovery Protocol */
176 #endif
177
178 #ifndef ETHERTYPE_PPPOES
179 #define ETHERTYPE_PPPOES        0x8864  /* PPPoE Session Protocol */
180 #endif
181
182 #ifndef ETHERTYPE_INTEL_ANS
183 #define ETHERTYPE_INTEL_ANS     0x886d  /* Intel ANS (NIC teaming) http://www.intel.com/support/network/adapter/ans/probes.htm */
184 #endif
185
186 #ifndef ETHERTYPE_MS_NLB_HEARTBEAT
187 #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 */
188 #endif
189
190 #ifndef ETHERTYPE_EAPOL
191 #define ETHERTYPE_EAPOL         0x888e  /* 802.1x Authentication */
192 #endif
193
194 #ifndef ETHERTYPE_HYPERSCSI
195 #define ETHERTYPE_HYPERSCSI     0x889A  /* HyperSCSI */
196 #endif
197
198 #ifndef ETHERTYPE_BRDWALK
199 #define ETHERTYPE_BRDWALK       0x88AE
200 #endif
201
202 #ifndef ETHERTYPE_LOOP
203 #define ETHERTYPE_LOOP          0x9000  /* used for layer 2 testing (do i see my own frames on the wire) */
204 #endif
205
206 #ifndef ETHERTYPE_RTNET
207 #define ETHERTYPE_RTNET         0x9021  /* RTNET protocol*/
208 #endif
209
210 #ifndef ETHERTYPE_FCFT
211 /* type used to transport FC frames+MDS hdr internal to Cisco's MDS switch */
212 #define ETHERTYPE_FCFT          0xFCFC
213 #endif
214
215 extern const value_string etype_vals[];
216
217 #endif /* etypes.h */