Fix the bitmask for the hour field in a DOS-format time (not that it
[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.3 1998/09/17 02:37:45 gerald Exp $
5  *
6  * Ethereal - Network traffic analyzer
7  * By Gerald Combs <gerald@zing.org>
8  * Copyright 1998 Gerald Combs
9  *
10  * 
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  * 
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  * 
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24  */
25
26 #ifndef __ETYPES_H__
27 #define __ETYPES_H__
28
29 #ifndef ETHERTYPE_UNK
30 #define ETHERTYP_UNK 0x0000
31 #endif
32
33 /* Sources:
34  * http://www.isi.edu/in-notes/iana/assignments/ethernet-numbers
35  * TCP/IP Illustrated, Volume 1
36  * RFCs 894, 1042, 826
37  * tcpdump's ethertype.h
38  * http://www.cavebear.com/CaveBear/Ethernet/
39  */
40
41 #ifndef ETHERTYPE_IP
42 #define ETHERTYPE_IP 0x0800
43 #endif
44
45 #ifndef ETHERTYPE_IPv6
46 #define ETHERTYPE_IPv6 0x086dd
47 #endif
48
49 #ifndef ETHERTYPE_ARP
50 #define ETHERTYPE_ARP 0x0806
51 #endif
52
53 #ifndef ETHERTYPE_REVARP
54 #define ETHERTYPE_REVARP 0x8035
55 #endif
56
57 #ifndef ETHERTYPE_ATALK
58 #define ETHERTYPE_ATALK 0x809b
59 #endif
60
61 #ifndef ETHERTYPE_AARP
62 #define ETHERTYPE_AARP 0x80f3
63 #endif
64
65 #ifndef ETHERTYPE_IPX
66 #define ETHERTYPE_IPX 0x8137
67 #endif
68
69 #ifndef ETHERTYPE_VINES
70 #define ETHERTYPE_VINES 0xbad
71 #endif
72 #endif /* etypes.h */