Indention of code
[netsniff-ng.git] / src / include / ether_types.h
blob9f598633c17e31c84c3121a16d63ae756eeff533
1 /*
2 * Copyright (C) 2009, 2010 Daniel Borkmann <daniel@netsniff-ng.org> and
3 * Emmanuel Roullit <emmanuel@netsniff-ng.org>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
20 #ifndef _NET_ETHER_TYPES_H_
21 #define _NET_ETHER_TYPES_H_
23 #include <stdint.h>
25 struct ether_type {
26 uintptr_t id;
27 char *type;
30 /* Partly taken from linux/if_ether.h and some other places on the net. */
31 static const struct ether_type ether_types[] = {
32 {0x0000, "IEEE802.3 Length Field"},
33 {0x0060, "Ethernet Loopback packet"},
34 {0x0101, "Experimental"},
35 {0x0200, "Xerox PUP packet"},
36 {0x0201, "Xerox PUP Addr Trans packet"},
37 {0x0400, "Nixdorf (conflicts with 802.3 Length Field)"},
38 {0x05f8, "Ethernet II"},
39 {0x0600, "XEROX NS IDP"},
40 {0x0601, "XNS Address Translation (3Mb only)"},
41 {0x0660, "DLOG"},
42 {0x0661, "DLOG"},
43 {0x0800, "IPv4"},
44 {0x0801, "X.75 Internet"},
45 {0x0802, "NBS Internet"},
46 {0x0803, "ECMA Internet"},
47 {0x0804, "Chaosnet"},
48 {0x0805, "CCITT X.25"},
49 {0x0806, "ARP"},
50 {0x0807, "XNS Compatability"},
51 {0x0808, "Frame Relay ARP"},
52 {0x081C, "Symbolics Private"},
53 {0x0888, "Xyplex"},
54 {0x08FF, "G8BPQ AX.25 Ethernet Packet"},
55 {0x0900, "Ungermann-Bass net debugger"},
56 {0x0A00, "Xerox IEEE802.3 PUP packet"},
57 {0x0A01, "Xerox IEEE802.3 PUP Addr Trans packet"},
58 {0x0BAD, "Banyan VINES"},
59 {0x0BAE, "VINES Loopback"},
60 {0x0BAF, "VINES Echo"},
61 {0x1000, "Berkeley Trailer nego"},
62 {0x1001, "Berkeley Trailer encapsulation for IP"},
63 {0x1002, "Berkeley Trailer encapsulation for IP"},
64 {0x1003, "Berkeley Trailer encapsulation for IP"},
65 {0x1004, "Berkeley Trailer encapsulation for IP"},
66 {0x1005, "Berkeley Trailer encapsulation for IP"},
67 {0x1006, "Berkeley Trailer encapsulation for IP"},
68 {0x1007, "Berkeley Trailer encapsulation for IP"},
69 {0x1008, "Berkeley Trailer encapsulation for IP"},
70 {0x1009, "Berkeley Trailer encapsulation for IP"},
71 {0x100A, "Berkeley Trailer encapsulation for IP"},
72 {0x100B, "Berkeley Trailer encapsulation for IP"},
73 {0x100C, "Berkeley Trailer encapsulation for IP"},
74 {0x100D, "Berkeley Trailer encapsulation for IP"},
75 {0x100E, "Berkeley Trailer encapsulation for IP"},
76 {0x100F, "Berkeley Trailer encapsulation for IP"},
77 {0x1234, "DCA - Multicast"},
78 {0x1600, "Valid Systems"},
79 {0x1989,
80 "Artificial Horizons (\"Aviator\" dogfight simulator [on Sun])"},
81 {0x1995, "Datapoint Corporation (RCL lan protocol)"},
82 {0x3C00, "3Com NBP virtual circuit datagram (like XNS SPP)"},
83 {0x3C01, "3Com NBP System control datagram"},
84 {0x3C02, "3Com NBP Connect request (virtual cct)"},
85 {0x3C03, "3Com NBP Connect repsonse"},
86 {0x3C04, "3Com NBP Connect complete"},
87 {0x3C05, "3Com NBP Close request (virtual cct)"},
88 {0x3C06, "3Com NBP Close response"},
89 {0x3C07, "3Com NBP Datagram (like XNS IDP)"},
90 {0x3C08, "3Com NBP Datagram broadcast"},
91 {0x3C09, "3Com NBP Claim NetBIOS name"},
92 {0x3C0A, "3Com NBP Delete Netbios name"},
93 {0x3C0B, "3Com NBP Remote adaptor status"},
94 {0x3C0C, "3Com NBP Remote adaptor response"},
95 {0x3C0D, "3Com NBP Reset"},
96 {0x4242, "PCS Basic Block Protocol"},
97 {0x424C, "Information Modes Little Big LAN diagnostic"},
98 {0x4321, "THD - Diddle"},
99 {0x4C42, "Information Modes Little Big LAN"},
100 {0x5208, "BBN Simnet"},
101 {0x6000, "DEC Assigned proto"},
102 {0x6001, "DEC DNA Dump/Load"},
103 {0x6002, "DEC DNA Remote Console"},
104 {0x6003, "DEC DNA Routing"},
105 {0x6004, "DEC LAT"},
106 {0x6005, "DEC Diagnostics"},
107 {0x6006, "DEC Customer use"},
108 {0x6007, "DEC Systems Comms Arch"},
109 {0x6008, "DEC Unassigned"},
110 {0x6009, "DEC MUMPS"},
111 {0x6010, "3Com Corporation"},
112 {0x6011, "3Com Corporation"},
113 {0x6012, "3Com Corporation"},
114 {0x6013, "3Com Corporation"},
115 {0x6014, "3Com Corporation"},
116 {0x6558, "Trans Ether Bridging"},
117 {0x6559, "Raw Frame Relay"},
118 {0x7000, "Ungermann-Bass download"},
119 {0x7001, "Ungermann-Bass NIUs"},
120 {0x7002, "Ungermann-Bass dia/loop"},
121 {0x7003, "Ungermann-Bass ??? (NMC to/from UB Bridge)"},
122 {0x7005, "Ungermann-Bass Bridge Spanning Tree"},
123 {0x7007, "OS/9 Microware"},
124 {0x7009, "OS/9 Net?"},
125 {0x7020, "LRT (England) (now Sintrom)"},
126 {0x7021, "LRT (England) (now Sintrom)"},
127 {0x7022, "LRT (England) (now Sintrom)"},
128 {0x7023, "LRT (England) (now Sintrom)"},
129 {0x7024, "LRT (England) (now Sintrom)"},
130 {0x7025, "LRT (England) (now Sintrom)"},
131 {0x7026, "LRT (England) (now Sintrom)"},
132 {0x7027, "LRT (England) (now Sintrom)"},
133 {0x7028, "LRT (England) (now Sintrom)"},
134 {0x7029, "LRT (England) (now Sintrom)"},
135 {0x7030, "Proteon / Racal-Interlan"},
136 {0x7031, "Prime NTS (Network Terminal Service)"},
137 {0x7034, "Cabletron"},
138 {0x8003, "Cronus VLN"},
139 {0x8004, "Cronus Direct"},
140 {0x8005, "HP Probe"},
141 {0x8006, "Nestar"},
142 {0x8008, "AT&T"},
143 {0x8010, "Excelan"},
144 {0x8013, "SGI diagnostics"},
145 {0x8014, "SGI network games"},
146 {0x8015, "SGI reserved"},
147 {0x8016, "SGI bounce server"},
148 {0x8019, "Apollo Domain"},
149 {0x802E, "Tymshare"},
150 {0x802F, "Tigan, Inc."},
151 {0x8035, "RARP"},
152 {0x8036, "Aeonic Systems"},
153 {0x8037, "IPX (Novell Netware?)"},
154 {0x8038, "DEC LanBridge Management"},
155 {0x8039, "DEC DSM/DDP"},
156 {0x803A, "DEC Argonaut Console"},
157 {0x803B, "DEC VAXELN"},
158 {0x803C, "DEC DNS Naming Service"},
159 {0x803D, "DEC Ethernet CSMA/CD Encryption Protocol"},
160 {0x803E, "DEC Distributed Time Service"},
161 {0x803F, "DEC LAN Traffic Monitor Protocol"},
162 {0x8040, "8040 DEC PATHWORKS DECnet NETBIOS Emulation"},
163 {0x8041, "DEC Local Area System Transport"},
164 {0x8042, "DEC unassigned"},
165 {0x8044, "Planning Research Corp."},
166 {0x8046, "AT&T"},
167 {0x8047, "AT&T"},
168 {0x8048,
169 "DEC Availability Manager for Distributed Systems DECamds (?)"},
170 {0x8049, "ExperData"},
171 {0x805B,
172 "VMTP (Versatile Message Transaction Protocol, RFC-1045) (Stanford)"},
173 {0x805C, "Stanford V Kernel, version 6.0"},
174 {0x805D, "Evans & Sutherland"},
175 {0x8060, "Little Machines"},
176 {0x8062, "Counterpoint Computers"},
177 {0x8065, "Univ. of Mass. @ Amherst"},
178 {0x8066, "Univ. of Mass. @ Amherst"},
179 {0x8067, "Veeco Integrated Auto."},
180 {0x8068, "General Dynamics"},
181 {0x8069, "AT&T"},
182 {0x806A, "Autophon"},
183 {0x806C, "ComDesign"},
184 {0x806D, "Computgraphic Corp."},
185 {0x806E, "Landmark Graphics Corp."},
186 {0x807A, "Matra"},
187 {0x807B, "Dansk Data Elektronik"},
188 {0x807C, "Merit Internodal"},
189 {0x807D, "Vitalink Communications"},
190 {0x8080, "Vitalink TransLAN III"},
191 {0x8081, "Counterpoint Computers"},
192 {0x809B, "Appletalk DDP"},
193 {0x809C, "Datability"},
194 {0x809F, "Spider Systems Ltd."},
195 {0x80A3, "Nixdorf Computers"},
196 {0x80A4, "Siemens Gammasonics Inc."},
197 {0x80C0, "DCA Data Exchange Cluster"},
198 {0x80C4, "Banyan Systems"},
199 {0x80C5, "Banyan Systems"},
200 {0x80C6, "Pacer Software"},
201 {0x80C7, "Applitek Corporation"},
202 {0x80C8, "Intergraph Corporation"},
203 {0x80CD, "Harris Corporation"},
204 {0x80CF, "Taylor Instrument"},
205 {0x80D3, "Rosemount Corporation"},
206 {0x80D5, "IBM SNA Service on Ether"},
207 {0x80DD, "Varian Associates"},
208 {0x80DE, "Integrated Solutions TRFS"},
209 {0x80E0, "Allen-Bradley"},
210 {0x80E4, "Datability"},
211 {0x80F2, "Retix"},
212 {0x80F3, "AppleTalk Address Resolution Protocol (AARP)"},
213 {0x80F4, "Kinetics"},
214 {0x80F7, "Apollo Computer"},
215 {0x80FF, "Wellfleet Communications"},
216 {0x8100, "802.1Q VLAN Extended Header"},
217 {0x8101, "Wellfleet Communications"},
218 {0x8102, "Wellfleet; BOFL (Breath OF Life) pkts [every 5-10 secs.]"},
219 {0x8103, "Wellfleet Communications"},
220 {0x8107, "Symbolics Private"},
221 {0x812B, "Talaris"},
222 {0x8130, "Hayes Microcomputers"},
223 {0x8131, "VG Laboratory Systems"},
224 {0x8132, "Bridge Communications"},
225 {0x8137, "IPX over DIX"},
226 {0x8138, "Novell, Inc."},
227 {0x8139, "KTI"},
228 {0x813F, "M/MUMPS data sharing"},
229 {0x8145, "Vrije Universiteit (NL), Amoeba 4 RPC (obsolete)"},
230 {0x8146,
231 "Vrije Universiteit (NL), FLIP (Fast Local Internet Protocol)"},
232 {0x8147, "Vrije Universiteit (NL) [reserved]"},
233 {0x8148, "Logicraft"},
234 {0x8149, "Network Computing Devices"},
235 {0x814A, "Alpha Micro"},
236 {0x814C, "SNMP over Ethernet (see RFC1089)"},
237 {0x814D, "BIIN"},
238 {0x814E, "BIIN"},
239 {0x814F, "Technically Elite Concept"},
240 {0x8150, "Rational Corp"},
241 {0x8151, "Qualcomm"},
242 {0x815C, "Computer Protocol Pty Ltd"},
243 {0x8164, "Charles River Data System"},
244 {0x817D, "XTP"},
245 {0x817E, "SGI/Time Warner prop."},
246 {0x8180, "HIPPI-FP encapsulation"},
247 {0x8181, "Spanning Tree Protocol (STP), HIPPI-ST"},
248 {0x8182, "Reserved for HIPPI-6400"},
249 {0x8183, "Reserved for HIPPI-6400"},
250 {0x8184, "Silicon Graphics prop."},
251 {0x818D, "Motorola Computer"},
252 {0x8191, "PowerLAN NetBIOS/NetBEUI (PC)"},
253 {0x819A, "Qualcomm"},
254 {0x81A4, "ARAI Bunkichi"},
255 {0x81A5, "RAD Network Devices"},
256 {0x81B7, "Xyplex"},
257 {0x81CC, "Apricot Computers"},
258 {0x81D6, "Artisoft"},
259 {0x81D7, "Artisoft"},
260 {0x81E6, "Polygon"},
261 {0x81F0, "Comsat Labs"},
262 {0x81F3, "SAIC"},
263 {0x81F6, "VG Analytical"},
264 {0x8203, "Quantum Software"},
265 {0x8221, "Ascom Banking Systems"},
266 {0x823E, "Advanced Encryption Systems"},
267 {0x827F, "Athena Programming"},
268 {0x8263, "Charles River Data System"},
269 {0x829A, "Inst Ind Info Tech"},
270 {0x829C, "Taurus Controls"},
271 {0x82AC, "Walker Richer & Quinn"},
272 {0x8390, "Accton Technologies (unregistered)"},
273 {0x852B, "Talaris multicast"},
274 {0x8582, "Kalpana"},
275 {0x8694, "Idea Courier"},
276 {0x869E, "Computer Network Tech"},
277 {0x86A3, "Gateway Communications"},
278 {0x86DB, "SECTRA"},
279 {0x86DE, "Delta Controls"},
280 {0x86DD, "IPv6"},
281 {0x86DF, "ATOMIC"},
282 {0x86E0, "Landis & Gyr Powers"},
283 {0x8700, "Motorola"},
284 {0x8739, "Control Technology Inc. RDP Without IP"},
285 {0x873A, "Control Technology Inc. Mcast Industrial Ctrl Proto."},
286 {0x873B, "Control Technology Inc. Proprietary"},
287 {0x873C, "Control Technology Inc. Proprietary"},
288 {0x876B, "TCP/IP Compression"},
289 {0x876C, "IP Autonomous Systems"},
290 {0x876D, "Secure Data"},
291 {0x8808, "IEEE Pause frame"},
292 {0x8809, "Slow Protocol"},
293 {0x880B, "PPP, Point-to-Point Protocol"},
294 {0x880C, "GSMP, General Switch Management Protocol"},
295 {0x8820, "Hitachi Cable (Optoelectronic Systems Laboratory)"},
296 {0x883E, "Web-cache coordination protocol"},
297 {0x8847, "MPLS Unicast traffic"},
298 {0x8848, "MPLS Multicast traffic"},
299 {0x884c, "MultiProtocol Over ATM"},
300 {0x8856, "Axis Communications AB proprietary bootstrap/config"},
301 {0x8863, "PPPoE Discovery Stage"},
302 {0x8864, "PPPoE Session Stage"},
303 {0x8884, "Frame-based ATM Transport over Ethernet"},
304 {0x8888, "HP LanProbe test?"},
305 {0x888E, "Port Access Entity"},
306 {0x88A2, "ATA over Ethernet"},
307 {0x88BB, "LWAPP, Light Weight Access Point Protocol"},
308 {0x88CA, "TIPC"},
309 {0x88CC, "LLDP, Link Layer Discovery Protocol"},
310 {0x88F7, "IEEE 1588 Timesync"},
311 {0x8906, "Fibre Channel over Ethernet"},
312 {0x8914, "FCoE Initialization Protocol"},
313 {0x8A96, "Invisible Software"},
314 {0x8E88, "EAPOL, EAP over LAN"},
315 {0x9000, "Loopback"},
316 {0x9001, "3Com(Bridge) XNS Systems Management"},
317 {0x9002, "3Com(Bridge) TCP/IP Systems Management"},
318 {0x9003, "3Com(Bridge) loopback detection"},
319 {0x9100, "VLAN Tag Protocol Identifier"},
320 {0x9200, "VLAN Tag Protocol Identifier"},
321 {0xAAAA, "DECNET? Used by VAX 6220 DEBNI"},
322 {0xDADA, "Ethertype DSA"},
323 {0xFAF5, "Sonix Arpeggio"},
324 {0xFF00, "BBN VITAL-LanBridge cache wakeups (?)"},
325 {0xFFFF, "Reserved"},
328 char type_unknown[] = "Unknown";
330 #endif /* _NET_ETHER_TYPES_H_ */